3e49355e17
FossilOrigin-Name: 6664850647cd314c076842df5bf94e4f12d9be7fb56795b2af25f15c1267fa4d
30 lines
769 B
Plaintext
30 lines
769 B
Plaintext
# 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
|
|
|
|
ifcapable vtab {
|
|
|
|
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
|