You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use xmlquery find func, use string comparison size exist error, i think cmpStringStringF have bug。
example:
test data: ab
find expr: /res/value[data > "a"]
expected: b
output: a
`// operator.go
func cmpNodeSetString(t iterator, op string, m, n interface{}) bool {
a := m.(query)
b := n.(string)
for {
node := a.Select(t)
if node == nil {
break
}
// this is errror
if cmpStringStringF(op, b, node.Value()) {
return true
}
// this is should
//if cmpStringStringF(op, node.Value(),b) {
// return true
//}
}
return false
}`
The text was updated successfully, but these errors were encountered:
use xmlquery find func, use string comparison size exist error, i think cmpStringStringF have bug。
example:
test data: ab
find expr: /res/value[data > "a"]
expected: b
output: a
`// operator.go
func cmpNodeSetString(t iterator, op string, m, n interface{}) bool {
}`
The text was updated successfully, but these errors were encountered: