Skip to content

Commit

Permalink
Remove trailing white-space
Browse files Browse the repository at this point in the history
Attempt at removing trailing white-space to avoid build failure.
  • Loading branch information
zygmuntszpak committed Nov 20, 2015
1 parent e7b7aa4 commit 4d1ced8
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions test/numbers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -477,31 +477,31 @@ end
@test copysign(big(1.0),big(-2.0)) == big(-1.0)

#copysign
@test copysign(-1,1) == 1
@test copysign(-1,1) == 1
@test copysign(1,-1) == -1

@test copysign(-1,1.0) == 1
@test copysign(-1,1.0) == 1
@test copysign(1,-1.0) == -1

@test copysign(-1,1//2) == 1
@test copysign(-1,1//2) == 1
@test copysign(1,-1//2) == -1

@test copysign(1.0,-1) == -1.0
@test copysign(1.0,-1) == -1.0
@test copysign(-1.0,1) == 1.0

@test copysign(1.0,-1.0) == -1.0
@test copysign(1.0,-1.0) == -1.0
@test copysign(-1.0,1.0) == 1.0

@test copysign(1.0,-1//2) == -1.0
@test copysign(1.0,-1//2) == -1.0
@test copysign(-1.0,1//2) == 1.0
@test copysign(1//2,-1) == -1//2

@test copysign(1//2,-1) == -1//2
@test copysign(-1//2,1) == 1//2

@test copysign(1//2,-1//2) == -1//2
@test copysign(1//2,-1//2) == -1//2
@test copysign(-1//2,1//2) == 1//2

@test copysign(1//2,-1.0) == -1//2
@test copysign(1//2,-1.0) == -1//2
@test copysign(-1//2,1.0) == 1//2

# verify type stability with integer (x is negative)
Expand Down Expand Up @@ -581,19 +581,19 @@ end
@test eltype(copysign(-1//2,-1//2)) <: Rational

# test x = NaN
@test isnan(copysign(0/0,1))
@test isnan(copysign(0/0,1))
@test isnan(copysign(0/0,-1))

# test x = Inf
@test isinf(copysign(1/0,1))
@test isinf(copysign(1/0,-1))
@test isinf(copysign(1/0,1))
@test isinf(copysign(1/0,-1))

# test y = NaN (BUG Julia 0.4.1 20/11/2015)
#@test isnan(copysign(1,0.0))
#@test isnan(copysign(1,0.0))
#@test isnan(copysign(-1,0.0))

# test y = Inf (BUG Julia 0.4.1 20/11/2015)
#@test isinf(copysign(1,1/0))
#@test isinf(copysign(1,1/0))
#@test isinf(copysign(-1,1/0))


Expand Down

0 comments on commit 4d1ced8

Please sign in to comment.