toml version ecb24de
FAIL valid/array/array
Backtrace:
In ice-9/boot-9.scm:
1755:12 13 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
In unknown file:
12 (apply-smob/0 #)
In ice-9/boot-9.scm:
724:2 11 (call-with-prompt _ _ #)
In ice-9/eval.scm:
619:8 10 (_ #(#(#)))
In ice-9/boot-9.scm:
2858:4 9 (save-module-excursion _)
4408:12 8 (_)
In test/test-decoder.scm:
58:14 7 (_)
In toml/parser.scm:
190:6 6 (peg-tree->scm _)
280:18 5 (add-kv-to-tree (("strings" . #((("value" . "a") ("type" . "string")) (("value" . "b") ("type" . "string")) (("value" . "c") ("type" . "string")))) ("floats" . #((("value" . "1.1") ("type" . "float")) (("value" . "2.1") ("type" . "float")) (("value" . "3.1") ("type" . "float")))) ("ints" . #((("value" . "1") ("type" . "integer")) (("value" . "2") ("type" . "integer")) (("value" . "3") ("type" . "integer"))))) _ _)
167:23 4 (loop _)
In test/test-decoder.scm:
14:21 3 (test-value->scm _)
In ice-9/boot-9.scm:
222:29 2 (map1 ((datetime "1987-07-05T17:45:00Z") datetime-local "1979-05-27T07:32:00" date-local "2006-06-01" time-local "11:00:00"))
222:17 1 (map1 (datetime-local "1979-05-27T07:32:00" date-local "2006-06-01" time-local "11:00:00"))
In test/test-decoder.scm:
41:9 0 (test-value->scm datetime-local)
test/test-decoder.scm:41:9: In procedure test-value->scm:
err: ~a datetime-local
Exit 1
input sent to parser-cmd (PID 7522):
ints = [1, 2, 3, ]
floats = [1.1, 2.1, 3.1]
strings = ["a", "b", "c"]
dates = [
1987-07-05T17:45:00Z,
1979-05-27T07:32:00,
2006-06-01,
11:00:00,
]
comments = [
1,
2, #this is ok
]
output from parser-cmd (PID 7522) (stderr):
Backtrace:
In ice-9/boot-9.scm:
1755:12 13 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
In unknown file:
12 (apply-smob/0 #)
In ice-9/boot-9.scm:
724:2 11 (call-with-prompt _ _ #)
In ice-9/eval.scm:
619:8 10 (_ #(#(#)))
In ice-9/boot-9.scm:
2858:4 9 (save-module-excursion _)
4408:12 8 (_)
In test/test-decoder.scm:
58:14 7 (_)
In toml/parser.scm:
190:6 6 (peg-tree->scm _)
280:18 5 (add-kv-to-tree (("strings" . #((("value" . "a") ("type" . "string")) (("value" . "b") ("type" . "string")) (("value" . "c") ("type" . "string")))) ("floats" . #((("value" . "1.1") ("type" . "float")) (("value" . "2.1") ("type" . "float")) (("value" . "3.1") ("type" . "float")))) ("ints" . #((("value" . "1") ("type" . "integer")) (("value" . "2") ("type" . "integer")) (("value" . "3") ("type" . "integer"))))) _ _)
167:23 4 (loop _)
In test/test-decoder.scm:
14:21 3 (test-value->scm _)
In ice-9/boot-9.scm:
222:29 2 (map1 ((datetime "1987-07-05T17:45:00Z") datetime-local "1979-05-27T07:32:00" date-local "2006-06-01" time-local "11:00:00"))
222:17 1 (map1 (datetime-local "1979-05-27T07:32:00" date-local "2006-06-01" time-local "11:00:00"))
In test/test-decoder.scm:
41:9 0 (test-value->scm datetime-local)
test/test-decoder.scm:41:9: In procedure test-value->scm:
err: ~a datetime-local
Exit 1
want:
FAIL valid/inline-table/array-02
Backtrace:
In ice-9/boot-9.scm:
1755:12 13 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
In unknown file:
12 (apply-smob/0 #)
In ice-9/boot-9.scm:
724:2 11 (call-with-prompt _ _ #)
In ice-9/eval.scm:
619:8 10 (_ #(#(#)))
In ice-9/boot-9.scm:
2858:4 9 (save-module-excursion _)
4408:12 8 (_)
In test/test-decoder.scm:
58:14 7 (_)
In toml/parser.scm:
190:6 6 (peg-tree->scm _)
280:18 5 (add-kv-to-tree () _ _)
167:23 4 (loop _)
190:6 3 (peg-tree->scm _)
280:18 2 (add-kv-to-tree () _ _)
167:23 1 (loop _)
In test/test-decoder.scm:
41:9 0 (test-value->scm array)
test/test-decoder.scm:41:9: In procedure test-value->scm:
err: ~a array
Exit 1
input sent to parser-cmd (PID 8385):
# "No newlines are allowed between the curly braces unless they are valid within
# a value"
a = { a = [
]}
output from parser-cmd (PID 8385) (stderr):
Backtrace:
In ice-9/boot-9.scm:
1755:12 13 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
In unknown file:
12 (apply-smob/0 #)
In ice-9/boot-9.scm:
724:2 11 (call-with-prompt _ _ #)
In ice-9/eval.scm:
619:8 10 (_ #(#(#)))
In ice-9/boot-9.scm:
2858:4 9 (save-module-excursion _)
4408:12 8 (_)
In test/test-decoder.scm:
58:14 7 (_)
In toml/parser.scm:
190:6 6 (peg-tree->scm _)
280:18 5 (add-kv-to-tree () _ _)
167:23 4 (loop _)
190:6 3 (peg-tree->scm _)
280:18 2 (add-kv-to-tree () _ _)
167:23 1 (loop _)
In test/test-decoder.scm:
41:9 0 (test-value->scm array)
test/test-decoder.scm:41:9: In procedure test-value->scm:
err: ~a array
Exit 1
want:
FAIL valid/key/dotted-empty
Backtrace:
In ice-9/boot-9.scm:
1755:12 9 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
In unknown file:
8 (apply-smob/0 #)
In ice-9/boot-9.scm:
724:2 7 (call-with-prompt _ _ #)
In ice-9/eval.scm:
619:8 6 (_ #(#(#)))
In ice-9/boot-9.scm:
2858:4 5 (save-module-excursion _)
4408:12 4 (_)
In test/test-decoder.scm:
58:14 3 (_)
In toml/parser.scm:
367:45 2 (peg-tree->scm _)
In srfi/srfi-1.scm:
586:17 1 (map1 ((simple-key (simple-key "x"))))
In unknown file:
0 (string-join (simple-key "x") "" #)
ERROR: In procedure string-join:
In procedure string-append: Wrong type (expecting string): simple-key
Exit 1
input sent to parser-cmd (PID 8879):
''.x = "empty.x"
x."" = "x.empty"
[a]
"".'' = "empty.empty"
output from parser-cmd (PID 8879) (stderr):
Backtrace:
In ice-9/boot-9.scm:
1755:12 9 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
In unknown file:
8 (apply-smob/0 #)
In ice-9/boot-9.scm:
724:2 7 (call-with-prompt _ _ #)
In ice-9/eval.scm:
619:8 6 (_ #(#(#)))
In ice-9/boot-9.scm:
2858:4 5 (save-module-excursion _)
4408:12 4 (_)
In test/test-decoder.scm:
58:14 3 (_)
In toml/parser.scm:
367:45 2 (peg-tree->scm _)
In srfi/srfi-1.scm:
586:17 1 (map1 ((simple-key (simple-key "x"))))
In unknown file:
0 (string-join (simple-key "x") "" #)
ERROR: In procedure string-join:
In procedure string-append: Wrong type (expecting string): simple-key
Exit 1
want:
FAIL valid/spec-1.0.0/table-9
Backtrace:
In ice-9/boot-9.scm:
1755:12 8 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
In unknown file:
7 (apply-smob/0 #)
In ice-9/boot-9.scm:
724:2 6 (call-with-prompt _ _ #)
In ice-9/eval.scm:
619:8 5 (_ #(#(#)))
In ice-9/boot-9.scm:
2858:4 4 (save-module-excursion _)
4408:12 3 (_)
In test/test-decoder.scm:
58:14 2 (_)
In toml/parser.scm:
386:13 1 (peg-tree->scm _)
315:4 0 (check-explicit-table-keys _ _ _)
toml/parser.scm:315:4: In procedure check-explicit-table-keys:
guile-toml: redefinition not allowed ("fruit" "apple" "texture") (("fruit" "apple" "taste") ("fruit" "apple") ("fruit")) 1
Exit 1
input sent to parser-cmd (PID 10135):
[fruit]
apple.color = "red"
apple.taste.sweet = true
# [fruit.apple] # INVALID
# [fruit.apple.taste] # INVALID
[fruit.apple.texture] # you can add sub-tables
smooth = true
output from parser-cmd (PID 10135) (stderr):
Backtrace:
In ice-9/boot-9.scm:
1755:12 8 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
In unknown file:
7 (apply-smob/0 #)
In ice-9/boot-9.scm:
724:2 6 (call-with-prompt _ _ #)
In ice-9/eval.scm:
619:8 5 (_ #(#(#)))
In ice-9/boot-9.scm:
2858:4 4 (save-module-excursion _)
4408:12 3 (_)
In test/test-decoder.scm:
58:14 2 (_)
In toml/parser.scm:
386:13 1 (peg-tree->scm _)
315:4 0 (check-explicit-table-keys _ _ _)
toml/parser.scm:315:4: In procedure check-explicit-table-keys:
guile-toml: redefinition not allowed ("fruit" "apple" "texture") (("fruit" "apple" "taste") ("fruit" "apple") ("fruit")) 1
Exit 1
want:
FAIL valid/table/array-within-dotted
Backtrace:
In ice-9/boot-9.scm:
1755:12 8 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
In unknown file:
7 (apply-smob/0 #)
In ice-9/boot-9.scm:
724:2 6 (call-with-prompt _ _ #)
In ice-9/eval.scm:
619:8 5 (_ #(#(#)))
In ice-9/boot-9.scm:
2858:4 4 (save-module-excursion _)
4408:12 3 (_)
In test/test-decoder.scm:
58:14 2 (_)
In toml/parser.scm:
399:9 1 (peg-tree->scm _)
315:4 0 (check-explicit-table-keys _ _ _)
toml/parser.scm:315:4: In procedure check-explicit-table-keys:
guile-toml: redefinition not allowed ("fruit" "apple" "seeds") (("fruit")) 0
Exit 1
input sent to parser-cmd (PID 10720):
[fruit]
apple.color = "red"
[[fruit.apple.seeds]]
size = 2
output from parser-cmd (PID 10720) (stderr):
Backtrace:
In ice-9/boot-9.scm:
1755:12 8 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
In unknown file:
7 (apply-smob/0 #)
In ice-9/boot-9.scm:
724:2 6 (call-with-prompt _ _ #)
In ice-9/eval.scm:
619:8 5 (_ #(#(#)))
In ice-9/boot-9.scm:
2858:4 4 (save-module-excursion _)
4408:12 3 (_)
In test/test-decoder.scm:
58:14 2 (_)
In toml/parser.scm:
399:9 1 (peg-tree->scm _)
315:4 0 (check-explicit-table-keys _ _ _)
toml/parser.scm:315:4: In procedure check-explicit-table-keys:
guile-toml: redefinition not allowed ("fruit" "apple" "seeds") (("fruit")) 0
Exit 1
want:
FAIL valid/table/empty-name
Backtrace:
In ice-9/boot-9.scm:
1755:12 9 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
In unknown file:
8 (apply-smob/0 #)
In ice-9/boot-9.scm:
724:2 7 (call-with-prompt _ _ #)
In ice-9/eval.scm:
619:8 6 (_ #(#(#)))
In ice-9/boot-9.scm:
2858:4 5 (save-module-excursion _)
4408:12 4 (_)
In test/test-decoder.scm:
58:14 3 (_)
In toml/parser.scm:
376:22 2 (peg-tree->scm _)
In srfi/srfi-1.scm:
586:17 1 (map1 ((simple-key (simple-key "a"))))
In unknown file:
0 (string-join (simple-key "a") "" #)
ERROR: In procedure string-join:
In procedure string-append: Wrong type (expecting string): simple-key
Exit 1
input sent to parser-cmd (PID 10722):
['']
x = 1
["".a]
x = 2
[a.'']
x = 3
output from parser-cmd (PID 10722) (stderr):
Backtrace:
In ice-9/boot-9.scm:
1755:12 9 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
In unknown file:
8 (apply-smob/0 #)
In ice-9/boot-9.scm:
724:2 7 (call-with-prompt _ _ #)
In ice-9/eval.scm:
619:8 6 (_ #(#(#)))
In ice-9/boot-9.scm:
2858:4 5 (save-module-excursion _)
4408:12 4 (_)
In test/test-decoder.scm:
58:14 3 (_)
In toml/parser.scm:
376:22 2 (peg-tree->scm _)
In srfi/srfi-1.scm:
586:17 1 (map1 ((simple-key (simple-key "a"))))
In unknown file:
0 (string-join (simple-key "a") "" #)
ERROR: In procedure string-join:
In procedure string-append: Wrong type (expecting string): simple-key
Exit 1
want:
FAIL invalid/array/extend-defined-aot
Expected an error, but no error was reported.
input sent to parser-cmd (PID 11107):
[[tab.arr]]
[tab]
arr.val1=1
output from parser-cmd (PID 11107) (stdout):
{
"tab": {"arr": [{
"val1": {"type": "integer", "value": "1"}
}]}
}
want:
Exit code 1
FAIL invalid/datetime/feb-29
Expected an error, but no error was reported.
input sent to parser-cmd (PID 12553):
"not a leap year" = 2100-02-29T15:15:15Z
output from parser-cmd (PID 12553) (stdout):
{
"not a leap year": {"type": "datetime", "value": "2100-02-29T15:15:15Z"}
}
want:
Exit code 1
FAIL invalid/datetime/feb-30
Expected an error, but no error was reported.
input sent to parser-cmd (PID 12571):
"only 28 or 29 days in february" = 1988-02-30T15:15:15Z
output from parser-cmd (PID 12571) (stdout):
{
"only 28 or 29 days in february": {"type": "datetime", "value": "1988-02-30T15:15:15Z"}
}
want:
Exit code 1
FAIL invalid/datetime/offset-overflow-hour
Expected an error, but no error was reported.
input sent to parser-cmd (PID 12879):
# Hour must be 00-24
d = 1985-06-18 17:04:07+25:00
output from parser-cmd (PID 12879) (stdout):
{
"d": {"type": "datetime", "value": "1985-06-18 17:04:07+25:00"}
}
want:
Exit code 1
FAIL invalid/inline-table/duplicate-key-03
Expected an error, but no error was reported.
input sent to parser-cmd (PID 14624):
tbl = { fruit = { apple.color = "red" }, fruit.apple.texture = { smooth = true } }
output from parser-cmd (PID 14624) (stdout):
{
"tbl": {
"fruit": {
"apple": {
"color": {"type": "string", "value": "red"},
"texture": {
"smooth": {"type": "bool", "value": "true"}
}
}
}
}
}
want:
Exit code 1
FAIL invalid/inline-table/overwrite-07
Expected an error, but no error was reported.
input sent to parser-cmd (PID 14932):
tab = { inner.table = [{}], inner.table.val = "bad" }
output from parser-cmd (PID 14932) (stdout):
{
"tab": {
"inner": {"table": [{
"val": {"type": "string", "value": "bad"}
}]}
}
}
want:
Exit code 1
FAIL invalid/inline-table/overwrite-08
Expected an error, but no error was reported.
input sent to parser-cmd (PID 14933):
tab = { inner = { dog = "best" }, inner.cat = "worst" }
output from parser-cmd (PID 14933) (stdout):
{
"tab": {
"inner": {
"cat": {"type": "string", "value": "worst"},
"dog": {"type": "string", "value": "best"}
}
}
}
want:
Exit code 1
FAIL invalid/local-date/feb-29
Expected an error, but no error was reported.
input sent to parser-cmd (PID 16809):
"not a leap year" = 2100-02-29
output from parser-cmd (PID 16809) (stdout):
{
"not a leap year": {"type": "date-local", "value": "2100-02-29"}
}
want:
Exit code 1
FAIL invalid/local-date/feb-30
Expected an error, but no error was reported.
input sent to parser-cmd (PID 16825):
"only 28 or 29 days in february" = 1988-02-30
output from parser-cmd (PID 16825) (stdout):
{
"only 28 or 29 days in february": {"type": "date-local", "value": "1988-02-30"}
}
want:
Exit code 1
FAIL invalid/local-datetime/feb-29
Expected an error, but no error was reported.
input sent to parser-cmd (PID 16993):
"not a leap year" = 2100-02-29T15:15:15
output from parser-cmd (PID 16993) (stdout):
{
"not a leap year": {"type": "datetime-local", "value": "2100-02-29T15:15:15"}
}
want:
Exit code 1
FAIL invalid/local-datetime/feb-30
Expected an error, but no error was reported.
input sent to parser-cmd (PID 16994):
"only 28 or 29 days in february" = 1988-02-30T15:15:15
output from parser-cmd (PID 16994) (stdout):
{
"only 28 or 29 days in february": {"type": "datetime-local", "value": "1988-02-30T15:15:15"}
}
want:
Exit code 1
FAIL invalid/spec-1.0.0/inline-table-2-0
Expected an error, but no error was reported.
input sent to parser-cmd (PID 17420):
[product]
type = { name = "Nail" }
type.edible = false # INVALID
output from parser-cmd (PID 17420) (stdout):
{
"product": {
"type": {
"edible": {"type": "bool", "value": "false"},
"name": {"type": "string", "value": "Nail"}
}
}
}
want:
Exit code 1
FAIL invalid/table/append-with-dotted-keys-03
Expected an error, but no error was reported.
input sent to parser-cmd (PID 19098):
[[a.b]]
[a]
b.y = 2
output from parser-cmd (PID 19098) (stdout):
{
"a": {"b": [{
"y": {"type": "integer", "value": "2"}
}]}
}
want:
Exit code 1
FAIL invalid/table/redefine-02
Expected an error, but no error was reported.
input sent to parser-cmd (PID 19951):
[t1]
t2.t3.v = 0
[t1.t2]
output from parser-cmd (PID 19951) (stdout):
{
"t1": {
"t2": {
"t3": {
"v": {"type": "integer", "value": "0"}
}
}
}
}
want:
Exit code 1
toml-test v2025-04-23 [./test/test-decoder.scm]: using embedded tests
valid tests: 199 passed, 6 failed
invalid tests: 515 passed, 14 failed
==> ENCODER TESTS
FAIL valid/inline-table/array-02
Could not find key "a.a" in encoder output
input sent to parser-cmd (PID 21094):
{
"a": {"a": []}
}
output from parser-cmd (PID 21094) (stdout):
["a"]
want:
# "No newlines are allowed between the curly braces unless they are valid within
# a value"
a = { a = [
]}
FAIL valid/multibyte
decode TOML from encoder:
toml: line 6 (last key "\"𝐭𝐛𝐥\".sub"): expected a top-level item to end with a newline, comment, or EOF, but got 'ƨ' instead
input sent to parser-cmd (PID 21891):
{
"𝐭𝐛𝐥": {
"string": {"type": "string", "value": "𝓼𝓽𝓻𝓲𝓷𝓰 - #"},
"sub": {
"another_test_string": {"type": "string", "value": "§á₥è ƭλïñϱ, βúƭ ωïƭλ á ƨƭřïñϱ #"},
"escapes": {"type": "string", "value": " Âñδ ωλèñ \"'ƨ ářè ïñ ƭλè ƨƭřïñϱ, áℓôñϱ ωïƭλ # \""},
"βïƭ#": {
"multi_line_array": [{"type": "string", "value": "]"}],
"ωλáƭ?": {"type": "string", "value": "Ýôú δôñ'ƭ ƭλïñƙ ƨô₥è úƨèř ωôñ'ƭ δô ƭλáƭ?"}
},
"𝕒𝕣𝕣𝕒𝕪": [
{"type": "string", "value": "] "},
{"type": "string", "value": " # "}
],
"𝕒𝕣𝕣𝕒𝕪𝟚": [
{"type": "string", "value": "Tèƨƭ #11 ]ƥřôƲèδ ƭλáƭ"},
{"type": "string", "value": "Éжƥèřï₥èñƭ #9 ωáƨ á ƨúççèƨƨ"}
]
}
}
}
output from parser-cmd (PID 21891) (stdout):
["𝐭𝐛𝐥"]
"string" = "𝓼𝓽𝓻𝓲𝓷𝓰 - #"
["𝐭𝐛𝐥"."sub"]
"𝕒𝕣𝕣𝕒𝕪𝟚" = ["Tèƨƭ #11 ]ƥřôƲèδ ƭλáƭ", "Éжƥèřï₥èñƭ #9 ωáƨ á ƨúççèƨƨ"]
"𝕒𝕣𝕣𝕒𝕪" = ["] ", " # "]
"escapes" = ' Âñδ ωλèñ "'ƨ ářè ïñ ƭλè ƨƭřïñϱ, áℓôñϱ ωïƭλ # "'
"another_test_string" = "§á₥è ƭλïñϱ, βúƭ ωïƭλ á ƨƭřïñϱ #"
["𝐭𝐛𝐥"."sub"."βïƭ#"]
"ωλáƭ?" = "Ýôú δôñ'ƭ ƭλïñƙ ƨô₥è úƨèř ωôñ'ƭ δô ƭλáƭ?"
"multi_line_array" = ["]"]
want:
# Test multibyte throughout
# Tèƨƭ ƒïℓè ƒôř TÓM£
# Óñℓ¥ ƭλïƨ ôñè ƭřïèƨ ƭô è₥úℓáƭè á TÓM£ ƒïℓè ωřïƭƭèñ β¥ á úƨèř ôƒ ƭλè ƙïñδ ôƒ ƥářƨèř ωřïƭèřƨ ƥřôβáβℓ¥ λáƭè
['𝐭𝐛𝐥']
string = "𝓼𝓽𝓻𝓲𝓷𝓰 - #" # " 𝓼𝓽𝓻𝓲𝓷𝓰
['𝐭𝐛𝐥'.sub]
'𝕒𝕣𝕣𝕒𝕪' = [ "] ", " # "] # ] 𝓪𝓻𝓻𝓪𝔂
'𝕒𝕣𝕣𝕒𝕪𝟚' = [ "Tèƨƭ #11 ]ƥřôƲèδ ƭλáƭ", "Éжƥèřï₥èñƭ #9 ωáƨ á ƨúççèƨƨ" ]
# Ýôú δïδñ'ƭ ƭλïñƙ ïƭ'δ áƨ èáƨ¥ áƨ çλúçƙïñϱ ôúƭ ƭλè ℓáƨƭ #, δïδ ¥ôú?
another_test_string = "§á₥è ƭλïñϱ, βúƭ ωïƭλ á ƨƭřïñϱ #"
escapes = " Âñδ ωλèñ \"'ƨ ářè ïñ ƭλè ƨƭřïñϱ, áℓôñϱ ωïƭλ # \"" # "áñδ çô₥₥èñƭƨ ářè ƭλèřè ƭôô"
# Tλïñϱƨ ωïℓℓ ϱèƭ λářδèř
['𝐭𝐛𝐥'.sub."βïƭ#"]
"ωλáƭ?" = "Ýôú δôñ'ƭ ƭλïñƙ ƨô₥è úƨèř ωôñ'ƭ δô ƭλáƭ?"
multi_line_array = [
"]",
# ] Óλ ¥èƨ Ì δïδ
]
FAIL valid/spec-1.0.0/float-0
decode TOML from encoder:
toml: line 3 (last key "flt5"): Invalid float value: "1e+06.0"
input sent to parser-cmd (PID 22023):
{
"flt1": {"type": "float", "value": "1"},
"flt2": {"type": "float", "value": "3.1415"},
"flt3": {"type": "float", "value": "-0.01"},
"flt4": {"type": "float", "value": "5e+22"},
"flt5": {"type": "float", "value": "1e+06"},
"flt6": {"type": "float", "value": "-0.02"},
"flt7": {"type": "float", "value": "6.626e-34"}
}
output from parser-cmd (PID 22023) (stdout):
"flt7" = 6.626e-34
"flt6" = -0.02
"flt5" = 1e+06.0
"flt4" = 5e+22.0
"flt3" = -0.01
"flt2" = 3.1415
"flt1" = 1.0
want:
# fractional
flt1 = +1.0
flt2 = 3.1415
flt3 = -0.01
# exponent
flt4 = 5e+22
flt5 = 1e06
flt6 = -2E-2
# both
flt7 = 6.626e-34
FAIL valid/spec-1.0.0/string-0
Values for key "str" differ:
Expected: I'm a string. "You can quote me". Name José
Location SF. (string)
Your encoder: I'm a string. "You can quote me". Name\u0009José
Location\u0009SF. (string)
input sent to parser-cmd (PID 22415):
{
"str": {"type": "string", "value": "I'm a string. \"You can quote me\". Name\tJosé\nLocation\tSF."}
}
output from parser-cmd (PID 22415) (stdout):
"str" = '''I'm a string. "You can quote me". Name\u0009José
Location\u0009SF.'''
want:
str = "I'm a string. \"You can quote me\". Name\tJos\u00E9\nLocation\tSF."
FAIL valid/spec-1.0.0/string-6
decode TOML from encoder:
toml: line 6: expected a top-level item to end with a newline, comment, or EOF, but got 't' instead
input sent to parser-cmd (PID 22567):
{
"regex2": {"type": "string", "value": "I [dw]on't need \\d{2} apples"},
"lines": {
"type": "string",
"value": "The first newline is\ntrimmed in raw strings.\n All other whitespace\n is preserved.\n"
}
}
output from parser-cmd (PID 22567) (stdout):
"lines" = """The first newline is
trimmed in raw strings.
All other whitespace
is preserved.
"""
"regex2" = 'I [dw]on't need \d{2} apples'
want:
regex2 = '''I [dw]on't need \d{2} apples'''
lines = '''
The first newline is
trimmed in raw strings.
All other whitespace
is preserved.
'''
toml-test v2025-04-23 [./test/test-encoder.scm]: using embedded tests
encoder tests: 200 passed, 5 failed
took 0.0 0.0