Skip to content

Commit

Permalink
fix test for negligible
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Kundert authored and Ken Kundert committed Mar 19, 2021
1 parent 1eace91 commit dcd6a88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,8 @@ def test_negligible():

q=Quantity('-0')
assert q.render() == '-0'
assert q.render(negligible=0) == '0'
assert q.render(negligible=0) == '-0'
assert q.render(negligible=1e-18) == '0'

v=Quantity('1nV')
c=Quantity('1fA')
Expand Down

0 comments on commit dcd6a88

Please sign in to comment.