Skip to content

Commit e194348

Browse files
author
Olivier Thill
committed
add test for unary -
1 parent 05922ad commit e194348

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/meta.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,11 @@ end
6060
end
6161
end
6262

63-
63+
@testset "Negating and @tf" begin
64+
a = tf.constant(1)
65+
@tf b = -a
66+
@test true # Above line would have errored if unary - didn't work with @tf
67+
end
6468

6569
@testset "Naming Big Demo" begin
6670
let

0 commit comments

Comments
 (0)