|
|
@ -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: "]]"},
|
|
|
|