diff options
| author | David Corbett <corbett.dav@husky.neu.edu> | 2018-06-17 12:58:01 -0400 |
|---|---|---|
| committer | David Corbett <corbett.dav@husky.neu.edu> | 2018-06-17 13:47:47 -0400 |
| commit | 5150ff0c729b5af88da8f45f15bef1b95ba70c08 (patch) | |
| tree | bc74fce32b5b28fa801b96ef106bba2c876e5f7e /src/libcore/tests | |
| parent | 499583aa92203845353c45001e56d0dbe281e270 (diff) | |
| download | rust-5150ff0c729b5af88da8f45f15bef1b95ba70c08.tar.gz rust-5150ff0c729b5af88da8f45f15bef1b95ba70c08.zip | |
Treat gc=No characters as numeric
Diffstat (limited to 'src/libcore/tests')
| -rw-r--r-- | src/libcore/tests/char.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcore/tests/char.rs b/src/libcore/tests/char.rs index d2a9ed75be6..963178c8fc4 100644 --- a/src/libcore/tests/char.rs +++ b/src/libcore/tests/char.rs @@ -148,9 +148,10 @@ fn test_is_control() { } #[test] -fn test_is_digit() { +fn test_is_numeric() { assert!('2'.is_numeric()); assert!('7'.is_numeric()); + assert!('¾'.is_numeric()); assert!(!'c'.is_numeric()); assert!(!'i'.is_numeric()); assert!(!'z'.is_numeric()); |
