2929use const Typhoon \Type \nonEmptyStringT ;
3030use const Typhoon \Type \nonNegativeIntT ;
3131use const Typhoon \Type \nonPositiveIntT ;
32+ use const Typhoon \Type \nonZeroIntT ;
3233use const Typhoon \Type \nullT ;
34+ use const Typhoon \Type \numericStringT ;
35+ use const Typhoon \Type \numericT ;
3336use const Typhoon \Type \positiveIntT ;
3437use const Typhoon \Type \resourceT ;
3538use const Typhoon \Type \scalarT ;
@@ -60,7 +63,7 @@ private static function cases(): \Generator
6063 yield 'negative-int ' => negativeIntT;
6164 yield 'non-positive-int ' => nonPositiveIntT;
6265 yield 'non-negative-int ' => nonNegativeIntT;
63- yield 'non-zero-int ' => orT (negativeIntT, positiveIntT) ;
66+ yield 'non-zero-int ' => nonZeroIntT ;
6467 yield 'int<0, 1> ' => intRangeT (0 , 1 );
6568 yield 'int<-10, -23> ' => intRangeT (-10 , -23 );
6669 yield 'int<min, 123> ' => intRangeT (max: 123 );
@@ -80,10 +83,12 @@ private static function cases(): \Generator
8083 yield '"str" ' => stringT ('str ' );
8184 yield "'str' " => stringT ('str ' );
8285 yield "' \\n' " => stringT ('\n ' );
83- yield 'string ' => stringT;
8486 yield 'non-empty-string ' => nonEmptyStringT;
87+ yield 'numeric-string ' => numericStringT;
88+ yield 'string ' => stringT;
8589 yield 'resource ' => resourceT;
8690 yield 'array-key ' => arrayKeyT;
91+ yield 'numeric ' => numericT;
8792 yield 'scalar ' => scalarT;
8893 yield 'int|string ' => orT (intT, stringT);
8994 yield '(int|string)|float ' => orT (orT (intT, stringT), floatT);
0 commit comments