mirror of
https://github.com/gkd-kit/gkd.git
synced 2024-11-16 03:32:38 +08:00
chore(selector): check_escape
This commit is contained in:
parent
5e0ea085e5
commit
966fecef9c
|
@ -112,4 +112,13 @@ class ParserTest {
|
|||
val selector = Selector.parse("a[a=''] ")
|
||||
println("check_quote:$selector")
|
||||
}
|
||||
|
||||
@Test
|
||||
fun check_escape() {
|
||||
val source =
|
||||
"[a='\\\"'][a=\"'\"][a=`\\x20\\n\\uD83D\\uDE04`][a=`\\x20`][a=\"`\u0020\"][a=`\\t\\n\\r\\b\\x00\\x09\\x1d`]"
|
||||
println("source:$source")
|
||||
val selector = Selector.parse(source)
|
||||
println("check_quote:$selector")
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user