diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-01-12 01:12:36 +0000 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-01-12 01:12:36 +0000 |
commit | c2e72615a166e1cfa479e44283b5f7f9ecdeb942 (patch) | |
tree | 533545871f7f4a204ed6593b51a762a975bfc9e8 /bbcode | |
parent | b7d33df79763432c7e94b1bcc3a54055b8e08a5c (diff) | |
download | thermoprint-c2e72615a166e1cfa479e44283b5f7f9ecdeb942.tar thermoprint-c2e72615a166e1cfa479e44283b5f7f9ecdeb942.tar.gz thermoprint-c2e72615a166e1cfa479e44283b5f7f9ecdeb942.tar.bz2 thermoprint-c2e72615a166e1cfa479e44283b5f7f9ecdeb942.tar.xz thermoprint-c2e72615a166e1cfa479e44283b5f7f9ecdeb942.zip |
more unit tests
Diffstat (limited to 'bbcode')
-rw-r--r-- | bbcode/test/Text/BBCode/LexerSpec.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bbcode/test/Text/BBCode/LexerSpec.hs b/bbcode/test/Text/BBCode/LexerSpec.hs index b82b640..d6e1427 100644 --- a/bbcode/test/Text/BBCode/LexerSpec.hs +++ b/bbcode/test/Text/BBCode/LexerSpec.hs | |||
@@ -63,6 +63,10 @@ examples = [ ("[t]test[/t]" | |||
63 | , [BBOpen "t", BBStr "te\\st", BBClose "t"]) | 63 | , [BBOpen "t", BBStr "te\\st", BBClose "t"]) |
64 | , ("[t]te\\[st[/t]" | 64 | , ("[t]te\\[st[/t]" |
65 | , [BBOpen "t", BBStr "te[st", BBClose "t"]) | 65 | , [BBOpen "t", BBStr "te[st", BBClose "t"]) |
66 | , ("[t]test\\\\[/t]" | ||
67 | , [BBOpen "t", BBStr "test\\", BBClose "t"]) | ||
68 | , ("[t]test\\[/t]" | ||
69 | , [BBOpen "t", BBStr "test[/t]"]) | ||
66 | , ("[\\t]test[/t]" | 70 | , ("[\\t]test[/t]" |
67 | , [BBOpen "\\t", BBStr "test", BBClose "t"]) | 71 | , [BBOpen "\\t", BBStr "test", BBClose "t"]) |
68 | , ("[t]test[/t\\]]" | 72 | , ("[t]test[/t\\]]" |