File tree Expand file tree Collapse file tree 2 files changed +46
-1
lines changed Expand file tree Collapse file tree 2 files changed +46
-1
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
25
25
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26
26
refs/heads/beta: c8bab9d06a179028a0d5129aa62f09d694d9cc49
27
27
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
28
- refs/heads/tmp: 2d34a531f4ef53f19b8cd512c121dd868328b649
28
+ refs/heads/tmp: 304f5452749b139f518baf6fa6160b66af654223
29
29
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
30
30
refs/tags/homu-tmp: 1b28ffa5216c845d1cef6b0cb3e5ac7db12025d0
31
31
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
Original file line number Diff line number Diff line change @@ -537,6 +537,51 @@ mod tests {
537
537
}
538
538
}
539
539
540
+ #[ test]
541
+ fn test_make_ascii_lower_case ( ) {
542
+ macro_rules! test {
543
+ ( $from: expr, $to: expr) => {
544
+ {
545
+ let mut x = $from;
546
+ x. make_ascii_lowercase( ) ;
547
+ assert_eq!( x, $to) ;
548
+ }
549
+ }
550
+ }
551
+ test ! ( b'A' , b'a' ) ;
552
+ test ! ( b'a' , b'a' ) ;
553
+ test ! ( b'!' , b'!' ) ;
554
+ test ! ( 'A' , 'a' ) ;
555
+ test ! ( 'À' , 'À' ) ;
556
+ test ! ( 'a' , 'a' ) ;
557
+ test ! ( '!' , '!' ) ;
558
+ test ! ( b"H\xc3 \x89 " . to_vec( ) , b"h\xc3 \x89 " ) ;
559
+ test ! ( "HİKß" . to_string( ) , "hİKß" ) ;
560
+ }
561
+
562
+
563
+ #[ test]
564
+ fn test_make_ascii_upper_case ( ) {
565
+ macro_rules! test {
566
+ ( $from: expr, $to: expr) => {
567
+ {
568
+ let mut x = $from;
569
+ x. make_ascii_uppercase( ) ;
570
+ assert_eq!( x, $to) ;
571
+ }
572
+ }
573
+ }
574
+ test ! ( b'a' , b'A' ) ;
575
+ test ! ( b'A' , b'A' ) ;
576
+ test ! ( b'!' , b'!' ) ;
577
+ test ! ( 'a' , 'A' ) ;
578
+ test ! ( 'à' , 'à' ) ;
579
+ test ! ( 'A' , 'A' ) ;
580
+ test ! ( '!' , '!' ) ;
581
+ test ! ( b"h\xc3 \xa9 " . to_vec( ) , b"H\xc3 \xa9 " ) ;
582
+ test ! ( "hıKß" . to_string( ) , "HıKß" ) ;
583
+ }
584
+
540
585
#[ test]
541
586
fn test_eq_ignore_ascii_case ( ) {
542
587
assert ! ( "url()URL()uRl()Ürl" . eq_ignore_ascii_case( "url()url()url()Ürl" ) ) ;
You can’t perform that action at this time.
0 commit comments