|
4 | 4 | class AcronymTest < Minitest::Test |
5 | 5 | def test_basic |
6 | 6 | # skip |
7 | | - assert_equal "PNG", Acronym.abbreviate("Portable Network Graphics") |
| 7 | + assert_equal 'PNG', Acronym.abbreviate('Portable Network Graphics') |
8 | 8 | end |
9 | 9 |
|
10 | 10 | def test_lowercase_words |
11 | 11 | skip |
12 | | - assert_equal "ROR", Acronym.abbreviate("Ruby on Rails") |
| 12 | + assert_equal 'ROR', Acronym.abbreviate('Ruby on Rails') |
13 | 13 | end |
14 | 14 |
|
15 | 15 | def test_punctuation |
16 | 16 | skip |
17 | | - assert_equal "FIFO", Acronym.abbreviate("First In, First Out") |
| 17 | + assert_equal 'FIFO', Acronym.abbreviate('First In, First Out') |
18 | 18 | end |
19 | 19 |
|
20 | 20 | def test_all_caps_word |
21 | 21 | skip |
22 | | - assert_equal "GIMP", Acronym.abbreviate("GNU Image Manipulation Program") |
| 22 | + assert_equal 'GIMP', Acronym.abbreviate('GNU Image Manipulation Program') |
23 | 23 | end |
24 | 24 |
|
25 | 25 | def test_punctuation_without_whitespace |
26 | 26 | skip |
27 | | - assert_equal "CMOS", Acronym.abbreviate("Complementary metal-oxide semiconductor") |
| 27 | + assert_equal 'CMOS', Acronym.abbreviate('Complementary metal-oxide semiconductor') |
28 | 28 | end |
29 | 29 |
|
30 | 30 | def test_very_long_abbreviation |
31 | 31 | skip |
32 | | - assert_equal "ROTFLSHTMDCOALM", Acronym.abbreviate("Rolling On The Floor Laughing So Hard That My Dogs Came Over And Licked Me") |
| 32 | + assert_equal 'ROTFLSHTMDCOALM', Acronym.abbreviate('Rolling On The Floor Laughing So Hard That My Dogs Came Over And Licked Me') |
33 | 33 | end |
34 | 34 |
|
35 | 35 | def test_consecutive_delimiters |
36 | 36 | skip |
37 | | - assert_equal "SIMUFTA", Acronym.abbreviate("Something - I made up from thin air") |
| 37 | + assert_equal 'SIMUFTA', Acronym.abbreviate('Something - I made up from thin air') |
38 | 38 | end |
39 | 39 |
|
40 | 40 | def test_apostrophes |
41 | 41 | skip |
42 | | - assert_equal "HC", Acronym.abbreviate("Halley's Comet") |
| 42 | + assert_equal 'HC', Acronym.abbreviate('Halley\'s Comet') |
43 | 43 | end |
44 | 44 |
|
45 | 45 | def test_underscore_emphasis |
46 | 46 | skip |
47 | | - assert_equal "TRNT", Acronym.abbreviate("The Road _Not_ Taken") |
| 47 | + assert_equal 'TRNT', Acronym.abbreviate('The Road _Not_ Taken') |
48 | 48 | end |
49 | 49 | end |
0 commit comments