aboutsummaryrefslogtreecommitdiff
path: root/spec/lexer_test.go
diff options
context:
space:
mode:
authorRyo Nihei <nihei.dev@gmail.com>2022-05-09 00:36:06 +0900
committerRyo Nihei <nihei.dev@gmail.com>2022-05-10 23:14:52 +0900
commitdd5fd3372cdb53e7a3a36b5ef61b0b0c35023798 (patch)
treee29796e3c0aee95e443aeabe6b24e2ed4c81dac0 /spec/lexer_test.go
parentAdd #assign directive (diff)
downloadurubu-dd5fd3372cdb53e7a3a36b5ef61b0b0c35023798.tar.gz
urubu-dd5fd3372cdb53e7a3a36b5ef61b0b0c35023798.tar.xz
Add ordered symbol notation
Diffstat (limited to 'spec/lexer_test.go')
-rw-r--r--spec/lexer_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/lexer_test.go b/spec/lexer_test.go
index 621eff5..0e7cc89 100644
--- a/spec/lexer_test.go
+++ b/spec/lexer_test.go
@@ -36,7 +36,7 @@ func TestLexer_Run(t *testing.T) {
}{
{
caption: "the lexer can recognize all kinds of tokens",
- src: `id"terminal"'string':|;@...#()`,
+ src: `id"terminal"'string':|;@...#$()`,
tokens: []*token{
idTok("id"),
termPatTok("terminal"),
@@ -47,6 +47,7 @@ func TestLexer_Run(t *testing.T) {
symTok(tokenKindLabelMarker),
symTok(tokenKindExpantion),
symTok(tokenKindDirectiveMarker),
+ symTok(tokenKindOrderedSymbolMarker),
symTok(tokenKindLParen),
symTok(tokenKindRParen),
newEOFToken(),