Skip to content

Commit ba9a33f

Browse files
authored
tests: simplify logic of the tests of abs (#198)
1 parent 9edb005 commit ba9a33f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/math.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ using TheAlgorithms.Math
44
@test abs_val(-100) == 100
55
@test abs_val(0) == 0
66
@test abs(123.1) == 123.1
7-
@test (-1000 == abs_val(-1000)) == false
8-
@test (1000 == abs_val(1000)) == true
7+
@test abs_val(-1000) == 1000
8+
@test abs_val(1000) == 1000
99

1010
@test abs_max([1, 3, 4]) == 4
1111
@test abs_max([-3, 1, 2]) == -3

0 commit comments

Comments
 (0)