Skip to content

Commit

Permalink
chore: Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
spotandjake committed Jan 2, 2024
1 parent 51d7134 commit 00a60d7
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions compiler/test/suites/strings.re
Original file line number Diff line number Diff line change
Expand Up @@ -265,21 +265,9 @@ bar", 1))|},
"let x = \"\\u{110000}\"",
"Illegal unicode code point",
);
assertRun(
"string_float1",
{|include "float32"; from Float32 use *; print(div(0.0f, 0.0f))|},
"NaN\n",
);
assertRun(
"string_float2",
{|include "float32"; from Float32 use *; print(div(1.0f, 0.0f))|},
"Infinity\n",
);
assertRun(
"string_float3",
{|include "float32"; from Float32 use *; print(div(-1.0f, 0.0f))|},
"-Infinity\n",
);
assertRun("string_float1", {|print(NaNf)|}, "NaN\n");
assertRun("string_float2", {|print(Infinityf)|}, "Infinity\n");
assertRun("string_float3", {|print(-Infinityf)|}, "-Infinity\n");
assertRun(
"string_float4",
{|include "float64"; from Float64 use *; print(div(0.0d, 0.0d))|},
Expand Down

0 comments on commit 00a60d7

Please sign in to comment.