1
0
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:
Calvin Rose
2018-05-06 15:27:52 -04:00
parent b31791200b
commit 7e63427208
3 changed files with 17 additions and 3 deletions

View File

@@ -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)