From bf732a11ecc319e0c0a840196bde1b5daccbdc85 Mon Sep 17 00:00:00 2001 From: Dylan MacKenzie Date: Sat, 8 Feb 2020 21:36:56 -0800 Subject: [PATCH] Test `u8::is_ascii` alongside `char::is_ascii` --- src/test/ui/consts/{std/char.rs => is_ascii.rs} | 6 ++++++ 1 file changed, 6 insertions(+) rename src/test/ui/consts/{std/char.rs => is_ascii.rs} (54%) diff --git a/src/test/ui/consts/std/char.rs b/src/test/ui/consts/is_ascii.rs similarity index 54% rename from src/test/ui/consts/std/char.rs rename to src/test/ui/consts/is_ascii.rs index fe79059a2e497..d8424549f93e6 100644 --- a/src/test/ui/consts/std/char.rs +++ b/src/test/ui/consts/is_ascii.rs @@ -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); }