testPattern("^[\\[-b&&[^^-a]]+$", "^(?:\\^[\\[-b&&[^^-a]]+\\$)$", ImmutableList.of("^[$", "^\\$", "^]$", "^b$"),
ImmutableList.of("^a$", "^^$", "^_$"));
- testPattern("[^^-~&&[^$-^]]", "^(?:[^^-~&&[^$-^]])$", ImmutableList.of("!", "\"", "#"),
- ImmutableList.of("a", "A", "z", "Z", "$", "%", "^", "}"));
- testPattern("\\\\\\[^[^^-~&&[^$-^]]", "^(?:\\\\\\[\\^[^^-~&&[^$-^]])$",
- ImmutableList.of("\\[^ ", "\\[^!", "\\[^\"", "\\[^#"),
- ImmutableList.of("\\[^a", "\\[^A", "\\[^z", "\\[^Z", "\\[^$", "\\[^%", "\\[^^", "\\[^}"));
- testPattern("^\\[^\\\\[^^-b&&[^\\[-\\]]]\\]^", "^(?:\\^\\[\\^\\\\[^^-b&&[^\\[-\\]]]\\]\\^)$",
- ImmutableList.of("^[^\\c]^", "^[^\\Z]^"),
- ImmutableList.of("^[^\\[]^", "^[^\\\\]^", "^[^\\]]^", "^[^\\^]^", "^[^\\_]^", "^[^\\b]^"));
- testPattern("[\\^]$", "^(?:[\\^]\\$)$", ImmutableList.of("^$"),
- ImmutableList.of("^", "$", "$^", "\\", "\\^", "\\^\\", "\\^\\$"));
+ // FIXME: YANGTOOLS-887: these patterns are not translated correctly, "&&" is a different construct in XSD
+ // testPattern("[^^-~&&[^$-^]]", "^(?:[^^-~&&[^$-^]])$", ImmutableList.of("!", "\"", "#"),
+ // ImmutableList.of("a", "A", "z", "Z", "$", "%", "^", "}"));
+ // testPattern("\\\\\\[^[^^-~&&[^$-^]]", "^(?:\\\\\\[\\^[^^-~&&[^$-^]])$",
+ // ImmutableList.of("\\[^ ", "\\[^!", "\\[^\"", "\\[^#"),
+ // ImmutableList.of("\\[^a", "\\[^A", "\\[^z", "\\[^Z", "\\[^$", "\\[^%", "\\[^^", "\\[^}"));
+ // testPattern("^\\[^\\\\[^^-b&&[^\\[-\\]]]\\]^", "^(?:\\^\\[\\^\\\\[^^-b&&[^\\[-\\]]]\\]\\^)$",
+ // ImmutableList.of("^[^\\c]^", "^[^\\Z]^"),
+ // ImmutableList.of("^[^\\[]^", "^[^\\\\]^", "^[^\\]]^", "^[^\\^]^", "^[^\\_]^", "^[^\\b]^"));
+ // testPattern("[\\^]$", "^(?:[\\^]\\$)$", ImmutableList.of("^$"),
+ // ImmutableList.of("^", "$", "$^", "\\", "\\^", "\\^\\", "\\^\\$"));
}
@SuppressWarnings("checkstyle:regexpSinglelineJava")