File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 55use rstest:: rstest;
66
77use uucore:: display:: Quotable ;
8- // spell-checker:ignore dont SIGBUS SIGSEGV sigsegv sigbus
8+ // spell-checker:ignore dont SIGBUS SIGSEGV sigsegv sigbus infd
99use uutests:: new_ucmd;
1010use uutests:: util:: TestScenario ;
1111use uutests:: util_name;
@@ -294,6 +294,8 @@ fn test_negative_interval() {
294294#[ case:: frac_suffix( "0x0.001h" ) ]
295295#[ case:: scientific( "0x1.0p-3" ) ]
296296#[ case:: scientific_suffix( "0x1.0p-4s" ) ]
297+ #[ case:: inf( "infd" ) ]
298+ #[ case:: inf( "iNfd" ) ]
297299fn test_valid_hex_duration ( #[ case] input : & str ) {
298300 new_ucmd ! ( ) . args ( & [ "--" , input] ) . succeeds ( ) . no_output ( ) ;
299301}
@@ -302,6 +304,9 @@ fn test_valid_hex_duration(#[case] input: &str) {
302304#[ case:: negative( "-0x1" ) ]
303305#[ case:: negative_suffix( "-0x1s" ) ]
304306#[ case:: negative_frac_suffix( "-0x0.1s" ) ]
307+ #[ case:: wrong_capitalization( "infD" ) ]
308+ #[ case:: wrong_capitalization( "INFD" ) ]
309+ #[ case:: wrong_capitalization( "iNfD" ) ]
305310fn test_invalid_hex_duration ( #[ case] input : & str ) {
306311 new_ucmd ! ( )
307312 . args ( & [ "--" , input] )
You can’t perform that action at this time.
0 commit comments