git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Add assertions
15ba03ePhil Freeman
examples/passing/OverlappingInstances.purs+1−1
@@ -10,4 +10,4 @@ instance showA1 :: Show A where
10instance showA2 :: Show A where
10instance showA2 :: Show A where
11 show A = "Instance 2"
11 show A = "Instance 2"
12
12
13−main = Control.Monad.Eff.Console.log $ show A
13+main = Test.Assert.assert $ show A == "Instance 1"
examples/passing/OverlappingInstances2.purs+1−1
@@ -20,4 +20,4 @@ instance ordA :: Ord A where
20test :: forall a. (Ord a) => a -> a -> String
20test :: forall a. (Ord a) => a -> a -> String
21test x y = show $ x == y
21test x y = show $ x == y
22
22
23−main = Control.Monad.Eff.Console.log $ test A B
23+main = Test.Assert.assert $ test A B == "false"
examples/passing/OverlappingInstances3.purs+2
@@ -12,3 +12,5 @@ test :: forall a. (Foo a) => a -> a
12test a = a
12test a = a
13
13
14test1 = test 0.0
14test1 = test 0.0
15+
16+main = Test.Assert.assert (test1 == 0.0)