File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 7b96f13d7d046a5f625af73765515715a270757e
2
+ refs/heads/master: 64883242ebece291170d86483cb1b3656ddc3d23
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: a6d3e57dca68fde4effdda3e4ae2887aa535fcd6
5
5
refs/heads/try: b160761e35efcd1207112b3b782c06633cf441a8
Original file line number Diff line number Diff line change @@ -498,6 +498,15 @@ mod tests {
498
498
assert_eq ! ( '`' . to_ascii( ) . to_upper( ) . to_char( ) , '`' ) ;
499
499
assert_eq ! ( '{' . to_ascii( ) . to_upper( ) . to_char( ) , '{' ) ;
500
500
501
+ assert ! ( '0' . to_ascii( ) . is_digit( ) ) ;
502
+ assert ! ( '9' . to_ascii( ) . is_digit( ) ) ;
503
+ assert ! ( !'/' . to_ascii( ) . is_digit( ) ) ;
504
+ assert ! ( !':' . to_ascii( ) . is_digit( ) ) ;
505
+
506
+ assert ! ( ( 0x1fu8 ) . to_ascii( ) . is_control( ) ) ;
507
+ assert ! ( !' ' . to_ascii( ) . is_control( ) ) ;
508
+ assert ! ( ( 0x7fu8 ) . to_ascii( ) . is_control( ) ) ;
509
+
501
510
assert ! ( "banana" . chars( ) . all( |c| c. is_ascii( ) ) ) ;
502
511
assert ! ( !"ประเทศไทย中华Việt Nam" . chars( ) . all( |c| c. is_ascii( ) ) ) ;
503
512
}
You can’t perform that action at this time.
0 commit comments