mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
dont use is_numeric to check for digits
Signed-off-by: Hanif Bin Ariffin <hanif.ariffin.43262@gmail.com>
This commit is contained in:
parent
ee721ebf4e
commit
3586465917
3 changed files with 11 additions and 1 deletions
|
@ -36,6 +36,12 @@ fn test_group_num() {
|
|||
assert_eq!("", group_num(""));
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[should_panic]
|
||||
fn test_group_num_panic_if_invalid_numeric_characters() {
|
||||
group_num("³³³³³");
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod test_generate_tokens {
|
||||
use super::*;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue