Skip to content

Commit

Permalink
Fix EqFloat to actually work correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed May 30, 2017
1 parent 27bd4b1 commit c98b2ed
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/macfloat.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ Int EqMacfloat (
}

Obj FuncEqMacfloat (
Obj self,
Obj macfloatL,
Obj macfloatR )
{
Expand Down
12 changes: 12 additions & 0 deletions tst/testinstall/float.tst
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,18 @@ gap> -MakeFloat(1.0, infinity) = neginf;
true
gap> MakeFloat(1.0, -infinity) = neginf;
true

#
gap> EqFloat(1.0, 1.1);
false
gap> EqFloat(1.0, 1.0);
true
gap> EqFloat(0.0/0.0,0.0/0.0);
false
gap> EqFloat(0.0,0.0/0.0);
false

#
gap> STOP_TEST( "float.tst", 1);

#############################################################################
Expand Down

0 comments on commit c98b2ed

Please sign in to comment.