blob: 95cd7ca17447f10c1f5b688d57abee9353497926 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
discard """
input: "ab1234cd12f"
output: '''
[Suite] defaultIO
[OK] defaultCharacterInput
[OK] defaultDecimalInput
gh [OK] defaultCharacterOutput
789 [OK] defaultDecimalOutput
'''
"""
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)
|