Skip to content

Commit

Permalink
Add tests to check correctly truncated values
Browse files Browse the repository at this point in the history
  • Loading branch information
Delgan committed Sep 10, 2017
1 parent 712c2db commit 9bd28c8
Show file tree
Hide file tree
Showing 27 changed files with 696 additions and 0 deletions.
28 changes: 28 additions & 0 deletions test/output/python2-dumb-UTF-8-color.out
Expand Up @@ -148,3 +148,31 @@ AssertionError: assert baz == 90



python2 test/test_truncating.py


Traceback (most recent call last):
File "test/test_truncating.py", line 11, in <module>
div()
└ <function ...
File "test/test_truncating.py", line 8, in div
return 1 / var
 └ '999999999...
TypeError: unsupported operand type(s) for /: 'int' and 'str'



python2 test/test_truncating_disabled.py


Traceback (most recent call last):
File "test/test_truncating_disabled.py", line 11, in <module>
div()
└ <function div at 0xDEADBEEF>
File "test/test_truncating_disabled.py", line 8, in div
return 1 / var
 └ '999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999'
TypeError: unsupported operand type(s) for /: 'int' and 'str'



28 changes: 28 additions & 0 deletions test/output/python2-dumb-UTF-8-nocolor.out
Expand Up @@ -148,3 +148,31 @@ AssertionError: assert baz == 90



python2 test/test_truncating.py


Traceback (most recent call last):
File "test/test_truncating.py", line 11, in <module>
div()
└ <function ...
File "test/test_truncating.py", line 8, in div
return 1 / var
└ '999999999...
TypeError: unsupported operand type(s) for /: 'int' and 'str'



python2 test/test_truncating_disabled.py


Traceback (most recent call last):
File "test/test_truncating_disabled.py", line 11, in <module>
div()
└ <function div at 0xDEADBEEF>
File "test/test_truncating_disabled.py", line 8, in div
return 1 / var
└ '999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999'
TypeError: unsupported operand type(s) for /: 'int' and 'str'



28 changes: 28 additions & 0 deletions test/output/python2-dumb-ascii-color.out
Expand Up @@ -148,3 +148,31 @@ AssertionError: assert baz == 90



python2 test/test_truncating.py


Traceback (most recent call last):
File "test/test_truncating.py", line 11, in <module>
div()
-> <function ...
File "test/test_truncating.py", line 8, in div
return 1 / var
 -> '999999999...
TypeError: unsupported operand type(s) for /: 'int' and 'str'



python2 test/test_truncating_disabled.py


Traceback (most recent call last):
File "test/test_truncating_disabled.py", line 11, in <module>
div()
-> <function div at 0xDEADBEEF>
File "test/test_truncating_disabled.py", line 8, in div
return 1 / var
 -> '999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999'
TypeError: unsupported operand type(s) for /: 'int' and 'str'



28 changes: 28 additions & 0 deletions test/output/python2-dumb-ascii-nocolor.out
Expand Up @@ -148,3 +148,31 @@ AssertionError: assert baz == 90



python2 test/test_truncating.py


Traceback (most recent call last):
File "test/test_truncating.py", line 11, in <module>
div()
-> <function ...
File "test/test_truncating.py", line 8, in div
return 1 / var
-> '999999999...
TypeError: unsupported operand type(s) for /: 'int' and 'str'



python2 test/test_truncating_disabled.py


Traceback (most recent call last):
File "test/test_truncating_disabled.py", line 11, in <module>
div()
-> <function div at 0xDEADBEEF>
File "test/test_truncating_disabled.py", line 8, in div
return 1 / var
-> '999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999'
TypeError: unsupported operand type(s) for /: 'int' and 'str'



28 changes: 28 additions & 0 deletions test/output/python2-vt100-UTF-8-color.out
Expand Up @@ -148,3 +148,31 @@ AssertionError: assert baz == 90



python2 test/test_truncating.py


Traceback (most recent call last):
File "test/test_truncating.py", line 11, in <module>
div()
└ <function ...
File "test/test_truncating.py", line 8, in div
return 1 / var
 └ '999999999...
TypeError: unsupported operand type(s) for /: 'int' and 'str'



python2 test/test_truncating_disabled.py


Traceback (most recent call last):
File "test/test_truncating_disabled.py", line 11, in <module>
div()
└ <function div at 0xDEADBEEF>
File "test/test_truncating_disabled.py", line 8, in div
return 1 / var
 └ '999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999'
TypeError: unsupported operand type(s) for /: 'int' and 'str'



28 changes: 28 additions & 0 deletions test/output/python2-vt100-UTF-8-nocolor.out
Expand Up @@ -148,3 +148,31 @@ AssertionError: assert baz == 90



python2 test/test_truncating.py


Traceback (most recent call last):
File "test/test_truncating.py", line 11, in <module>
div()
└ <function ...
File "test/test_truncating.py", line 8, in div
return 1 / var
└ '999999999...
TypeError: unsupported operand type(s) for /: 'int' and 'str'



python2 test/test_truncating_disabled.py


Traceback (most recent call last):
File "test/test_truncating_disabled.py", line 11, in <module>
div()
└ <function div at 0xDEADBEEF>
File "test/test_truncating_disabled.py", line 8, in div
return 1 / var
└ '999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999'
TypeError: unsupported operand type(s) for /: 'int' and 'str'



