1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-24 12:17:41 +00:00

Use janet_getnat when non-negative integer needed.

This commit is contained in:
Calvin Rose
2022-05-05 18:24:53 -05:00
parent a9d4d2bfa3
commit b3aed13567
5 changed files with 8 additions and 4 deletions

View File

@@ -76,5 +76,9 @@
(def text "1800-10-818-9-818 16/12\n17/12 19/12\n20/12 11/01")
(assert (deep= (peg/match pattern text) (peg/match alt-pattern text)) "to/thru bug #971")
(assert-error
"table rawget regression"
(table/new -1))
(end-suite)