improve xtdb test

Signed-off-by: Sean Corfield <sean@corfield.org>
This commit is contained in:
Sean Corfield 2024-11-29 21:49:44 -08:00
parent 3f1677bff2
commit fdfc6bc997
No known key found for this signature in database

View file

@ -44,8 +44,10 @@
from ((bar a))})))))
(deftest dotted-array-access-tests
(is (= ["SELECT (a.b).c"]
(sql/format '{select (((. (nest :a.b) :c)))}))))
(is (= ["SELECT (a.b).c"] ; old, partial support:
(sql/format '{select (((. (nest :a.b) :c)))})))
(is (= ["SELECT (a.b).c"] ; new, complete support:
(sql/format '{select (((:get-in :a.b :c)))}))))
(deftest erase-from-test
(is (= ["ERASE FROM foo WHERE foo.id = ?" 42]