Test u8::is_ascii alongside char::is_ascii
This commit is contained in:
parent
f6d4720f26
commit
bf732a11ec
1 changed files with 6 additions and 0 deletions
|
|
@ -3,7 +3,13 @@
|
|||
static X: bool = 'a'.is_ascii();
|
||||
static Y: bool = 'ä'.is_ascii();
|
||||
|
||||
static BX: bool = b'a'.is_ascii();
|
||||
static BY: bool = 192u8.is_ascii();
|
||||
|
||||
fn main() {
|
||||
assert!(X);
|
||||
assert!(!Y);
|
||||
|
||||
assert!(BX);
|
||||
assert!(!BY);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue