# HG changeset patch # User HackBot # Date 1370387917 0 # Node ID dbcabbf98d4c32dccfa671a88a67479b2b3e8d0b # Parent f412a71952e68e15e9c1235f3b04635353a0f85d pastelogs oerjan> @check.* diff -r f412a71952e6 -r dbcabbf98d4c paste/paste.19489 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/paste/paste.19489 Tue Jun 04 23:18:37 2013 +0000 @@ -0,0 +1,42 @@ +2009-06-24.txt:19:35:35: @check \a f -> (repeat a `zbind` f) === (f (a :: Int) :: Int) +2009-06-24.txt:19:44:29: @check (==) +2009-06-26.txt:00:43:12: @check let 42 = 6*9 in (\_ -> 42 == 6*9) +2009-07-14.txt:03:15:13: @check \n -> n >= 0 ==> sum [1..n] == (n*(n+1))`div`2 +2011-01-20.txt:18:27:53: @check x < 1.1 +2011-01-20.txt:18:32:53: @check x < 100.0 +2011-01-20.txt:18:33:18: @check \x -> x < 1.1 +2011-01-20.txt:18:39:10: @check \x -> x < 100.1 +2011-01-20.txt:18:39:23: @check \x -> x < 1e10 +2011-01-20.txt:18:39:41: @check \x -> x < 1000.0 +2011-01-20.txt:18:39:48: @check \x -> x < 300.0 +2011-01-20.txt:18:39:55: @check \x -> x < 300.0 +2011-01-31.txt:04:25:45: @check \l -> foldr (liftM2 (++)) [mempty] == map mconcat (sequence l) +2011-01-31.txt:04:26:09: @check \l -> foldr (liftM2 (++)) [mempty] l == map mconcat (sequence l) +2011-05-16.txt:20:40:15: @check \x -> (x+y)^2 == x^2+2*x*y+y^2 +2011-05-16.txt:20:40:27: @check \x y -> (x+y)^2 == x^2+2*x*y+y^2 +2011-05-16.txt:20:41:08: @check \x y -> (x+y)^2 == (x^2+2*x*y+y^2 :: Double) +2011-09-20.txt:03:26:44: @check (x >>+ f >>+ g) == ((x :: [Int]) >>+ \t -> (f t :: [Int]) >>+ g :: [Int]) +2011-09-20.txt:03:27:54: @check let infixl 1 >>+; l >>+ f = diag . scanl1 (zipWith (const id)) $ map f l where diag ((x:xs):xss) = x:diag (map (drop 1) xss); diag _ = [] in (x >>+ f >>+ g) == ((x :: [Int]) >>+ \t -> (f t :: [Int]) >>+ g :: [Int]) +2011-09-20.txt:03:29:10: @check let infixl 1 >>+; l >>+ f = diag . scanl1 (zipWith (const id)) $ map f l where diag ((x:xs):xss) = x:diag (map (drop 1) xss); diag _ = [] in \x f g -> (x >>+ f >>+ g) == ((x :: [Int]) >>+ \t -> (f t :: [Int]) >>+ g :: [Int]) +2011-10-02.txt:21:16:48: @check \x y -> x <= y ==> (((+1) . on subtract fromEnum x) y == length [x..y :: Double] +2011-10-02.txt:21:17:03: @check \x y -> x <= y ==> (((+1) . on subtract fromEnum x) y == length [x..y :: Double]) +2011-10-02.txt:21:17:34: @check \x y -> x > y || (((+1) . on subtract fromEnum x) y == length [x..y :: Double]) +2011-10-02.txt:21:18:16: @check \x y -> x > y || (((+1) . on subtract fromEnum x) y == length [x..y :: Rational]) +2011-10-02.txt:21:18:54: @check \x y -> x > y || x < 0 || (((+1) . on subtract fromEnum x) y == length [x..y :: Rational]) +2011-12-18.txt:00:51:05: @check True +2011-12-20.txt:04:00:36: @check is this thing on? +2011-12-20.txt:04:04:00: @check let tjoin = concat . transpose . scanl1 (zipWith (flip const)) in \lll -> tjoin $ tjoin (lll :: [[[Int]]]) == tjoin $ map tjoin lll +2012-01-10.txt:03:07:32: @check True +2012-01-10.txt:03:10:22: @check \ll -> zjoin (zjoin (ll :: [[Int]])) == zjoin (map zjoin ll) +2012-01-10.txt:03:11:17: @check \ll -> zjoin (zjoin (ll :: [[[Int]]])) == zjoin (map zjoin ll) +2012-01-10.txt:03:29:31: @check \ll -> (not . null . drop 1 . group $ map length ll) || zjoin (zjoin (ll :: [[[Int]]])) == zjoin (map zjoin ll) +2012-01-10.txt:03:29:51: @check \ll -> (not . null . drop 1 . group $ map length ll) || zjoin (zjoin (ll :: [[[Int]]])) == zjoin (map zjoin ll) +2012-08-06.txt:19:32:14: @check \x y -> x < 0 || y <= 0 | (x-1)`div`y+1 == ceiling (fromIntegral x / fromIntegral y) +2012-08-06.txt:19:32:25: @check \x y -> x < 0 || y <= 0 || (x-1)`div`y+1 == ceiling (fromIntegral x / fromIntegral y) +2012-08-06.txt:19:32:45: @check \x y -> x < 0 || y <= 0 || (x-1)`div`y+1 == -(-x)`div`y +2012-08-06.txt:19:34:33: @check \x y -> y <= 0 || (x-1)`div`y+1 == -(-x)`div`y +2012-08-06.txt:19:34:50: @check \x y -> y <= 0 || (x-1)`div`y+1 == ceiling (fromIntegral x / fromIntegral y) +2012-10-07.txt:21:36:39: @check let (_, c) . (a, _) = (a, c); (.) :: (Int, Int) -> (Int, Int) -> (Int, Int) in \x y z -> x . (y . z) == (x . y) . z +2012-12-10.txt:05:56:54: @check \u v -> ((u+v)-u)+((u+v)-((u+v)-u)) == u+(v::Double) +2012-12-14.txt:21:02:55: @check 2 == 2 +2013-06-04.txt:23:17:57: `pastelogs oerjan> @check.*