@@ -9,7 +9,7 @@ import Test.Tasty.QuickCheck
10testEther :: Ether '[I.R Integer, I.R Bool] m => m String
10testEther :: Ether '[I.R Integer, I.R Bool] m => m String
11testEther = I.local (succ :: Integer -> Integer) $ do
11testEther = I.local (succ :: Integer -> Integer) $ do
12− n :: Integer <- I.ask
12+ n :: Integer <- I.asks (*2)
13 b <- I.local not I.ask
13 b <- I.local not I.ask
14 return (if b then "" else show n)
14 return (if b then "" else show n)
@@ -20,10 +20,10 @@ test2 :: TestTree
20test2 = testGroup "T2: Implicit tags"
20test2 = testGroup "T2: Implicit tags"
21 [ testProperty "runner₁ works"
21 [ testProperty "runner₁ works"
22 $ \n -> property
22 $ \n -> property
23− $ runner1 n testEther == show (succ n)
23+ $ runner1 n testEther == show (succ n * 2)
24 , testProperty "runner₂ works"
24 , testProperty "runner₂ works"
25 $ \n -> property
25 $ \n -> property
26− $ runner2 n testEther == show (succ n)
26+ $ runner2 n testEther == show (succ n * 2)
27 , testProperty "runner₁ == runner₂"
27 , testProperty "runner₁ == runner₂"
28 $ \n -> property
28 $ \n -> property
29 $ runner1 n testEther == runner2 n testEther
29 $ runner1 n testEther == runner2 n testEther