-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Stepan Pyzhov
committed
Mar 22, 2019
1 parent
34091c6
commit c2c45d3
Showing
4 changed files
with
110 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,15 @@ func TestBuffer_Token(t *testing.T) { | |
|
||
{name: "part 1", value: "@[email protected]", index: 5, fail: false}, | ||
{name: "part 2", value: "@.foo && @.bar", index: 5, fail: false}, | ||
{name: "part 3", value: "@.foo,3", index: 5, fail: false}, | ||
|
||
{name: "number 1", value: "1", index: 1, fail: false}, | ||
{name: "number 2", value: "1.3e2", index: 5, fail: false}, | ||
{name: "number 3", value: "-1.3e2", index: 6, fail: false}, | ||
{name: "number 4", value: "-1.3e-2", index: 7, fail: false}, | ||
|
||
{name: "string 1", value: "'1'", index: 3, fail: false}, | ||
{name: "string 2", value: "'foo \\'bar '", index: 12, fail: false}, | ||
|
||
{name: "fail 1", value: "@.foo[", fail: true}, | ||
{name: "fail 2", value: "@.foo[(]", fail: true}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters