ref: 52a6023c85229ee680e0cb53df168cac214a915e
parent: cd1bcaf273f968c44f70c78eb1ff8729086badbb
author: qwx <qwx@sciops.net>
date: Thu Sep 25 17:37:30 EDT 2025
add another coercion test where a float constant must be treated differently depending on whether it's a number, a printable string, or a regex.
--- /dev/null
+++ b/test/t.coerce3
@@ -1,0 +1,8 @@
+{+ print index(1e0, $1)
+ print substr(123456789, 1e0, 3)
+ print 123456789 ~ 1e0, 1e0 ~ 123456789
+ print 1e0 in x
+ print 1e0 23 456
+ print 123456789 ~ 1e0, 1e0 ~ 123456789, 123456789 ~ "abc"
+}
--
⑨