mirror of
https://gitee.com/openharmony/third_party_rust_unicode-ident
synced 2024-11-23 07:29:52 +00:00
Pull in unicode 15.0.0 support in unicode-xid for test
This commit is contained in:
parent
2580817601
commit
046ec50bf6
@ -17,7 +17,7 @@ fst = "0.4"
|
|||||||
rand = { version = "0.8", features = ["small_rng"] }
|
rand = { version = "0.8", features = ["small_rng"] }
|
||||||
roaring = "0.10"
|
roaring = "0.10"
|
||||||
ucd-trie = { version = "0.1", default-features = false }
|
ucd-trie = { version = "0.1", default-features = false }
|
||||||
unicode-xid = "0.2"
|
unicode-xid = "0.2.4"
|
||||||
|
|
||||||
[[bench]]
|
[[bench]]
|
||||||
name = "xid"
|
name = "xid"
|
||||||
|
@ -14,8 +14,6 @@ fn compare_all_implementations() {
|
|||||||
let thought_to_be_continue = unicode_ident::is_xid_continue(ch);
|
let thought_to_be_continue = unicode_ident::is_xid_continue(ch);
|
||||||
|
|
||||||
// unicode-xid
|
// unicode-xid
|
||||||
// FIXME: unicode-xid does not support Unicode 15.0.0 yet.
|
|
||||||
/*
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
thought_to_be_start,
|
thought_to_be_start,
|
||||||
unicode_xid::UnicodeXID::is_xid_start(ch),
|
unicode_xid::UnicodeXID::is_xid_start(ch),
|
||||||
@ -26,7 +24,6 @@ fn compare_all_implementations() {
|
|||||||
unicode_xid::UnicodeXID::is_xid_continue(ch),
|
unicode_xid::UnicodeXID::is_xid_continue(ch),
|
||||||
"{ch:?}",
|
"{ch:?}",
|
||||||
);
|
);
|
||||||
*/
|
|
||||||
|
|
||||||
// ucd-trie
|
// ucd-trie
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
|
Loading…
Reference in New Issue
Block a user