diff options
Diffstat (limited to 'tests/defaultIO.nim')
-rw-r--r-- | tests/defaultIO.nim | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/defaultIO.nim b/tests/defaultIO.nim new file mode 100644 index 0000000..2de2330 --- /dev/null +++ b/tests/defaultIO.nim @@ -0,0 +1,25 @@ +discard """ + input: "ab1234cd12f" + output: ''' +[Suite] defaultIO +gh789 + ''' +""" + +import unittest + +include ../src/defaultIO + +suite "defaultIO": + test "defaultCharacterInput": + check defaultCharacterInput() == 'a'.int + check defaultCharacterInput() == 'b'.int + check defaultCharacterInput() == '1'.int + test "defaultDecimalInput": + check defaultDecimalInput() == 234 + check defaultCharacterInput() == 'c'.int + test "defaultCharacterOutput": + defaultCharacterOutput('g'.int) + defaultCharacterOutput('h'.int) + test "defaultDecimalOutput": + defaultDecimalOutput(789) |