[Pkg-haskell-commits] [SCM] haskell-testpack branch, master, updated. debian/1.0.2-1-4-gb0d6b36

John Goerzen jgoerzen at complete.org
Fri Apr 23 14:49:26 UTC 2010


The following commit has been merged in the master branch:
commit bc5c685be6a76b9ed5d49f020b2996be6cbdbd3c
Author: John Goerzen <jgoerzen at complete.org>
Date:   Fri Dec 3 23:01:03 2004 +0100

    Added another test
    
    Keywords:
    
    
    (jgoerzen at complete.org--projects/missingh--head--0.7--patch-9)

diff --git a/testsrc/ConfigParser/Maintest.hs b/testsrc/ConfigParser/Maintest.hs
index 2bb0ce5..91a53a0 100644
--- a/testsrc/ConfigParser/Maintest.hs
+++ b/testsrc/ConfigParser/Maintest.hs
@@ -117,7 +117,8 @@ test_instances =
     let cp = p "[x]\na: true\nb: 1\nbad: never"
 	in [f2 "bool 1st" (Right True) (get cp "x" "a"),
 	    f2 "bool 1nd" (Right True) (get cp "x" "b"),
-            f2b "bad bool" (Left (ParseError "couldn't parse bool never from x/bad", "getbool")) (get cp "x" "bad")
+            f2b "bad bool" (Left (ParseError "couldn't parse bool never from x/bad", "getbool")) (get cp "x" "bad"),
+            f2 "number" (Right (1::Int)) (get cp "x" "b")
 	   ]
 
 

-- 
haskell-testpack



More information about the Pkg-haskell-commits mailing list