Skip to content

Commit

Permalink
[tests] add test for 11647
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxiaomao committed Mar 5, 2025
1 parent 2e698d6 commit b86e392
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/unit/src/unit/issues/Issue11647.hx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package unit.issues;

class Issue11647 extends Test {
#if (java || hl || cpp)
function test() {
foo();
}

function foo(a : Single = 10.0, b:Single = 11.0, c:Single = 12.0) : Void {
feq(10, a);
feq(11, b);
feq(12, c);
}
#end
}
2 changes: 2 additions & 0 deletions tests/unit/src/unit/issues/Issue12039.hx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ class Issue12039 extends Test {
@:analyzer(ignore)
function testSingle() {
var s1 : Single = 10.0;
feq(10.0, s1);
var s2 : Single = 0.3;
feq(0.3, s2);
var f1 : Float = 10.0;
var f2 : Float = 0.3;
var a : Single = s1 + s2;
Expand Down

0 comments on commit b86e392

Please sign in to comment.