mirror of
https://github.com/janet-lang/janet
synced 2025-10-17 16:57:40 +00:00
Update strtod.c to be less accepting of some badly formed numbers.
This commit is contained in:
@@ -67,4 +67,10 @@
|
||||
(assert (= nil (get roottab :childprop)), "table get 2")
|
||||
(assert (= 456 (get childtab :childprop)), "proto no effect")
|
||||
|
||||
# Long strings
|
||||
|
||||
(assert (= "hello, world" \==\hello, world\==\), "simple long string")
|
||||
(assert (= "hello, \"world\"" \\hello, "world"\\), "long string with embedded quotes")
|
||||
(assert (= "hello, \\\\\\ \"world\"" \=\hello, \\\ "world"\=\), "long string with embedded quotes and backslashes")
|
||||
|
||||
(end-suite)
|
||||
|
Reference in New Issue
Block a user