}
}
+{
+ # Silence "Non-finite repeat count", that is tested elsewhere.
+ local $^W = 0;
+ is("a" x $PInf, "", "x +Inf");
+ is("a" x $NInf, "", "x -Inf");
+}
+
# === NaN ===
cmp_ok($NaN, '!=', $NaN, "NaN is NaN numerically (by not being NaN)");
}
}
+{
+ # Silence "Non-finite repeat count", that is tested elsewhere.
+ local $^W = 0;
+ is("a" x $NaN, "", "x NaN");
+}
+
# === Tests combining Inf and NaN ===
# is() okay with $NaN because it uses eq.