(t *testing.T)
| 63 | } |
| 64 | |
| 65 | func Test_func_ends_with(t *testing.T) { |
| 66 | test_xpath_eval(t, empty_example, `ends-with("tattoo", "tattoo")`, true) |
| 67 | test_xpath_eval(t, empty_example, `ends-with("tattoo", "atto")`, false) |
| 68 | test_xpath_elements(t, book_example, `//book[ends-with(@category,'ing')]`, 3) |
| 69 | test_xpath_elements(t, book_example, `//book[ends-with(./price,'.99')]`, 9, 15) |
| 70 | assertPanic(t, func() { selectNode(html_example, `//*[ends-with(0, 0)]`) }) // arg must be start with string |
| 71 | assertPanic(t, func() { selectNode(html_example, `//*[ends-with(name(), 0)]`) }) |
| 72 | } |
| 73 | |
| 74 | func Test_func_last(t *testing.T) { |
| 75 | test_xpath_elements(t, book_example, `//bookstore[last()]`, 2) |
nothing calls this directly
no test coverage detected
searching dependent graphs…