summaryrefslogtreecommitdiff
path: root/tests/typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-06-09 15:40:27 +0200
committerLaurenz <laurmaedje@gmail.com>2023-06-09 15:45:16 +0200
commit3bedf8d0d15682079978756918dab213ad7073ad (patch)
treedb45e013cc14b02316ca67fb0d212a8332e7b325 /tests/typ
parent7ece53ae0c4df44c90dad9196b30a54edde55e94 (diff)
Translate TOML datetime properly
Diffstat (limited to 'tests/typ')
-rw-r--r--tests/typ/compute/data.typ9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/typ/compute/data.typ b/tests/typ/compute/data.typ
index 96b655c0..d67b7aef 100644
--- a/tests/typ/compute/data.typ
+++ b/tests/typ/compute/data.typ
@@ -48,11 +48,18 @@
#test(data.integer, 42)
#test(data.float, 3.14)
#test(data.boolean, true)
-#test(data.date_time, "2023-02-01T15:38:57Z")
#test(data.array, (1, "string", 3.0, false))
#test(data.inline_table, ("first": "amazing", "second": "greater") )
#test(data.table.element, 5)
#test(data.table.others, (false, "indeed", 7))
+#test(data.date_time, datetime(
+ year: 2023,
+ month: 2,
+ day: 1,
+ hour: 15,
+ minute: 38,
+ second: 57,
+))
---
// Error: 7-18 failed to parse toml file: expected `.`, `=`, index 15-15