(t *testing.T)
| 40 | } |
| 41 | |
| 42 | func Test_func_concat(t *testing.T) { |
| 43 | test_xpath_eval(t, empty_example, `concat("1", "2", "3")`, "123") |
| 44 | //test_xpath_eval(t, empty_example, `concat("Ciao!", ())`, "Ciao!") |
| 45 | test_xpath_eval(t, book_example, `concat(//book[1]/title, ", ", //book[1]/year)`, "Everyday Italian, 2005") |
| 46 | result := concatFunc(testQuery("a"), testQuery("b"))(nil, nil).(string) |
| 47 | assertEqual(t, result, "ab") |
| 48 | } |
| 49 | |
| 50 | func Test_func_contains(t *testing.T) { |
| 51 | test_xpath_eval(t, empty_example, `contains("tattoo", "t")`, true) |
nothing calls this directly
no test coverage detected
searching dependent graphs…