diff options
Diffstat (limited to 'bbcode/test')
-rw-r--r-- | bbcode/test/Text/BBCode/LexerSpec.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bbcode/test/Text/BBCode/LexerSpec.hs b/bbcode/test/Text/BBCode/LexerSpec.hs index f4dcee6..fcc1c4f 100644 --- a/bbcode/test/Text/BBCode/LexerSpec.hs +++ b/bbcode/test/Text/BBCode/LexerSpec.hs | |||
@@ -83,6 +83,8 @@ examples = [ ("[t]test[/t]" | |||
83 | , [BBOpen "t" [], BBStr "test", BBClose "t]"]) | 83 | , [BBOpen "t" [], BBStr "test", BBClose "t]"]) |
84 | , ("[t attr]test[/t]" | 84 | , ("[t attr]test[/t]" |
85 | , [BBOpen "t" [("attr", Nothing)], BBStr "test", BBClose "t"]) | 85 | , [BBOpen "t" [("attr", Nothing)], BBStr "test", BBClose "t"]) |
86 | , ("[t=attr]test[/t]" | ||
87 | , [BBOpen "t" [("", Just "attr")], BBStr "test", BBClose "t"]) | ||
86 | , ("[t attr=val]test[/t]" | 88 | , ("[t attr=val]test[/t]" |
87 | , [BBOpen "t" [("attr", Just "val")], BBStr "test", BBClose "t"]) | 89 | , [BBOpen "t" [("attr", Just "val")], BBStr "test", BBClose "t"]) |
88 | , ("[t attr=\"val\"]test[/t]" | 90 | , ("[t attr=\"val\"]test[/t]" |