passing tests

main v0.0.1
Nick Dumas 1 year ago
parent d5a48dd362
commit a8fe8282b3

@ -66,6 +66,7 @@ func Test_Lexer(t *testing.T) {
{ {
name: "#heading", in: "[[#heading]]", expected: []wikilink.Lexeme{ name: "#heading", in: "[[#heading]]", expected: []wikilink.Lexeme{
{Typ: wikilink.LexOpenLink, Val: "[["}, {Typ: wikilink.LexOpenLink, Val: "[["},
{Typ: wikilink.LexIdent, Val: ""},
{Typ: wikilink.LexHeading, Val: "#"}, {Typ: wikilink.LexHeading, Val: "#"},
{Typ: wikilink.LexIdent, Val: "heading"}, {Typ: wikilink.LexIdent, Val: "heading"},
{Typ: wikilink.LexCloseLink, Val: "]]"}, {Typ: wikilink.LexCloseLink, Val: "]]"},

Loading…
Cancel
Save