26 lines
748 B
Plaintext
26 lines
748 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
|
||
|
|
||
|
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
|