Last active
December 31, 2015 05:09
-
-
Save fowlmouth/7938914 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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