We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
abs
1 parent 9edb005 commit ba9a33fCopy full SHA for ba9a33f
test/math.jl
@@ -4,8 +4,8 @@ using TheAlgorithms.Math
4
@test abs_val(-100) == 100
5
@test abs_val(0) == 0
6
@test abs(123.1) == 123.1
7
- @test (-1000 == abs_val(-1000)) == false
8
- @test (1000 == abs_val(1000)) == true
+ @test abs_val(-1000) == 1000
+ @test abs_val(1000) == 1000
9
10
@test abs_max([1, 3, 4]) == 4
11
@test abs_max([-3, 1, 2]) == -3
0 commit comments