blib/lib/Lingua/EN/Number/IsOrdinal.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 10 | 10 | 100.0 |
line | true | false | branch |
---|---|---|---|
77 | 1 | 18 | unless $self->_is_number($num) |
79 | 3 | 15 | if ($num =~ /$ORDINAL_NUMBER_RE/) { } |
7 | 8 | elsif ($num =~ /$CARDINAL_NUMBER_RE/) { } | |
4 | 4 | elsif ($num =~ /$ORDINAL_WORDS_NUMBER_RE/) { } | |
107 | 10 | 1 | if (@nums == 1 and $nums[0] eq $text or $text =~ /$ORDINAL_NUMBER_RE/ or $text =~ /$CARDINAL_NUMBER_RE/) |