Skip to content

Commit 356ae0b

Browse files
committed
chore: run formatter
1 parent a3947e5 commit 356ae0b

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

test/ops.jl

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -248,17 +248,17 @@ end
248248
@test exp.(Array(x)) @jit Ops.exponential(x)
249249

250250
x = Reactant.to_rarray([1.0 + 2.0im, 3.0 + 4.0im, 5.0 + 6.0im, 7.0 + 8.0im])
251-
@test exp.(Array(x))
252-
@jit(Ops.exponential(x)) broken = RunningOnTPU || RunningOnAppleX86
251+
@test exp.(Array(x)) @jit(Ops.exponential(x)) broken =
252+
RunningOnTPU || RunningOnAppleX86
253253
end
254254

255255
@testset "exponential_minus_one" begin
256256
x = Reactant.to_rarray([1.0, 2.0, 3.0, 4.0])
257257
@test expm1.(Array(x)) @jit Ops.exponential_minus_one(x)
258258

259259
x = Reactant.to_rarray([1.0 + 2.0im, 3.0 + 4.0im, 5.0 + 6.0im, 7.0 + 8.0im])
260-
@test expm1.(Array(x))
261-
@jit(Ops.exponential_minus_one(x)) broken = RunningOnTPU || RunningOnAppleX86
260+
@test expm1.(Array(x)) @jit(Ops.exponential_minus_one(x)) broken =
261+
RunningOnTPU || RunningOnAppleX86
262262
end
263263

264264
@testset "fft" begin
@@ -416,8 +416,8 @@ end
416416
@test [1.0, 0.0, -1.0, -10.0] @jit Ops.negate(x)
417417

418418
x = Reactant.to_rarray([-1.0 + 2im, 0.0 - 3im, 1.0 + 4im, 10.0 - 5im])
419-
@test [1.0 - 2im, 0.0 + 3im, -1.0 - 4im, -10.0 + 5im]
420-
@jit(Ops.negate(x)) broken = RunningOnTPU
419+
@test [1.0 - 2im, 0.0 + 3im, -1.0 - 4im, -10.0 + 5im] @jit(Ops.negate(x)) broken =
420+
RunningOnTPU
421421
end
422422

423423
@testset "not" begin
@@ -489,8 +489,8 @@ end
489489

490490
x = Reactant.to_rarray([0.0 + 1.0im, 0.0 + 1.0im, 0.0 + 1.0im, 0.0 + 1.0im])
491491
p = Reactant.to_rarray([0.0 + 0.0im, 1.0 + 0.0im, 2.0 + 0.0im, 3.0 + 0.0im])
492-
@test Array(x) .^ Array(p)
493-
@jit(Ops.power(x, p)) broken = RunningOnTPU || RunningOnAppleX86
492+
@test Array(x) .^ Array(p) @jit(Ops.power(x, p)) broken =
493+
RunningOnTPU || RunningOnAppleX86
494494
end
495495

496496
@testset "real" begin
@@ -607,8 +607,8 @@ end
607607
@test 1 ./ sqrt.(Array(x)) @jit Ops.rsqrt(x)
608608

609609
x = Reactant.to_rarray([1.0+1im 4.0+2im; 9.0+3im 25.0+4im])
610-
@test 1 ./ sqrt.(Array(x))
611-
@jit(Ops.rsqrt(x)) broken = RunningOnTPU || RunningOnAppleX86
610+
@test 1 ./ sqrt.(Array(x)) @jit(Ops.rsqrt(x)) broken =
611+
RunningOnTPU || RunningOnAppleX86
612612
end
613613

614614
@testset "select" begin
@@ -717,8 +717,8 @@ end
717717
@test [1.0, 2.0, 3.0, 4.0] @jit Ops.sqrt(x)
718718

719719
x = Reactant.to_rarray([1.0 + 0im, 0.0 + 1im])
720-
@test [1.0 + 0im, 1 / 2 * (1 + im)]
721-
@jit(Ops.sqrt(x)) broken = RunningOnTPU || RunningOnAppleX86
720+
@test [1.0 + 0im, 1 / 2 * (1 + im)] @jit(Ops.sqrt(x)) broken =
721+
RunningOnTPU || RunningOnAppleX86
722722
end
723723

724724
@testset "subtract" begin
@@ -743,23 +743,23 @@ end
743743
# TODO tan(π/2) is Inf but it returns 1.633123935319537e16
744744
x = Reactant.to_rarray([0, π / 4, π / 2, 3π / 4, π])
745745

746-
@test [0.0, 1.0, 1.633123935319537e16, -1.0, 0.0]
747-
@jit(Ops.tan(x)) broken = RunningOnTPU || RunningOnAppleX86
746+
@test [0.0, 1.0, 1.633123935319537e16, -1.0, 0.0] @jit(Ops.tan(x)) broken =
747+
RunningOnTPU || RunningOnAppleX86
748748

749749
x = Reactant.to_rarray([
750750
0.0 + 0.0im, π / 4 + 0.0im, π / 2 + 0.0im, 3π / 4 + 0.0im, π + 0.0im
751751
])
752-
@test ComplexF64[0.0, 1.0, 1.633123935319537e16, -1.0, 0.0]
753-
@jit(Ops.tan(x)) broken = RunningOnTPU || RunningOnAppleX86
752+
@test ComplexF64[0.0, 1.0, 1.633123935319537e16, -1.0, 0.0] @jit(Ops.tan(x)) broken =
753+
RunningOnTPU || RunningOnAppleX86
754754
end
755755

756756
@testset "tanh" begin
757757
x = Reactant.to_rarray([-1.0, 0.0, 1.0])
758758
@test [-0.7615941559557649, 0.0, 0.7615941559557649] @jit Ops.tanh(x)
759759

760760
x = Reactant.to_rarray(ComplexF64[-1.0, 0.0, 1.0])
761-
@test ComplexF64[-0.7615941559557649, 0.0, 0.7615941559557649]
762-
@jit(Ops.tanh(x)) broken = RunningOnTPU || RunningOnAppleX86
761+
@test ComplexF64[-0.7615941559557649, 0.0, 0.7615941559557649] @jit(Ops.tanh(x)) broken =
762+
RunningOnTPU || RunningOnAppleX86
763763
end
764764

765765
@testset "transpose" begin
@@ -908,8 +908,8 @@ end
908908
@testset "polygamma" begin
909909
x = Reactant.to_rarray([-1.0, 0.0, 1.0, 1.0, 2.5])
910910
m = Reactant.to_rarray([3.0, 3.0, 2.0, 3.0, 4.0])
911-
@test SpecialFunctions.polygamma.(Int.(Array(m)), Array(x))
912-
@jit(Ops.polygamma(m, x)) broken = RunningOnAppleX86
911+
@test SpecialFunctions.polygamma.(Int.(Array(m)), Array(x)) @jit(Ops.polygamma(m, x)) broken =
912+
RunningOnAppleX86
913913
end
914914

915915
@testset "sinh" begin

0 commit comments

Comments
 (0)