lnav/test/test_sql_xml_func.sh
Timothy Stack a27198e8ca [regex101] add an integration with regex101
... and a pile of other changes
2022-04-30 13:06:01 -07:00

12 lines
423 B
Bash

#! /bin/bash
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 &gt;</def></abc>')"