History

re-enabled test 86.ck after disabling fast-math compiler flag

Ge Wang committed 3 years ago

Commit bf3657e1 parent 5342d9d4 files · +13 −7Browse files

Unified · Split

4 files
  1. src/test/01-Basic/86.ck +7 −5
  2. src/test/01-Basic/86.txt +2 −0
  3. src/test/05-Global/86.ck +2 −2
  4. src/test/05-Global/86.txt +2 −0
src/test/01-Basic/86.ck+7−5
@@ -7,13 +7,15 @@ repeat( 20 ) n *=> n; · 6 unmodified lines
77 // bye sanity
88 0 *=> n;
99 // test it
10−// *** disabled due to different isnan on different architecture ***
11−// *** for example, the following returns 1 on Mac intel but 0 on Mac M1 ***
12−// <<< Math.isnan( n ) >>>;
10+<<< Math.isnan( n ) >>>;
11+
12+// *** RE-ENABLED in 1.4.2.1; differences due the fast-math compiler flag
13+// for example, if -ffast-math enabled, the above returns 1 on Mac
14+// intel but 0 on Mac arm64; fast-math is now disabled by default ***
1315
1416 // more
1517 <<< 1.0 / 0.0 => Math.isinf >>>;
16−// *** disabled due to above reason ***
17−// <<< 0.0 / 0.0 => Math.isnan >>>;
18+// *** the following alos differs if fast-math is enabled
19+<<< 0.0 / 0.0 => Math.isnan >>>;
1820 <<< Math.INFINITY, -Math.INFINITY >>>;
1921 <<< Math.INFINITY => Math.isinf >>>;
src/test/01-Basic/86.txt+2−0
@@ -1,4 +1,6 @@
11 1 :(int)
22 1 :(int)
3+1 :(int)
4+1 :(int)
35 inf -inf
46 1 :(int)
src/test/05-Global/86.ck+2−2
@@ -7,10 +7,10 @@ repeat( 20 ) n *=> n; · 6 unmodified lines
77 // bye sanity
88 0 *=> n;
99 // test it
10−// <<< Math.isnan( n ) >>>;
10+<<< Math.isnan( n ) >>>;
1111
1212 // more
1313 <<< 1.0 / 0.0 => Math.isinf >>>;
14−// <<< 0.0 / 0.0 => Math.isnan >>>;
14+<<< 0.0 / 0.0 => Math.isnan >>>;
1515 <<< Math.INFINITY, -Math.INFINITY >>>;
1616 <<< Math.INFINITY => Math.isinf >>>;
src/test/05-Global/86.txt+2−0
@@ -1,4 +1,6 @@
11 1 :(int)
22 1 :(int)
3+1 :(int)
4+1 :(int)
35 inf -inf
46 1 :(int)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t