(t *testing.T)
| 222 | } |
| 223 | |
| 224 | func Test_func_reverse(t *testing.T) { |
| 225 | //test_xpath_eval(t, employee_example, `reverse(("hello"))`, "hello") // Not passed |
| 226 | test_xpath_elements(t, employee_example, `reverse(//employee)`, 13, 8, 3) |
| 227 | test_xpath_elements(t, employee_example, `//employee[reverse(.) = reverse(.)]`, 3, 8, 13) |
| 228 | assertPanic(t, func() { selectNode(html_example, "reverse(concat())") }) // invalid node-sets argument. |
| 229 | assertPanic(t, func() { selectNode(html_example, "reverse()") }) // missing node-sets argument. |
| 230 | } |
| 231 | |
| 232 | func Test_func_round(t *testing.T) { |
| 233 | test_xpath_eval(t, employee_example, `round(2.5)`, 3) // int |
nothing calls this directly
no test coverage detected
searching dependent graphs…