Skip to content

Instantly share code, notes, and snippets.

@fujimura
Created August 16, 2012 09:11
Show Gist options
  • Save fujimura/3368657 to your computer and use it in GitHub Desktop.
Save fujimura/3368657 to your computer and use it in GitHub Desktop.
smile.hs
import Test.Hspec.Monadic
import Test.Hspec.HUnit ()
import Test.HUnit
(\^-^/) = (@?=)
main :: IO ()
main = hspec $ do
describe "reverse" $ do
it "reverses a list" $ do
reverse [1, 2, 3] \^-^/ [3, 2, 1]
it "gives the original list, if applied twice" $ do
(reverse . reverse) [1, 2, 3] \^-^/ [1, 2, 3]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment