tdammers / ginger

A Haskell implementation of the Jinja template language.
MIT License
77 stars 13 forks source link

minor cut and paste error #10

Closed G8EjlKeK7CwVQP2acz2B closed 7 years ago

G8EjlKeK7CwVQP2acz2B commented 7 years ago
--- ginger-0.7.1.0/test/Text/Ginger/SimulationTests.hs.~1~  2017-09-22 11:31:28.000000000 -0400
+++ ginger-0.7.1.0/test/Text/Ginger/SimulationTests.hs  2017-09-22 17:17:26.000000000 -0400
@@ -295,7 +295,7 @@
         , testCase "AND (neither)" $ do
             mkTestHtml [] [] "{% if 0 && 0 %}yes{% else %}no{% endif %}" "no"
         ]
-    , testGroup "Boolean AND"
+    , testGroup "Boolean OR"
         [ testCase "OR (both)" $ do
             mkTestHtml [] [] "{% if 1 || 2 %}yes{% else %}no{% endif %}" "yes"
         , testCase "OR (only one)" $ do
G8EjlKeK7CwVQP2acz2B commented 7 years ago

the tests don't match the test names on these either

            [ testCase "%s, passed as int" $ do
                mkTestHtml [] []
                    "{{ printf(\"%i\", 1) }}"
                    "1"
            , testCase "%s, passed as string" $ do
                mkTestHtml [] []
                    "{{ printf(\"%i\", \"1\") }}"
                    "1"
tdammers commented 7 years ago

Thanks for reporting!