Skip to content

Commit

Permalink
Test u8::is_ascii alongside char::is_ascii
Browse files Browse the repository at this point in the history
  • Loading branch information
ecstatic-morse committed Feb 9, 2020
1 parent f6d4720 commit bf732a1
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit bf732a1

Please sign in to comment.