diff options
Diffstat (limited to 'mardown/lexer_test.go')
| -rw-r--r-- | mardown/lexer_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mardown/lexer_test.go b/mardown/lexer_test.go index 8fe81cc..3ef87cc 100644 --- a/mardown/lexer_test.go +++ b/mardown/lexer_test.go @@ -23,4 +23,8 @@ func TestLex(t *testing.T) { if lxs.String() != `Lexers[literal(Xxx_DarkEmperor_xxX) ]` { t.Errorf("invalid lex, got %s", lxs) } + lxs = lex(`* list`) + if lxs.String() != `Lexers[list(*) literal( list) ]` { + t.Errorf("invalid lex, got %s", lxs) + } } |
