mirror of
https://github.com/tstack/lnav
synced 2024-11-05 21:21:19 +00:00
4f4fd4091f
Improve xpath() error messages Update alt-text in other themes
22 lines
738 B
Bash
22 lines
738 B
Bash
#! /bin/bash
|
|
|
|
export YES_COLOR=1
|
|
|
|
run_cap_test ./drive_sql "SELECT * FROM xpath('/abc[', '<abc/>')"
|
|
|
|
run_cap_test ./drive_sql "SELECT * FROM xpath('/abc', '<abc')"
|
|
|
|
run_cap_test ./drive_sql "SELECT * FROM xpath('/abc/def', '<abc/>')"
|
|
|
|
run_cap_test ./drive_sql "SELECT * FROM xpath('/abc/def[@a=\"b\"]', '<abc><def/><def a=\"b\">ghi</def></abc>')"
|
|
|
|
run_cap_test ./drive_sql "SELECT * FROM xpath('/abc/def', '<abc><def>Hello ></def></abc>')"
|
|
|
|
run_cap_test ${lnav_test} -n \
|
|
-c ";SELECT * FROM xpath('/catalog', (SELECT content FROM lnav_file LIMIT 1))" \
|
|
${test_dir}/invalid-books.xml
|
|
|
|
run_cap_test ${lnav_test} -n \
|
|
-c ";SELECT * FROM xpath('/cat[alog', (SELECT content FROM lnav_file LIMIT 1))" \
|
|
${test_dir}/books.xml
|