Skip to content

Commit

Permalink
Update LOG_test_.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dstrande authored Jan 17, 2024
1 parent a0b9322 commit 18932f5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions blocks/MATH/ARITHMETIC/LOG/LOG_test_.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

def test_LOG_Vector_Vector(mock_flojoy_decorator):
import LOG

x = Vector(v=np.arange(10, 20, 1))
y = Vector(v=np.arange(20, 30, 1))
res = LOG.LOG(a=x, b=[y], log_base="input")
Expand Down Expand Up @@ -34,7 +34,8 @@ def test_LOG_OrderedPair_Vector(mock_flojoy_decorator):
res = LOG.LOG(a=OrderedPair(x=x, y=y), b=[Vector(v=z)], log_base="input")
test = np.log(y)
test /= np.log(z)

print(res.y, flush=True)
print(test, flush=True)

np.testing.assert_allclose(res.x, x)
np.testing.assert_allclose(res.y, test)

0 comments on commit 18932f5

Please sign in to comment.