Skip to content

Commit 3e7147a

Browse files
author
Drew O'Meara
committed
added abs tests
1 parent 9a7aeca commit 3e7147a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

builtin/tests/builtin.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77
doc="abs"
88
assert abs(0) == 0
9+
assert abs(-0) == 0
10+
assert abs(0.0) == 0.0
11+
assert abs(-0.0) == 0.0
912
assert abs(10) == 10
1013
assert abs(-10) == 10
1114
assert abs(12.3) == 12.3

0 commit comments

Comments
 (0)