Skip to content

Instantly share code, notes, and snippets.

@fowlmouth
Last active December 31, 2015 05:09
Show Gist options
  • Save fowlmouth/7938914 to your computer and use it in GitHub Desktop.
Save fowlmouth/7938914 to your computer and use it in GitHub Desktop.
import unittest
suite "numbers":
setup:
#this code is run before each test
var x = 1
test "1 + 1 == 2":
#do stuff in here
check 1 + 1 == 2
test "x += 1 == 2":
x += 1
check:
x == 2
test "x is reset after each test":
check x == 1
test "failing test":
check x == 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment