diff options
Diffstat (limited to 'test/json502.test')
-rw-r--r-- | test/json502.test | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/json502.test b/test/json502.test new file mode 100644 index 000000000..b5e570320 --- /dev/null +++ b/test/json502.test @@ -0,0 +1,25 @@ +# 2023-04-28 +# +# The author disclaims copyright to this source code. In place of +# a legal notice, here is a blessing: +# +# May you do good and not evil. +# May you find forgiveness for yourself and forgive others. +# May you share freely, never taking more than you give. +# +#*********************************************************************** +# This file implements tests for the JSON5 enhancements to the +# JSON SQL functions extension to the SQLite library. +# + +set testdir [file dirname $argv0] +source $testdir/tester.tcl +set testprefix json502 + +do_execsql_test 1.1 { + CREATE TABLE t1(x JSON); + INSERT INTO t1(x) VALUES('{a:{b:{c:"hello",},},}'); + SELECT fullkey FROM t1, json_tree(x); +} {{$} {$.a} {$.a.b} {$.a.b.c}} + +finish_test |