浏览代码

[tests] add test for 11990 (#11992)

* [tests] add test for 11990

* [tests] add test for F64 too
Yuxiao Mao 7 月之前
父节点
当前提交
0d13d8408d
共有 1 个文件被更改,包括 14 次插入0 次删除
  1. 14 0
      tests/unit/src/unit/issues/Issue11990.hx

+ 14 - 0
tests/unit/src/unit/issues/Issue11990.hx

@@ -0,0 +1,14 @@
+package unit.issues;
+
+class Issue11990 extends unit.Test {
+	public function test() {
+		#if (cpp || jvm || hl)
+		var x:Single = std.Math.NaN;
+		eq(true, x != x);
+		var x:Float = std.Math.NaN;
+		eq(true, x != x);
+		#else
+		noAssert();
+		#end
+	}
+}