#! /bin/bash
export YES_COLOR=1
run_cap_test ./drive_sql "SELECT * FROM xpath('/abc[', '')"
run_cap_test ./drive_sql "SELECT * FROM xpath('/abc', '')"
run_cap_test ./drive_sql "SELECT * FROM xpath('/abc/def[@a=\"b\"]', 'ghi')"
run_cap_test ./drive_sql "SELECT * FROM xpath('/abc/def', 'Hello >')"
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