Skip to content

Commit

Permalink
Add unit tests for realPart/imaginaryPart/conjugate updates
Browse files Browse the repository at this point in the history
  • Loading branch information
d-torrance committed Oct 30, 2024
1 parent cd44a4c commit 056e274
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions M2/Macaulay2/tests/normal/numbers.m2
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ assert( hash (1p111*ii) =!= hash (1p110*ii) )
assert( hash (1p111*ii) === hash (1p111*ii) )
assert( realPart toCC 1. === 1. )
assert( imaginaryPart toCC 1. === 0. )
assert( realPart ii === 0. )
assert( imaginaryPart ii === 1. )
assert( conjugate ii == -ii )

assert try (lift(1.3,ZZ); false) else true
assert not liftable(1.3,ZZ)
Expand Down

0 comments on commit 056e274

Please sign in to comment.