diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-02-25 14:26:47 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-02-25 14:26:47 +0100 |
commit | e6e3823982cb9755b7cb4727fb08171eed5b4332 (patch) | |
tree | e747dbd35b2b8156e0aa2eb8ed63a92d2b3445c3 /bbcode/test | |
parent | a93837da703767b6a982ead94494df7c885b46f1 (diff) | |
download | thermoprint-e6e3823982cb9755b7cb4727fb08171eed5b4332.tar thermoprint-e6e3823982cb9755b7cb4727fb08171eed5b4332.tar.gz thermoprint-e6e3823982cb9755b7cb4727fb08171eed5b4332.tar.bz2 thermoprint-e6e3823982cb9755b7cb4727fb08171eed5b4332.tar.xz thermoprint-e6e3823982cb9755b7cb4727fb08171eed5b4332.zip |
Accept trailing newlines
Diffstat (limited to 'bbcode/test')
-rw-r--r-- | bbcode/test/Text/BBCodeSpec.hs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bbcode/test/Text/BBCodeSpec.hs b/bbcode/test/Text/BBCodeSpec.hs index a6e66b6..4e7ea72 100644 --- a/bbcode/test/Text/BBCodeSpec.hs +++ b/bbcode/test/Text/BBCodeSpec.hs | |||
@@ -61,5 +61,11 @@ examples = [ ("[t]test[/t]" | |||
61 | , [[Element "b" [] [Content "foo"]], [Element "b" [] [Content "bar"]]]) | 61 | , [[Element "b" [] [Content "foo"]], [Element "b" [] [Content "bar"]]]) |
62 | , ("[b]foo[/b][b]bar[/b]" | 62 | , ("[b]foo[/b][b]bar[/b]" |
63 | , [[Element "b" [] [Content "foo"], Element "b" [] [Content "bar"]]]) | 63 | , [[Element "b" [] [Content "foo"], Element "b" [] [Content "bar"]]]) |
64 | , ("[b]foo[/b]\n" | ||
65 | , [[Element "b" [] [Content "foo"]]]) | ||
66 | , ("[b]foo[/b] \n" | ||
67 | , [[Element "b" [] [Content "foo"], Content " "]]) | ||
68 | , ("[b]foo[/b] " | ||
69 | , [[Element "b" [] [Content "foo"], Content " "]]) | ||
64 | ] | 70 | ] |
65 | 71 | ||