Ver Fonte

[tests] add test for 11990 (#11992)

* [tests] add test for 11990

* [tests] add test for F64 too
Yuxiao Mao há 5 meses atrás
pai
commit
0d13d8408d
1 ficheiros alterados com 14 adições e 0 exclusões
  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
+	}
+}