| 1 |
#!perl |
| 2 |
use strict; |
| 3 |
use warnings; |
| 4 |
use Test::More; |
| 5 |
use Test::NoWarnings (); |
| 6 |
use lib 't/lib'; |
| 7 |
use TestPhrase 'test_phrase'; |
| 8 |
|
| 9 |
# noun conjunction noun |
| 10 |
test_phrase 'green egg and ham', 'green eggs and ham'; |
| 11 |
|
| 12 |
# noun preposition |
| 13 |
test_phrase 'email from', 'emails from'; |
| 14 |
test_phrase 'email to', 'emails to'; |
| 15 |
|
| 16 |
# noun preposition noun |
| 17 |
test_phrase 'mother in law', 'mothers in law'; |
| 18 |
test_phrase 'prisoner of war', 'prisoners of war'; |
| 19 |
|
| 20 |
# noun noun |
| 21 |
test_phrase 'book binding', 'book bindings'; |
| 22 |
test_phrase 'cable tie', 'cable ties'; |
| 23 |
|
| 24 |
# noun x2 |
| 25 |
test_phrase 'book book', 'book books'; |
| 26 |
|
| 27 |
# noun verb |
| 28 |
test_phrase 'station visited', 'stations visited'; |
| 29 |
|
| 30 |
# adjective noun that's the same singular and plural |
| 31 |
test_phrase 'swedish fish', 'swedish fish'; |
| 32 |
|
| 33 |
# fallback |
| 34 |
test_phrase 'green', 'greens'; |
| 35 |
|
| 36 |
# RT#118767 |
| 37 |
test_phrase 'functionality', 'functionalities'; |
| 38 |
test_phrase 'Functionality', 'Functionalities'; |
| 39 |
|
| 40 |
Test::NoWarnings::had_no_warnings; |
| 41 |
|
| 42 |
done_testing; |
| 43 |
|
| 44 |
# vim:et sts=2 sw=2 tw=0: |