We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For string b\ar should match pattern b\\ar other than b\\*ar (more specific pattern)? Or, matches to pattern with max. index on multiple matches?
b\ar
b\\ar
b\\*ar
patterns := []struct { s string i interface{} }{ {"*", 0}, {`b\ar`, 8}, {`b\\ar`, 9}, {`b\\*ar`, 10}, {`b\\\*ar`, 11}, {`b\\\\*ar`, 12}, } data := []struct { s string v interface{} }{ {`bar`, 8}, {`b\ar`, 9}, {`b\*ar`, 11}, {`b\**ar`, 10}, {`b\\*ar`, 12}, }
$ go test ./... --- FAIL: TestPattern (0.00s) all_test.go:43: Error Trace: all_test.go:43 Error: Not equal: expected: 9 actual : 10 Test: TestPattern FAIL FAIL github.com/fanyang01/radix 0.055s FAIL
The text was updated successfully, but these errors were encountered:
No branches or pull requests
For string
b\ar
should match patternb\\ar
other thanb\\*ar
(more specific pattern)?Or, matches to pattern with max. index on multiple matches?
The text was updated successfully, but these errors were encountered: