aboutsummaryrefslogtreecommitdiff
path: root/mardown/lexer_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'mardown/lexer_test.go')
-rw-r--r--mardown/lexer_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/mardown/lexer_test.go b/mardown/lexer_test.go
index f6a06d5..c9ec349 100644
--- a/mardown/lexer_test.go
+++ b/mardown/lexer_test.go
@@ -15,12 +15,12 @@ func TestLex(t *testing.T) {
if lxs.String() != "Lexers[header(#) literal( bonjour les gens) break(\n) literal(Comment ça va ?) ]" {
t.Errorf("invalid lex, got %s", lxs)
}
- lxs = lex("**hey**, what's up?")
- if lxs.String() != "Lexers[modifier(**) literal(hey) modifier(**) literal(, what's up?) ]" {
+ lxs = lex("***hey***, what's up?")
+ if lxs.String() != "Lexers[modifier(**) modifier(*) literal(hey) modifier(*) modifier(**) literal(, what's up?) ]" {
t.Errorf("invalid lex, got %s", lxs)
}
lxs = lex(`Xxx\_DarkEmperor\_xxX`)
- if lxs.String() != `Lexers[literal(Xxx) escape(\) modifier(_) literal(DarkEmperor) escape(\) modifier(_) literal(xxX) ]` {
+ if lxs.String() != `Lexers[literal(Xxx_DarkEmperor_xxX) ]` {
t.Errorf("invalid lex, got %s", lxs)
}
}