Skip to content

Commit 8621a2f

Browse files
author
Shashi Gowda
committed
fix a test
1 parent 65f0a82 commit 8621a2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/runtests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ import TextParse: Quoted, NAToken, Unknown
8787
str1 = "\"x”y\"\"\""
8888
@test tryparsenext(Quoted(StringToken(String), required=true), "x\"y\"") |> failedat == 1
8989

90-
@test tryparsenext(Quoted(String,quotechar=Nullable('"'), escapechar=Nullable('"')), str1) |> unwrap == ("x”y\"\"", endof(str1)+1)
91-
@test tryparsenext(Quoted(StringToken(String)), "\"x\\\"yz\"") |> unwrap == ("x\\\"yz", 8)
90+
@test tryparsenext(Quoted(String, escapechar=Nullable('"')), str1) |> unwrap == ("x”y\"\"", endof(str1)+1)
91+
@test tryparsenext(Quoted(StringToken(String), escapechar=Nullable('\\')), "\"x\\\"yz\"") |> unwrap == ("x\\\"yz", 8)
9292
@test tryparsenext(Quoted(NAToken(fromtype(Int))), "1") |> unwrap |> unwrap == (1,2)
9393
@test tryparsenext(Quoted(NAToken(fromtype(Int))), "") |> unwrap |> failedat == 1
9494
@test tryparsenext(Quoted(NAToken(fromtype(Int))), "\"\"") |> unwrap |> failedat == 3

0 commit comments

Comments
 (0)