Skip to content

Commit

Permalink
test: test cover Nx.logical_not
Browse files Browse the repository at this point in the history
  • Loading branch information
grzuy committed Nov 6, 2023
1 parent bbe4bdc commit ca8e83f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/candlex_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -1192,6 +1192,16 @@ defmodule CandlexTest do
)
end

test "logical_not" do
t([-1, 0, 1])
|> Nx.logical_not()
|> assert_equal(t([0, 1, 0]))

t([-1.0, 0.0, 1.0])
|> Nx.logical_not()
|> assert_equal(t([0, 1, 0]))
end

test "erf" do
Nx.erf(1.0)
|> assert_close(t(0.8427007794380188))
Expand Down

0 comments on commit ca8e83f

Please sign in to comment.