28 changes: 28 additions & 0 deletions test/output/python2-vt100-ascii-color.out
Expand Up @@ -148,3 +148,31 @@ AssertionError: assert baz == 90



python2 test/test_truncating.py


Traceback (most recent call last):
File "test/test_truncating.py", line 11, in <module>
div()
-> <function ...
File "test/test_truncating.py", line 8, in div
return 1 / var
 -> '999999999...
TypeError: unsupported operand type(s) for /: 'int' and 'str'



python2 test/test_truncating_disabled.py


Traceback (most recent call last):
File "test/test_truncating_disabled.py", line 11, in <module>
div()
-> <function div at 0xDEADBEEF>
File "test/test_truncating_disabled.py", line 8, in div
return 1 / var
 -> '999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999'
TypeError: unsupported operand type(s) for /: 'int' and 'str'



28 changes: 28 additions & 0 deletions test/output/python2-vt100-ascii-nocolor.out
Expand Up @@ -148,3 +148,31 @@ AssertionError: assert baz == 90



python2 test/test_truncating.py


Traceback (most recent call last):
File "test/test_truncating.py", line 11, in <module>
div()
-> <function ...
File "test/test_truncating.py", line 8, in div
return 1 / var
-> '999999999...
TypeError: unsupported operand type(s) for /: 'int' and 'str'



python2 test/test_truncating_disabled.py


Traceback (most recent call last):
File "test/test_truncating_disabled.py", line 11, in <module>
div()
-> <function div at 0xDEADBEEF>
File "test/test_truncating_disabled.py", line 8, in div
return 1 / var
-> '999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999'
TypeError: unsupported operand type(s) for /: 'int' and 'str'



28 changes: 28 additions & 0 deletions test/output/python2-xterm-UTF-8-color.out
Expand Up @@ -148,3 +148,31 @@ AssertionError: assert baz == 90



python2 test/test_truncating.py


Traceback (most recent call last):
File "test/test_truncating.py", line 11, in <module>
div()
└ <function ...
File "test/test_truncating.py", line 8, in div
return 1 / var
 └ '999999999...
TypeError: unsupported operand type(s) for /: 'int' and 'str'



python2 test/test_truncating_disabled.py


Traceback (most recent call last):
File "test/test_truncating_disabled.py", line 11, in <module>
div()
└ <function div at 0xDEADBEEF>
File "test/test_truncating_disabled.py", line 8, in div
return 1 / var
 └ '999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999'
TypeError: unsupported operand type(s) for /: 'int' and 'str'



28 changes: 28 additions & 0 deletions test/output/python2-xterm-UTF-8-nocolor.out
Expand Up @@ -148,3 +148,31 @@ AssertionError: assert baz == 90



python2 test/test_truncating.py


Traceback (most recent call last):
File "test/test_truncating.py", line 11, in <module>
div()
└ <function ...
File "test/test_truncating.py", line 8, in div
return 1 / var
└ '999999999...
TypeError: unsupported operand type(s) for /: 'int' and 'str'



python2 test/test_truncating_disabled.py


Traceback (most recent call last):
File "test/test_truncating_disabled.py", line 11, in <module>
div()
└ <function div at 0xDEADBEEF>
File "test/test_truncating_disabled.py", line 8, in div
return 1 / var
└ '999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999'
TypeError: unsupported operand type(s) for /: 'int' and 'str'



28 changes: 28 additions & 0 deletions test/output/python2-xterm-ascii-color.out
Expand Up @@ -148,3 +148,31 @@ AssertionError: assert baz == 90



python2 test/test_truncating.py


Traceback (most recent call last):
File "test/test_truncating.py", line 11, in <module>
div()
-> <function ...
File "test/test_truncating.py", line 8, in div
return 1 / var
 -> '999999999...
TypeError: unsupported operand type(s) for /: 'int' and 'str'



python2 test/test_truncating_disabled.py


Traceback (most recent call last):
File "test/test_truncating_disabled.py", line 11, in <module>
div()
-> <function div at 0xDEADBEEF>
File "test/test_truncating_disabled.py", line 8, in div
return 1 / var
 -> '999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999'
TypeError: unsupported operand type(s) for /: 'int' and 'str'



28 changes: 28 additions & 0 deletions test/output/python2-xterm-ascii-nocolor.out
Expand Up @@ -148,3 +148,31 @@ AssertionError: assert baz == 90



python2 test/test_truncating.py


Traceback (most recent call last):
File "test/test_truncating.py", line 11, in <module>
div()
-> <function ...
File "test/test_truncating.py", line 8, in div
return 1 / var
-> '999999999...
TypeError: unsupported operand type(s) for /: 'int' and 'str'



python2 test/test_truncating_disabled.py


Traceback (most recent call last):
File "test/test_truncating_disabled.py", line 11, in <module>
div()
-> <function div at 0xDEADBEEF>
File "test/test_truncating_disabled.py", line 8, in div
return 1 / var
-> '999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999'
TypeError: unsupported operand type(s) for /: 'int' and 'str'



0 comments on commit 9bd28c8

Please sign in to comment.