linguistics 2.0.3 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.simplecov +3 -6
- data/ChangeLog +63 -1
- data/History.rdoc +5 -0
- data/Rakefile +29 -20
- data/lib/linguistics.rb +2 -2
- data/lib/linguistics/en/conjugation.rb +5 -3
- data/lib/linguistics/en/linkparser.rb +1 -1
- data/lib/linguistics/en/pluralization.rb +105 -107
- data/lib/linguistics/languagebehavior.rb +1 -1
- data/spec/helpers.rb +0 -1
- data/spec/linguistics/en/articles_spec.rb +6 -4
- data/spec/linguistics/en/conjugation_spec.rb +27 -47
- data/spec/linguistics/en/titlecase_spec.rb +242 -315
- data/spec/linguistics/en/wordnet_spec.rb +1 -1
- data/spec/linguistics/en_spec.rb +1 -1
- data/spec/linguistics/iso639_spec.rb +6 -6
- metadata +67 -69
- metadata.gz.sig +0 -0
@@ -28,7 +28,7 @@ shared_examples_for "a Linguistics language module" do
|
|
28
28
|
|
29
29
|
|
30
30
|
it "registers itself with the Linguistics module when required" do
|
31
|
-
Linguistics.languages.values.
|
31
|
+
expect( Linguistics.languages.values ).to include( language_module )
|
32
32
|
end
|
33
33
|
|
34
34
|
end
|
data/spec/helpers.rb
CHANGED
@@ -20,7 +20,6 @@ end # module Linguistics::SpecHelpers
|
|
20
20
|
RSpec.configure do |config|
|
21
21
|
include Linguistics::TestConstants
|
22
22
|
|
23
|
-
config.treat_symbols_as_metadata_keys_with_true_values = true
|
24
23
|
config.run_all_when_everything_filtered = true
|
25
24
|
config.filter_run :focus
|
26
25
|
config.order = 'random'
|
@@ -814,13 +814,15 @@ describe Linguistics::EN::Articles do
|
|
814
814
|
end
|
815
815
|
|
816
816
|
it "adds an indefinite article to the argument to %A" do
|
817
|
-
|
818
|
-
|
817
|
+
expect(
|
818
|
+
"You pick up %A.".en.lprintf( "umbrella" )
|
819
|
+
).to eq( "You pick up an umbrella." )
|
819
820
|
end
|
820
821
|
|
821
822
|
it "adds an indefinite article to the argument to %AN" do
|
822
|
-
|
823
|
-
|
823
|
+
expect(
|
824
|
+
"You pick up %AN.".en.lprintf( "chocolate bar" )
|
825
|
+
).to eq( "You pick up a chocolate bar." )
|
824
826
|
end
|
825
827
|
|
826
828
|
end
|
@@ -76,13 +76,11 @@ describe Linguistics::EN::Conjugation do
|
|
76
76
|
end
|
77
77
|
|
78
78
|
it "conjugates 'be' in first person singular as 'was'" do
|
79
|
-
|
80
|
-
expect( "be".en.past_tense( :first_person ) ).to eq( 'was' )
|
81
|
-
end
|
79
|
+
expect( "be".en.past_tense(:first_person_singular) ).to eq( 'was' )
|
82
80
|
end
|
83
81
|
|
84
|
-
it "conjugates 'be' in third person singular as '
|
85
|
-
expect( "be".en.past_tense(
|
82
|
+
it "conjugates 'be' in third person singular as 'was'" do
|
83
|
+
expect( "be".en.past_tense(:third_person_singular) ).to eq( 'was' )
|
86
84
|
end
|
87
85
|
|
88
86
|
it "conjugates 'bear' as 'bore'" do
|
@@ -129,22 +127,16 @@ describe Linguistics::EN::Conjugation do
|
|
129
127
|
expect( "bethink".en.past_tense ).to eq( 'bethought' )
|
130
128
|
end
|
131
129
|
|
132
|
-
it "conjugates 'bid' as '
|
133
|
-
|
134
|
-
expect( "bid".en.past_tense ).to eq( 'bade' )
|
135
|
-
end
|
130
|
+
it "conjugates 'bid' as 'bid'" do
|
131
|
+
expect( "bid".en.past_tense ).to eq( 'bid' )
|
136
132
|
end
|
137
133
|
|
138
|
-
it "conjugates 'bid' in first person as '
|
139
|
-
|
140
|
-
expect( "bid".en.past_tense( :first_person ) ).to eq( 'bade' )
|
141
|
-
end
|
134
|
+
it "conjugates 'bid' in first person as 'bid'" do
|
135
|
+
expect( "bid".en.past_tense( :first_person ) ).to eq( 'bid' )
|
142
136
|
end
|
143
137
|
|
144
|
-
it "conjugates 'bid' in third person as '
|
145
|
-
|
146
|
-
expect( "bid".en.past_tense( :third_person ) ).to eq( 'bade' )
|
147
|
-
end
|
138
|
+
it "conjugates 'bid' in third person as 'bid'" do
|
139
|
+
expect( "bid".en.past_tense( :third_person ) ).to eq( 'bid' )
|
148
140
|
end
|
149
141
|
|
150
142
|
it "conjugates 'bind' as 'bound'" do
|
@@ -476,21 +468,18 @@ describe Linguistics::EN::Conjugation do
|
|
476
468
|
end
|
477
469
|
|
478
470
|
it "conjugates 'hang' as 'hung'" do
|
479
|
-
pending "
|
480
|
-
|
481
|
-
end
|
471
|
+
pending "handling for homographs"
|
472
|
+
expect( "hang".en.past_tense ).to eq( 'hung' )
|
482
473
|
end
|
483
474
|
|
484
475
|
it "conjugates 'hang' in first person as 'hung'" do
|
485
|
-
pending "
|
486
|
-
|
487
|
-
end
|
476
|
+
pending "handling for homographs"
|
477
|
+
expect( "hang".en.past_tense( :first_person ) ).to eq( 'hung' )
|
488
478
|
end
|
489
479
|
|
490
480
|
it "conjugates 'hang' in third person as 'hung'" do
|
491
|
-
pending "
|
492
|
-
|
493
|
-
end
|
481
|
+
pending "handling for homographs"
|
482
|
+
expect( "hang".en.past_tense( :third_person ) ).to eq( 'hung' )
|
494
483
|
end
|
495
484
|
|
496
485
|
it "conjugates 'have' as 'had'" do
|
@@ -630,21 +619,18 @@ describe Linguistics::EN::Conjugation do
|
|
630
619
|
end
|
631
620
|
|
632
621
|
it "conjugates 'lie' as 'lay'" do
|
633
|
-
pending "
|
634
|
-
|
635
|
-
end
|
622
|
+
pending "handling for homographs"
|
623
|
+
expect( "lie".en.past_tense ).to eq( 'lay' )
|
636
624
|
end
|
637
625
|
|
638
626
|
it "conjugates 'lie' in first person as 'lay'" do
|
639
|
-
pending "
|
640
|
-
|
641
|
-
end
|
627
|
+
pending "handling for homographs"
|
628
|
+
expect( "lie".en.past_tense( :first_person ) ).to eq( 'lay' )
|
642
629
|
end
|
643
630
|
|
644
631
|
it "conjugates 'lie' in third person as 'lay'" do
|
645
|
-
pending "
|
646
|
-
|
647
|
-
end
|
632
|
+
pending "handling for homographs"
|
633
|
+
expect( "lie".en.past_tense( :third_person ) ).to eq( 'lay' )
|
648
634
|
end
|
649
635
|
|
650
636
|
it "conjugates 'light' as 'lit'" do
|
@@ -1991,22 +1977,16 @@ describe Linguistics::EN::Conjugation do
|
|
1991
1977
|
expect( "upset".en.past_tense ).to eq( 'upset' )
|
1992
1978
|
end
|
1993
1979
|
|
1994
|
-
it "conjugates 'use
|
1995
|
-
|
1996
|
-
expect( "use up".en.past_tense ).to eq( 'used up' )
|
1997
|
-
end
|
1980
|
+
it "conjugates 'use-up' as 'used-up'" do
|
1981
|
+
expect( "use-up".en.past_tense ).to eq( 'used-up' )
|
1998
1982
|
end
|
1999
1983
|
|
2000
|
-
it "conjugates 'use
|
2001
|
-
|
2002
|
-
expect( "use up".en.past_tense( :first_person ) ).to eq( 'used up' )
|
2003
|
-
end
|
1984
|
+
it "conjugates 'use-up' in first person as 'used-up'" do
|
1985
|
+
expect( "use-up".en.past_tense( :first_person ) ).to eq( 'used-up' )
|
2004
1986
|
end
|
2005
1987
|
|
2006
|
-
it "conjugates 'use
|
2007
|
-
|
2008
|
-
expect( "use up".en.past_tense( :third_person ) ).to eq( 'used up' )
|
2009
|
-
end
|
1988
|
+
it "conjugates 'use-up' in third person as 'used-up'" do
|
1989
|
+
expect( "use-up".en.past_tense( :third_person ) ).to eq( 'used-up' )
|
2010
1990
|
end
|
2011
1991
|
|
2012
1992
|
it "conjugates 'wake' as 'woke'" do
|
@@ -21,810 +21,737 @@ describe Linguistics::EN::TitleCase do
|
|
21
21
|
end
|
22
22
|
|
23
23
|
it "CamelCases 'motion is madness' correctly" do
|
24
|
-
"motion is madness".en.to_camel_case.
|
24
|
+
expect( "motion is madness".en.to_camel_case ).to eq( 'motionIsMadness' )
|
25
25
|
end
|
26
26
|
|
27
27
|
it "CamelCases 'Special Verb Case' correctly" do
|
28
|
-
"Special Verb Case".en.to_camel_case.
|
28
|
+
expect( "Special Verb Case".en.to_camel_case ).to eq( 'SpecialVerbCase' )
|
29
29
|
end
|
30
30
|
|
31
31
|
it "un-CamelCases 'motionIsMadness' correctly" do
|
32
|
-
"motionIsMadness".en.un_camel_case.
|
32
|
+
expect( "motionIsMadness".en.un_camel_case ).to eq( 'motion is madness' )
|
33
33
|
end
|
34
34
|
|
35
35
|
it "un-CamelCases 'ASpecialVerbCase' correctly" do
|
36
|
-
"ASpecialVerbCase".en.un_camel_case.
|
36
|
+
expect( "ASpecialVerbCase".en.un_camel_case ).to eq( 'a special verb case' )
|
37
37
|
end
|
38
38
|
|
39
39
|
it "titlecases _Absalom, Absalom!_ correctly" do
|
40
|
-
%{Absalom, Absalom!}.downcase.en.titlecase.
|
40
|
+
expect( %{Absalom, Absalom!}.downcase.en.titlecase ).to eq( %{Absalom, Absalom!} )
|
41
41
|
end
|
42
42
|
|
43
43
|
it "titlecases _After Many a Summer Dies the Swan_ correctly" do
|
44
|
-
|
45
|
-
|
44
|
+
expect(
|
45
|
+
%{After Many a Summer Dies the Swan}.downcase.en.titlecase
|
46
|
+
).to eq( %{After Many a Summer Dies the Swan} )
|
46
47
|
end
|
47
48
|
|
48
49
|
it "titlecases _Ah, Wilderness!_ correctly" do
|
49
|
-
%{Ah, Wilderness!}.downcase.en.titlecase.
|
50
|
+
expect( %{Ah, Wilderness!}.downcase.en.titlecase ).to eq( %{Ah, Wilderness!} )
|
50
51
|
end
|
51
52
|
|
52
53
|
it "titlecases _Alien Corn_ correctly" do
|
53
|
-
%{Alien Corn}.downcase.en.titlecase.
|
54
|
+
expect( %{Alien Corn}.downcase.en.titlecase ).to eq( %{Alien Corn} )
|
54
55
|
end
|
55
56
|
|
56
57
|
it "titlecases _The Alien Corn_ correctly" do
|
57
|
-
%{The Alien Corn}.downcase.en.titlecase.
|
58
|
-
should == %{The Alien Corn}
|
58
|
+
expect( %{The Alien Corn}.downcase.en.titlecase ).to eq( %{The Alien Corn} )
|
59
59
|
end
|
60
60
|
|
61
61
|
it "titlecases _All Passion Spent_ correctly" do
|
62
|
-
%{All Passion Spent}.downcase.en.titlecase.
|
62
|
+
expect( %{All Passion Spent}.downcase.en.titlecase ).to eq( %{All Passion Spent} )
|
63
63
|
end
|
64
64
|
|
65
65
|
it "titlecases _All the King's Men_ correctly" do
|
66
|
-
%{All the King's Men}.downcase.en.titlecase.
|
66
|
+
expect( %{All the King's Men}.downcase.en.titlecase ).to eq( %{All the King's Men} )
|
67
67
|
end
|
68
68
|
|
69
69
|
it "titlecases _Alone on a Wide, Wide Sea_ correctly" do
|
70
|
-
|
70
|
+
expect(
|
71
|
+
%{Alone on a Wide, Wide Sea}.downcase.en.titlecase
|
72
|
+
).to eq( %{Alone on a Wide, Wide Sea} )
|
71
73
|
end
|
72
74
|
|
73
75
|
it "titlecases _An Acceptable Time_ correctly" do
|
74
|
-
%{An Acceptable Time}.downcase.en.titlecase.
|
76
|
+
expect( %{An Acceptable Time}.downcase.en.titlecase ).to eq( %{An Acceptable Time} )
|
75
77
|
end
|
76
78
|
|
77
79
|
it "titlecases _Antic Hay_ correctly" do
|
78
|
-
%{Antic Hay}.downcase.en.titlecase.
|
80
|
+
expect( %{Antic Hay}.downcase.en.titlecase ).to eq( %{Antic Hay} )
|
79
81
|
end
|
80
82
|
|
81
83
|
it "titlecases _An Evil Cradling_ correctly" do
|
82
|
-
%{An Evil Cradling}.downcase.en.titlecase.
|
84
|
+
expect( %{An Evil Cradling}.downcase.en.titlecase ).to eq( %{An Evil Cradling} )
|
83
85
|
end
|
84
86
|
|
85
87
|
it "titlecases _Arms and the Man_ correctly" do
|
86
|
-
%{Arms and the Man}.downcase.en.titlecase.
|
87
|
-
should == %{Arms and the Man}
|
88
|
+
expect( %{Arms and the Man}.downcase.en.titlecase ).to eq( %{Arms and the Man} )
|
88
89
|
end
|
89
90
|
|
90
91
|
it "titlecases _As I Lay Dying_ correctly" do
|
91
|
-
%{As I Lay Dying}.downcase.en.titlecase.
|
92
|
-
should == %{As I Lay Dying}
|
92
|
+
expect( %{As I Lay Dying}.downcase.en.titlecase ).to eq( %{As I Lay Dying} )
|
93
93
|
end
|
94
94
|
|
95
95
|
it "titlecases _A Time to Kill_ correctly" do
|
96
|
-
%{A Time to Kill}.downcase.en.titlecase.
|
97
|
-
should == %{A Time to Kill}
|
96
|
+
expect( %{A Time to Kill}.downcase.en.titlecase ).to eq( %{A Time to Kill} )
|
98
97
|
end
|
99
98
|
|
100
99
|
it "titlecases _Behold the Man_ correctly" do
|
101
|
-
%{Behold the Man}.downcase.en.titlecase.
|
102
|
-
should == %{Behold the Man}
|
100
|
+
expect( %{Behold the Man}.downcase.en.titlecase ).to eq( %{Behold the Man} )
|
103
101
|
end
|
104
102
|
|
105
103
|
it "titlecases _Beneath the Bleeding_ correctly" do
|
106
|
-
%{Beneath the Bleeding}.downcase.en.titlecase.
|
107
|
-
should == %{Beneath the Bleeding}
|
104
|
+
expect( %{Beneath the Bleeding}.downcase.en.titlecase ).to eq( %{Beneath the Bleeding} )
|
108
105
|
end
|
109
106
|
|
110
107
|
it "titlecases _Beyond the Mexique Bay_ correctly" do
|
111
|
-
%{Beyond the Mexique Bay}.downcase.en.titlecase.
|
112
|
-
should == %{Beyond the Mexique Bay}
|
108
|
+
expect( %{Beyond the Mexique Bay}.downcase.en.titlecase ).to eq( %{Beyond the Mexique Bay} )
|
113
109
|
end
|
114
110
|
|
115
111
|
it "titlecases _Blithe Spirit_ correctly" do
|
116
|
-
%{Blithe Spirit}.downcase.en.titlecase.
|
117
|
-
should == %{Blithe Spirit}
|
112
|
+
expect( %{Blithe Spirit}.downcase.en.titlecase ).to eq( %{Blithe Spirit} )
|
118
113
|
end
|
119
114
|
|
120
115
|
it "titlecases _Blood's a Rover_ correctly" do
|
121
|
-
%{Blood's a Rover}.downcase.en.titlecase.
|
122
|
-
should == %{Blood's a Rover}
|
116
|
+
expect( %{Blood's a Rover}.downcase.en.titlecase ).to eq( %{Blood's a Rover} )
|
123
117
|
end
|
124
118
|
|
125
119
|
it "titlecases _Boats Against the Current_ correctly" do
|
126
|
-
|
127
|
-
|
120
|
+
expect(
|
121
|
+
%{Boats Against the Current}.downcase.en.titlecase
|
122
|
+
).to eq( %{Boats Against the Current} )
|
128
123
|
end
|
129
124
|
|
130
125
|
it "titlecases _Bonjour Tristesse_ correctly" do
|
131
|
-
%{Bonjour Tristesse}.downcase.en.titlecase.
|
132
|
-
should == %{Bonjour Tristesse}
|
126
|
+
expect( %{Bonjour Tristesse}.downcase.en.titlecase ).to eq( %{Bonjour Tristesse} )
|
133
127
|
end
|
134
128
|
|
135
129
|
it "titlecases _Brandy of the Damned_ correctly" do
|
136
|
-
%{Brandy of the Damned}.downcase.en.titlecase.
|
137
|
-
should == %{Brandy of the Damned}
|
130
|
+
expect( %{Brandy of the Damned}.downcase.en.titlecase ).to eq( %{Brandy of the Damned} )
|
138
131
|
end
|
139
132
|
|
140
133
|
it "titlecases _Bury My Heart at Wounded Knee_ correctly" do
|
141
|
-
|
142
|
-
|
134
|
+
expect(
|
135
|
+
%{Bury My Heart at Wounded Knee}.downcase.en.titlecase
|
136
|
+
).to eq( %{Bury My Heart at Wounded Knee} )
|
143
137
|
end
|
144
138
|
|
145
139
|
it "titlecases _Cabbages and Kings_ correctly" do
|
146
|
-
%{Cabbages and Kings}.downcase.en.titlecase.
|
147
|
-
should == %{Cabbages and Kings}
|
140
|
+
expect( %{Cabbages and Kings}.downcase.en.titlecase ).to eq( %{Cabbages and Kings} )
|
148
141
|
end
|
149
142
|
|
150
143
|
it "titlecases _Clouds of Witness_ correctly" do
|
151
|
-
%{Clouds of Witness}.downcase.en.titlecase.
|
152
|
-
should == %{Clouds of Witness}
|
144
|
+
expect( %{Clouds of Witness}.downcase.en.titlecase ).to eq( %{Clouds of Witness} )
|
153
145
|
end
|
154
146
|
|
155
147
|
it "titlecases _A Confederacy of Dunces_ correctly" do
|
156
|
-
|
157
|
-
|
148
|
+
expect(
|
149
|
+
%{A Confederacy of Dunces}.downcase.en.titlecase
|
150
|
+
).to eq( %{A Confederacy of Dunces} )
|
158
151
|
end
|
159
152
|
|
160
153
|
it "titlecases _Consider Phlebas_ correctly" do
|
161
|
-
%{Consider Phlebas}.downcase.en.titlecase.
|
162
|
-
should == %{Consider Phlebas}
|
154
|
+
expect( %{Consider Phlebas}.downcase.en.titlecase ).to eq( %{Consider Phlebas} )
|
163
155
|
end
|
164
156
|
|
165
157
|
it "titlecases _Consider the Lilies_ correctly" do
|
166
|
-
%{Consider the Lilies}.downcase.en.titlecase.
|
167
|
-
should == %{Consider the Lilies}
|
158
|
+
expect( %{Consider the Lilies}.downcase.en.titlecase ).to eq( %{Consider the Lilies} )
|
168
159
|
end
|
169
160
|
|
170
161
|
it "titlecases _Cover Her Face_ correctly" do
|
171
|
-
%{Cover Her Face}.downcase.en.titlecase.
|
172
|
-
should == %{Cover Her Face}
|
162
|
+
expect( %{Cover Her Face}.downcase.en.titlecase ).to eq( %{Cover Her Face} )
|
173
163
|
end
|
174
164
|
|
175
165
|
it "titlecases _The Cricket on the Hearth_ correctly" do
|
176
|
-
|
177
|
-
|
166
|
+
expect(
|
167
|
+
%{The Cricket on the Hearth}.downcase.en.titlecase
|
168
|
+
).to eq( %{The Cricket on the Hearth} )
|
178
169
|
end
|
179
170
|
|
180
171
|
it "titlecases _The Curious Incident of the Dog in the Night-Time_ correctly" do
|
181
|
-
|
182
|
-
|
172
|
+
expect(
|
173
|
+
%{The Curious Incident of the Dog in the Night-Time}.downcase.en.titlecase
|
174
|
+
).to eq( %{The Curious Incident of the Dog in the Night-Time} )
|
183
175
|
end
|
184
176
|
|
185
177
|
it "titlecases _The Daffodil Sky_ correctly" do
|
186
|
-
%{The Daffodil Sky}.downcase.en.titlecase.
|
187
|
-
should == %{The Daffodil Sky}
|
178
|
+
expect( %{The Daffodil Sky}.downcase.en.titlecase ).to eq( %{The Daffodil Sky} )
|
188
179
|
end
|
189
180
|
|
190
181
|
it "titlecases _A Darkling Plain_ correctly" do
|
191
|
-
%{A Darkling Plain}.downcase.en.titlecase.
|
192
|
-
should == %{A Darkling Plain}
|
182
|
+
expect( %{A Darkling Plain}.downcase.en.titlecase ).to eq( %{A Darkling Plain} )
|
193
183
|
end
|
194
184
|
|
195
185
|
it "titlecases _Death Be Not Proud_ correctly" do
|
196
|
-
%{Death Be Not Proud}.downcase.en.titlecase.
|
197
|
-
should == %{Death Be Not Proud}
|
186
|
+
expect( %{Death Be Not Proud}.downcase.en.titlecase ).to eq( %{Death Be Not Proud} )
|
198
187
|
end
|
199
188
|
|
200
189
|
it "titlecases _The Doors of Perception_ correctly" do
|
201
|
-
%{The Doors of Perception}.downcase.en.titlecase.
|
202
|
-
should == %{The Doors of Perception}
|
190
|
+
expect( %{The Doors of Perception}.downcase.en.titlecase ).to eq( %{The Doors of Perception} )
|
203
191
|
end
|
204
192
|
|
205
193
|
it "titlecases _Down to a Sunless Sea_ correctly" do
|
206
|
-
%{Down to a Sunless Sea}.downcase.en.titlecase.
|
207
|
-
should == %{Down to a Sunless Sea}
|
194
|
+
expect( %{Down to a Sunless Sea}.downcase.en.titlecase ).to eq( %{Down to a Sunless Sea} )
|
208
195
|
end
|
209
196
|
|
210
197
|
it "titlecases _Dying of the Light_ correctly" do
|
211
|
-
%{Dying of the Light}.downcase.en.titlecase.
|
212
|
-
should == %{Dying of the Light}
|
198
|
+
expect( %{Dying of the Light}.downcase.en.titlecase ).to eq( %{Dying of the Light} )
|
213
199
|
end
|
214
200
|
|
215
201
|
it "titlecases _East of Eden_ correctly" do
|
216
|
-
%{East of Eden}.downcase.en.titlecase.
|
217
|
-
should == %{East of Eden}
|
202
|
+
expect( %{East of Eden}.downcase.en.titlecase ).to eq( %{East of Eden} )
|
218
203
|
end
|
219
204
|
|
220
205
|
it "titlecases _Ego Dominus Tuus_ correctly" do
|
221
|
-
%{Ego Dominus Tuus}.downcase.en.titlecase.
|
222
|
-
should == %{Ego Dominus Tuus}
|
206
|
+
expect( %{Ego Dominus Tuus}.downcase.en.titlecase ).to eq( %{Ego Dominus Tuus} )
|
223
207
|
end
|
224
208
|
|
225
209
|
it "titlecases _Endless Night_ correctly" do
|
226
|
-
%{Endless Night}.downcase.en.titlecase.
|
227
|
-
should == %{Endless Night}
|
210
|
+
expect( %{Endless Night}.downcase.en.titlecase ).to eq( %{Endless Night} )
|
228
211
|
end
|
229
212
|
|
230
213
|
it "titlecases _Everything Is Illuminated_ correctly" do
|
231
|
-
|
232
|
-
|
214
|
+
expect(
|
215
|
+
%{Everything Is Illuminated}.downcase.en.titlecase
|
216
|
+
).to eq( %{Everything Is Illuminated} )
|
233
217
|
end
|
234
218
|
|
235
219
|
it "titlecases _Eyeless in Gaza_ correctly" do
|
236
|
-
%{Eyeless in Gaza}.downcase.en.titlecase.
|
237
|
-
should == %{Eyeless in Gaza}
|
220
|
+
expect( %{Eyeless in Gaza}.downcase.en.titlecase ).to eq( %{Eyeless in Gaza} )
|
238
221
|
end
|
239
222
|
|
240
223
|
it "titlecases _Fair Stood the Wind for France_ correctly" do
|
241
|
-
|
242
|
-
|
224
|
+
expect(
|
225
|
+
%{Fair Stood the Wind for France}.downcase.en.titlecase
|
226
|
+
).to eq( %{Fair Stood the Wind for France} )
|
243
227
|
end
|
244
228
|
|
245
229
|
it "titlecases _Fame Is the Spur_ correctly" do
|
246
|
-
%{Fame Is the Spur}.downcase.en.titlecase.
|
247
|
-
should == %{Fame Is the Spur}
|
230
|
+
expect( %{Fame Is the Spur}.downcase.en.titlecase ).to eq( %{Fame Is the Spur} )
|
248
231
|
end
|
249
232
|
|
250
233
|
it "titlecases _A Fanatic Heart_ correctly" do
|
251
|
-
%{A Fanatic Heart}.downcase.en.titlecase.
|
252
|
-
should == %{A Fanatic Heart}
|
234
|
+
expect( %{A Fanatic Heart}.downcase.en.titlecase ).to eq( %{A Fanatic Heart} )
|
253
235
|
end
|
254
236
|
|
255
237
|
it "titlecases _The Far-Distant Oxus_ correctly" do
|
256
|
-
%{The Far-Distant Oxus}.downcase.en.titlecase.
|
257
|
-
should == %{The Far-Distant Oxus}
|
238
|
+
expect( %{The Far-Distant Oxus}.downcase.en.titlecase ).to eq( %{The Far-Distant Oxus} )
|
258
239
|
end
|
259
240
|
|
260
241
|
it "titlecases _Far from the Madding Crowd_ correctly" do
|
261
|
-
|
262
|
-
|
242
|
+
expect(
|
243
|
+
%{Far from the Madding Crowd}.downcase.en.titlecase
|
244
|
+
).to eq( %{Far from the Madding Crowd} )
|
263
245
|
end
|
264
246
|
|
265
247
|
it "titlecases _Fear and Trembling_ correctly" do
|
266
|
-
%{Fear and Trembling}.downcase.en.titlecase.
|
267
|
-
should == %{Fear and Trembling}
|
248
|
+
expect( %{Fear and Trembling}.downcase.en.titlecase ).to eq( %{Fear and Trembling} )
|
268
249
|
end
|
269
250
|
|
270
251
|
it "titlecases _For a Breath I Tarry_ correctly" do
|
271
|
-
%{For a Breath I Tarry}.downcase.en.titlecase.
|
272
|
-
should == %{For a Breath I Tarry}
|
252
|
+
expect( %{For a Breath I Tarry}.downcase.en.titlecase ).to eq( %{For a Breath I Tarry} )
|
273
253
|
end
|
274
254
|
|
275
255
|
it "titlecases _For Whom the Bell Tolls_ correctly" do
|
276
|
-
%{For Whom the Bell Tolls}.downcase.en.titlecase.
|
277
|
-
should == %{For Whom the Bell Tolls}
|
256
|
+
expect( %{For Whom the Bell Tolls}.downcase.en.titlecase ).to eq( %{For Whom the Bell Tolls} )
|
278
257
|
end
|
279
258
|
|
280
259
|
it "titlecases _A Glass of Blessings_ correctly" do
|
281
|
-
%{A Glass of Blessings}.downcase.en.titlecase.
|
282
|
-
should == %{A Glass of Blessings}
|
260
|
+
expect( %{A Glass of Blessings}.downcase.en.titlecase ).to eq( %{A Glass of Blessings} )
|
283
261
|
end
|
284
262
|
|
285
263
|
it "titlecases _The Glory and the Dream_ correctly" do
|
286
|
-
%{The Glory and the Dream}.downcase.en.titlecase.
|
287
|
-
should == %{The Glory and the Dream}
|
264
|
+
expect( %{The Glory and the Dream}.downcase.en.titlecase ).to eq( %{The Glory and the Dream} )
|
288
265
|
end
|
289
266
|
|
290
267
|
it "titlecases _The Golden Apples of the Sun_ correctly" do
|
291
|
-
|
292
|
-
|
268
|
+
expect(
|
269
|
+
%{The Golden Apples of the Sun}.downcase.en.titlecase
|
270
|
+
).to eq( %{The Golden Apples of the Sun} )
|
293
271
|
end
|
294
272
|
|
295
273
|
it "titlecases _The Golden Bowl_ correctly" do
|
296
|
-
%{The Golden Bowl}.downcase.en.titlecase.
|
297
|
-
should == %{The Golden Bowl}
|
274
|
+
expect( %{The Golden Bowl}.downcase.en.titlecase ).to eq( %{The Golden Bowl} )
|
298
275
|
end
|
299
276
|
|
300
277
|
it "titlecases _Gone with the Wind_ correctly" do
|
301
|
-
%{Gone with the Wind}.downcase.en.titlecase.
|
302
|
-
should == %{Gone with the Wind}
|
278
|
+
expect( %{Gone with the Wind}.downcase.en.titlecase ).to eq( %{Gone with the Wind} )
|
303
279
|
end
|
304
280
|
|
305
281
|
it "titlecases _The Grapes of Wrath_ correctly" do
|
306
|
-
%{The Grapes of Wrath}.downcase.en.titlecase.
|
307
|
-
should == %{The Grapes of Wrath}
|
282
|
+
expect( %{The Grapes of Wrath}.downcase.en.titlecase ).to eq( %{The Grapes of Wrath} )
|
308
283
|
end
|
309
284
|
|
310
285
|
it "titlecases _Great Work of Time_ correctly" do
|
311
|
-
%{Great Work of Time}.downcase.en.titlecase.
|
312
|
-
should == %{Great Work of Time}
|
286
|
+
expect( %{Great Work of Time}.downcase.en.titlecase ).to eq( %{Great Work of Time} )
|
313
287
|
end
|
314
288
|
|
315
289
|
it "titlecases _The Green Bay Tree_ correctly" do
|
316
|
-
%{The Green Bay Tree}.downcase.en.titlecase.
|
317
|
-
should == %{The Green Bay Tree}
|
290
|
+
expect( %{The Green Bay Tree}.downcase.en.titlecase ).to eq( %{The Green Bay Tree} )
|
318
291
|
end
|
319
292
|
|
320
293
|
it "titlecases _A Handful of Dust_ correctly" do
|
321
|
-
%{A Handful of Dust}.downcase.en.titlecase.
|
322
|
-
should == %{A Handful of Dust}
|
294
|
+
expect( %{A Handful of Dust}.downcase.en.titlecase ).to eq( %{A Handful of Dust} )
|
323
295
|
end
|
324
296
|
|
325
297
|
it "titlecases _Have His Carcase_ correctly" do
|
326
|
-
%{Have His Carcase}.downcase.en.titlecase.
|
327
|
-
should == %{Have His Carcase}
|
298
|
+
expect( %{Have His Carcase}.downcase.en.titlecase ).to eq( %{Have His Carcase} )
|
328
299
|
end
|
329
300
|
|
330
301
|
it "titlecases _The Heart Is a Lonely Hunter_ correctly" do
|
331
|
-
|
332
|
-
|
302
|
+
expect(
|
303
|
+
%{The Heart Is a Lonely Hunter}.downcase.en.titlecase
|
304
|
+
).to eq( %{The Heart Is a Lonely Hunter} )
|
333
305
|
end
|
334
306
|
|
335
307
|
it "titlecases _The Heart Is Deceitful Above All Things_ correctly" do
|
336
|
-
|
337
|
-
|
308
|
+
expect(
|
309
|
+
%{The Heart Is Deceitful Above All Things}.downcase.en.titlecase
|
310
|
+
).to eq( %{The Heart Is Deceitful Above All Things} )
|
338
311
|
end
|
339
312
|
|
340
313
|
it "titlecases _His Dark Materials_ correctly" do
|
341
|
-
%{His Dark Materials}.downcase.en.titlecase.
|
342
|
-
should == %{His Dark Materials}
|
314
|
+
expect( %{His Dark Materials}.downcase.en.titlecase ).to eq( %{His Dark Materials} )
|
343
315
|
end
|
344
316
|
|
345
317
|
it "titlecases _The House of Mirth_ correctly" do
|
346
|
-
%{The House of Mirth}.downcase.en.titlecase.
|
347
|
-
should == %{The House of Mirth}
|
318
|
+
expect( %{The House of Mirth}.downcase.en.titlecase ).to eq( %{The House of Mirth} )
|
348
319
|
end
|
349
320
|
|
350
321
|
it "titlecases _How Sleep the Brave_ correctly" do
|
351
|
-
%{How Sleep the Brave}.downcase.en.titlecase.
|
352
|
-
should == %{How Sleep the Brave}
|
322
|
+
expect( %{How Sleep the Brave}.downcase.en.titlecase ).to eq( %{How Sleep the Brave} )
|
353
323
|
end
|
354
324
|
|
355
325
|
it "titlecases _If I Forget Thee Jerusalem_ correctly" do
|
356
|
-
|
357
|
-
|
326
|
+
expect(
|
327
|
+
%{If I Forget Thee Jerusalem}.downcase.en.titlecase
|
328
|
+
).to eq( %{If I Forget Thee Jerusalem} )
|
358
329
|
end
|
359
330
|
|
360
331
|
it "titlecases _If Not Now, When?_ correctly" do
|
361
|
-
%{If Not Now, When?}.downcase.en.titlecase.
|
362
|
-
should == %{If Not Now, When?}
|
332
|
+
expect( %{If Not Now, When?}.downcase.en.titlecase ).to eq( %{If Not Now, When?} )
|
363
333
|
end
|
364
334
|
|
365
335
|
it "titlecases _In Death Ground_ correctly" do
|
366
|
-
%{In Death Ground}.downcase.en.titlecase.
|
367
|
-
should == %{In Death Ground}
|
336
|
+
expect( %{In Death Ground}.downcase.en.titlecase ).to eq( %{In Death Ground} )
|
368
337
|
end
|
369
338
|
|
370
339
|
it "titlecases _In Dubious Battle_ correctly" do
|
371
|
-
%{In Dubious Battle}.downcase.en.titlecase.
|
372
|
-
should == %{In Dubious Battle}
|
340
|
+
expect( %{In Dubious Battle}.downcase.en.titlecase ).to eq( %{In Dubious Battle} )
|
373
341
|
end
|
374
342
|
|
375
343
|
it "titlecases _I Know Why the Caged Bird Sings_ correctly" do
|
376
|
-
|
377
|
-
|
344
|
+
expect(
|
345
|
+
%{I Know Why the Caged Bird Sings}.downcase.en.titlecase
|
346
|
+
).to eq( %{I Know Why the Caged Bird Sings} )
|
378
347
|
end
|
379
348
|
|
380
349
|
it "titlecases _In a Dry Season_ correctly" do
|
381
|
-
%{In a Dry Season}.downcase.en.titlecase.
|
382
|
-
should == %{In a Dry Season}
|
350
|
+
expect( %{In a Dry Season}.downcase.en.titlecase ).to eq( %{In a Dry Season} )
|
383
351
|
end
|
384
352
|
|
385
353
|
it "titlecases _An Instant in the Wind_ correctly" do
|
386
|
-
%{An Instant in the Wind}.downcase.en.titlecase.
|
387
|
-
should == %{An Instant in the Wind}
|
354
|
+
expect( %{An Instant in the Wind}.downcase.en.titlecase ).to eq( %{An Instant in the Wind} )
|
388
355
|
end
|
389
356
|
|
390
357
|
it "titlecases _I Sing the Body Electric_ correctly" do
|
391
|
-
|
392
|
-
|
358
|
+
expect(
|
359
|
+
%{I Sing the Body Electric}.downcase.en.titlecase
|
360
|
+
).to eq( %{I Sing the Body Electric} )
|
393
361
|
end
|
394
362
|
|
395
363
|
it "titlecases _I Will Fear No Evil_ correctly" do
|
396
|
-
%{I Will Fear No Evil}.downcase.en.titlecase.
|
397
|
-
should == %{I Will Fear No Evil}
|
364
|
+
expect( %{I Will Fear No Evil}.downcase.en.titlecase ).to eq( %{I Will Fear No Evil} )
|
398
365
|
end
|
399
366
|
|
400
367
|
it "titlecases _O Jerusalem!_ correctly" do
|
401
|
-
%{O Jerusalem!}.downcase.en.titlecase.
|
402
|
-
should == %{O Jerusalem!}
|
368
|
+
expect( %{O Jerusalem!}.downcase.en.titlecase ).to eq( %{O Jerusalem!} )
|
403
369
|
end
|
404
370
|
|
405
371
|
it "titlecases _Jesting Pilate_ correctly" do
|
406
|
-
%{Jesting Pilate}.downcase.en.titlecase.
|
407
|
-
should == %{Jesting Pilate}
|
372
|
+
expect( %{Jesting Pilate}.downcase.en.titlecase ).to eq( %{Jesting Pilate} )
|
408
373
|
end
|
409
374
|
|
410
375
|
it "titlecases _The Last Temptation_ correctly" do
|
411
|
-
%{The Last Temptation}.downcase.en.titlecase.
|
412
|
-
should == %{The Last Temptation}
|
376
|
+
expect( %{The Last Temptation}.downcase.en.titlecase ).to eq( %{The Last Temptation} )
|
413
377
|
end
|
414
378
|
|
415
379
|
it "titlecases _The Lathe of Heaven_ correctly" do
|
416
|
-
%{The Lathe of Heaven}.downcase.en.titlecase.
|
417
|
-
should == %{The Lathe of Heaven}
|
380
|
+
expect( %{The Lathe of Heaven}.downcase.en.titlecase ).to eq( %{The Lathe of Heaven} )
|
418
381
|
end
|
419
382
|
|
420
383
|
it "titlecases _Let Us Now Praise Famous Men_ correctly" do
|
421
|
-
|
422
|
-
|
384
|
+
expect(
|
385
|
+
%{Let Us Now Praise Famous Men}.downcase.en.titlecase
|
386
|
+
).to eq( %{Let Us Now Praise Famous Men} )
|
423
387
|
end
|
424
388
|
|
425
389
|
it "titlecases _Lilies of the Field_ correctly" do
|
426
|
-
%{Lilies of the Field}.downcase.en.titlecase.
|
427
|
-
should == %{Lilies of the Field}
|
390
|
+
expect( %{Lilies of the Field}.downcase.en.titlecase ).to eq( %{Lilies of the Field} )
|
428
391
|
end
|
429
392
|
|
430
393
|
it "titlecases _This Lime Tree Bower_ correctly" do
|
431
|
-
%{This Lime Tree Bower}.downcase.en.titlecase.
|
432
|
-
should == %{This Lime Tree Bower}
|
394
|
+
expect( %{This Lime Tree Bower}.downcase.en.titlecase ).to eq( %{This Lime Tree Bower} )
|
433
395
|
end
|
434
396
|
|
435
397
|
it "titlecases _The Line of Beauty_ correctly" do
|
436
|
-
%{The Line of Beauty}.downcase.en.titlecase.
|
437
|
-
should == %{The Line of Beauty}
|
398
|
+
expect( %{The Line of Beauty}.downcase.en.titlecase ).to eq( %{The Line of Beauty} )
|
438
399
|
end
|
439
400
|
|
440
401
|
it "titlecases _The Little Foxes_ correctly" do
|
441
|
-
%{The Little Foxes}.downcase.en.titlecase.
|
442
|
-
should == %{The Little Foxes}
|
402
|
+
expect( %{The Little Foxes}.downcase.en.titlecase ).to eq( %{The Little Foxes} )
|
443
403
|
end
|
444
404
|
|
445
405
|
it "titlecases _Little Hands Clapping_ correctly" do
|
446
|
-
%{Little Hands Clapping}.downcase.en.titlecase.
|
447
|
-
should == %{Little Hands Clapping}
|
406
|
+
expect( %{Little Hands Clapping}.downcase.en.titlecase ).to eq( %{Little Hands Clapping} )
|
448
407
|
end
|
449
408
|
|
450
409
|
it "titlecases _Look Homeward, Angel_ correctly" do
|
451
|
-
%{Look Homeward, Angel}.downcase.en.titlecase.
|
452
|
-
should == %{Look Homeward, Angel}
|
410
|
+
expect( %{Look Homeward, Angel}.downcase.en.titlecase ).to eq( %{Look Homeward, Angel} )
|
453
411
|
end
|
454
412
|
|
455
413
|
it "titlecases _Look to Windward_ correctly" do
|
456
|
-
%{Look to Windward}.downcase.en.titlecase.
|
457
|
-
should == %{Look to Windward}
|
414
|
+
expect( %{Look to Windward}.downcase.en.titlecase ).to eq( %{Look to Windward} )
|
458
415
|
end
|
459
416
|
|
460
417
|
it "titlecases _Many Waters_ correctly" do
|
461
|
-
%{Many Waters}.downcase.en.titlecase.
|
462
|
-
should == %{Many Waters}
|
418
|
+
expect( %{Many Waters}.downcase.en.titlecase ).to eq( %{Many Waters} )
|
463
419
|
end
|
464
420
|
|
465
421
|
it "titlecases _A Many-Splendoured Thing_ correctly" do
|
466
|
-
|
467
|
-
|
422
|
+
expect(
|
423
|
+
%{A Many-Splendoured Thing}.downcase.en.titlecase
|
424
|
+
).to eq( %{A Many-Splendoured Thing} )
|
468
425
|
end
|
469
426
|
|
470
427
|
it "titlecases _The Mermaids Singing_ correctly" do
|
471
|
-
%{The Mermaids Singing}.downcase.en.titlecase.
|
472
|
-
should == %{The Mermaids Singing}
|
428
|
+
expect( %{The Mermaids Singing}.downcase.en.titlecase ).to eq( %{The Mermaids Singing} )
|
473
429
|
end
|
474
430
|
|
475
431
|
it "titlecases _The Mirror Crack'd from Side to Side_ correctly" do
|
476
|
-
|
477
|
-
|
432
|
+
expect(
|
433
|
+
%{The Mirror Crack'd from Side to Side}.downcase.en.titlecase
|
434
|
+
).to eq( %{The Mirror Crack'd from Side to Side} )
|
478
435
|
end
|
479
436
|
|
480
437
|
it "titlecases _Moab Is My Washpot_ correctly" do
|
481
|
-
%{Moab Is My Washpot}.downcase.en.titlecase.
|
482
|
-
should == %{Moab Is My Washpot}
|
438
|
+
expect( %{Moab Is My Washpot}.downcase.en.titlecase ).to eq( %{Moab Is My Washpot} )
|
483
439
|
end
|
484
440
|
|
485
441
|
it "titlecases _The Monkey's Raincoat_ correctly" do
|
486
|
-
%{The Monkey's Raincoat}.downcase.en.titlecase.
|
487
|
-
should == %{The Monkey's Raincoat}
|
442
|
+
expect( %{The Monkey's Raincoat}.downcase.en.titlecase ).to eq( %{The Monkey's Raincoat} )
|
488
443
|
end
|
489
444
|
|
490
445
|
it "titlecases _A Monstrous Regiment of Women_ correctly" do
|
491
|
-
|
492
|
-
|
446
|
+
expect(
|
447
|
+
%{A Monstrous Regiment of Women}.downcase.en.titlecase
|
448
|
+
).to eq( %{A Monstrous Regiment of Women} )
|
493
449
|
end
|
494
450
|
|
495
451
|
it "titlecases _The Moon by Night_ correctly" do
|
496
|
-
%{The Moon by Night}.downcase.en.titlecase.
|
497
|
-
should == %{The Moon by Night}
|
452
|
+
expect( %{The Moon by Night}.downcase.en.titlecase ).to eq( %{The Moon by Night} )
|
498
453
|
end
|
499
454
|
|
500
455
|
it "titlecases _Mother Night_ correctly" do
|
501
|
-
%{Mother Night}.downcase.en.titlecase.
|
502
|
-
should == %{Mother Night}
|
456
|
+
expect( %{Mother Night}.downcase.en.titlecase ).to eq( %{Mother Night} )
|
503
457
|
end
|
504
458
|
|
505
459
|
it "titlecases _The Moving Finger_ correctly" do
|
506
|
-
%{The Moving Finger}.downcase.en.titlecase.
|
507
|
-
should == %{The Moving Finger}
|
460
|
+
expect( %{The Moving Finger}.downcase.en.titlecase ).to eq( %{The Moving Finger} )
|
508
461
|
end
|
509
462
|
|
510
463
|
it "titlecases _Mr Standfast_ correctly" do
|
511
|
-
%{Mr Standfast}.downcase.en.titlecase.
|
512
|
-
should == %{Mr Standfast}
|
464
|
+
expect( %{Mr Standfast}.downcase.en.titlecase ).to eq( %{Mr Standfast} )
|
513
465
|
end
|
514
466
|
|
515
467
|
it "titlecases _Nectar in a Sieve_ correctly" do
|
516
|
-
%{Nectar in a Sieve}.downcase.en.titlecase.
|
517
|
-
should == %{Nectar in a Sieve}
|
468
|
+
expect( %{Nectar in a Sieve}.downcase.en.titlecase ).to eq( %{Nectar in a Sieve} )
|
518
469
|
end
|
519
470
|
|
520
471
|
it "titlecases _No Country for Old Men_ correctly" do
|
521
|
-
%{No Country for Old Men}.downcase.en.titlecase.
|
522
|
-
should == %{No Country for Old Men}
|
472
|
+
expect( %{No Country for Old Men}.downcase.en.titlecase ).to eq( %{No Country for Old Men} )
|
523
473
|
end
|
524
474
|
|
525
475
|
it "titlecases _No Highway_ correctly" do
|
526
|
-
%{No Highway}.downcase.en.titlecase.
|
527
|
-
should == %{No Highway}
|
476
|
+
expect( %{No Highway}.downcase.en.titlecase ).to eq( %{No Highway} )
|
528
477
|
end
|
529
478
|
|
530
479
|
it "titlecases _Noli Me Tangere_ correctly" do
|
531
|
-
%{Noli Me Tangere}.downcase.en.titlecase.
|
532
|
-
should == %{Noli Me Tangere}
|
480
|
+
expect( %{Noli Me Tangere}.downcase.en.titlecase ).to eq( %{Noli Me Tangere} )
|
533
481
|
end
|
534
482
|
|
535
483
|
it "titlecases _No Longer at Ease_ correctly" do
|
536
|
-
%{No Longer at Ease}.downcase.en.titlecase.
|
537
|
-
should == %{No Longer at Ease}
|
484
|
+
expect( %{No Longer at Ease}.downcase.en.titlecase ).to eq( %{No Longer at Ease} )
|
538
485
|
end
|
539
486
|
|
540
487
|
it "titlecases _Now Sleeps the Crimson Petal_ correctly" do
|
541
|
-
|
542
|
-
|
488
|
+
expect(
|
489
|
+
%{Now Sleeps the Crimson Petal}.downcase.en.titlecase
|
490
|
+
).to eq( %{Now Sleeps the Crimson Petal} )
|
543
491
|
end
|
544
492
|
|
545
493
|
it "titlecases _Number the Stars_ correctly" do
|
546
|
-
%{Number the Stars}.downcase.en.titlecase.
|
547
|
-
should == %{Number the Stars}
|
494
|
+
expect( %{Number the Stars}.downcase.en.titlecase ).to eq( %{Number the Stars} )
|
548
495
|
end
|
549
496
|
|
550
497
|
it "titlecases _Of Human Bondage_ correctly" do
|
551
|
-
%{Of Human Bondage}.downcase.en.titlecase.
|
552
|
-
should == %{Of Human Bondage}
|
498
|
+
expect( %{Of Human Bondage}.downcase.en.titlecase ).to eq( %{Of Human Bondage} )
|
553
499
|
end
|
554
500
|
|
555
501
|
it "titlecases _Of Mice and Men_ correctly" do
|
556
|
-
%{Of Mice and Men}.downcase.en.titlecase.
|
557
|
-
should == %{Of Mice and Men}
|
502
|
+
expect( %{Of Mice and Men}.downcase.en.titlecase ).to eq( %{Of Mice and Men} )
|
558
503
|
end
|
559
504
|
|
560
505
|
it "titlecases _The Other Side of Silence_ correctly" do
|
561
|
-
|
562
|
-
|
506
|
+
expect(
|
507
|
+
%{The Other Side of Silence}.downcase.en.titlecase
|
508
|
+
).to eq( %{The Other Side of Silence} )
|
563
509
|
end
|
564
510
|
|
565
511
|
it "titlecases _The Painted Veil_ correctly" do
|
566
|
-
%{The Painted Veil}.downcase.en.titlecase.
|
567
|
-
should == %{The Painted Veil}
|
512
|
+
expect( %{The Painted Veil}.downcase.en.titlecase ).to eq( %{The Painted Veil} )
|
568
513
|
end
|
569
514
|
|
570
515
|
it "titlecases _The Parliament of Man_ correctly" do
|
571
|
-
%{The Parliament of Man}.downcase.en.titlecase.
|
572
|
-
should == %{The Parliament of Man}
|
516
|
+
expect( %{The Parliament of Man}.downcase.en.titlecase ).to eq( %{The Parliament of Man} )
|
573
517
|
end
|
574
518
|
|
575
519
|
it "titlecases _Paths of Glory_ correctly" do
|
576
|
-
%{Paths of Glory}.downcase.en.titlecase.
|
577
|
-
should == %{Paths of Glory}
|
520
|
+
expect( %{Paths of Glory}.downcase.en.titlecase ).to eq( %{Paths of Glory} )
|
578
521
|
end
|
579
522
|
|
580
523
|
it "titlecases _A Passage to India_ correctly" do
|
581
|
-
%{A Passage to India}.downcase.en.titlecase.
|
582
|
-
should == %{A Passage to India}
|
524
|
+
expect( %{A Passage to India}.downcase.en.titlecase ).to eq( %{A Passage to India} )
|
583
525
|
end
|
584
526
|
|
585
527
|
it "titlecases _O Pioneers!_ correctly" do
|
586
|
-
%{O Pioneers!}.downcase.en.titlecase.
|
587
|
-
should == %{O Pioneers!}
|
528
|
+
expect( %{O Pioneers!}.downcase.en.titlecase ).to eq( %{O Pioneers!} )
|
588
529
|
end
|
589
530
|
|
590
531
|
it "titlecases _Postern of Fate_ correctly" do
|
591
|
-
%{Postern of Fate}.downcase.en.titlecase.
|
592
|
-
should == %{Postern of Fate}
|
532
|
+
expect( %{Postern of Fate}.downcase.en.titlecase ).to eq( %{Postern of Fate} )
|
593
533
|
end
|
594
534
|
|
595
535
|
it "titlecases _Precious Bane_ correctly" do
|
596
|
-
%{Precious Bane}.downcase.en.titlecase.
|
597
|
-
should == %{Precious Bane}
|
536
|
+
expect( %{Precious Bane}.downcase.en.titlecase ).to eq( %{Precious Bane} )
|
598
537
|
end
|
599
538
|
|
600
539
|
it "titlecases _The Proper Study_ correctly" do
|
601
|
-
%{The Proper Study}.downcase.en.titlecase.
|
602
|
-
should == %{The Proper Study}
|
540
|
+
expect( %{The Proper Study}.downcase.en.titlecase ).to eq( %{The Proper Study} )
|
603
541
|
end
|
604
542
|
|
605
543
|
it "titlecases _Quo Vadis_ correctly" do
|
606
|
-
%{Quo Vadis}.downcase.en.titlecase.
|
607
|
-
should == %{Quo Vadis}
|
544
|
+
expect( %{Quo Vadis}.downcase.en.titlecase ).to eq( %{Quo Vadis} )
|
608
545
|
end
|
609
546
|
|
610
547
|
it "titlecases _Recalled to Life_ correctly" do
|
611
|
-
%{Recalled to Life}.downcase.en.titlecase.
|
612
|
-
should == %{Recalled to Life}
|
548
|
+
expect( %{Recalled to Life}.downcase.en.titlecase ).to eq( %{Recalled to Life} )
|
613
549
|
end
|
614
550
|
|
615
551
|
it "titlecases _Recalled to Life_ correctly" do
|
616
|
-
%{Recalled to Life}.downcase.en.titlecase.
|
617
|
-
should == %{Recalled to Life}
|
552
|
+
expect( %{Recalled to Life}.downcase.en.titlecase ).to eq( %{Recalled to Life} )
|
618
553
|
end
|
619
554
|
|
620
555
|
it "titlecases _Ring of Bright Water_ correctly" do
|
621
|
-
%{Ring of Bright Water}.downcase.en.titlecase.
|
622
|
-
should == %{Ring of Bright Water}
|
556
|
+
expect( %{Ring of Bright Water}.downcase.en.titlecase ).to eq( %{Ring of Bright Water} )
|
623
557
|
end
|
624
558
|
|
625
559
|
it "titlecases _The Road Less Traveled_ correctly" do
|
626
|
-
%{The Road Less Traveled}.downcase.en.titlecase.
|
627
|
-
should == %{The Road Less Traveled}
|
560
|
+
expect( %{The Road Less Traveled}.downcase.en.titlecase ).to eq( %{The Road Less Traveled} )
|
628
561
|
end
|
629
562
|
|
630
563
|
it "titlecases _Shall Not Perish_ correctly" do
|
631
|
-
%{Shall Not Perish}.downcase.en.titlecase.
|
632
|
-
should == %{Shall Not Perish}
|
564
|
+
expect( %{Shall Not Perish}.downcase.en.titlecase ).to eq( %{Shall Not Perish} )
|
633
565
|
end
|
634
566
|
|
635
567
|
it "titlecases _The Skull Beneath the Skin_ correctly" do
|
636
|
-
|
637
|
-
|
568
|
+
expect(
|
569
|
+
%{The Skull Beneath the Skin}.downcase.en.titlecase
|
570
|
+
).to eq( %{The Skull Beneath the Skin} )
|
638
571
|
end
|
639
572
|
|
640
573
|
it "titlecases _The Soldier's Art_ correctly" do
|
641
|
-
%{The Soldier's Art}.downcase.en.titlecase.
|
642
|
-
should == %{The Soldier's Art}
|
574
|
+
expect( %{The Soldier's Art}.downcase.en.titlecase ).to eq( %{The Soldier's Art} )
|
643
575
|
end
|
644
576
|
|
645
577
|
it "titlecases _Some Buried Caesar_ correctly" do
|
646
|
-
%{Some Buried Caesar}.downcase.en.titlecase.
|
647
|
-
should == %{Some Buried Caesar}
|
578
|
+
expect( %{Some Buried Caesar}.downcase.en.titlecase ).to eq( %{Some Buried Caesar} )
|
648
579
|
end
|
649
580
|
|
650
581
|
it "titlecases _Specimen Days_ correctly" do
|
651
|
-
%{Specimen Days}.downcase.en.titlecase.
|
652
|
-
should == %{Specimen Days}
|
582
|
+
expect( %{Specimen Days}.downcase.en.titlecase ).to eq( %{Specimen Days} )
|
653
583
|
end
|
654
584
|
|
655
585
|
it "titlecases _The Stars' Tennis Balls_ correctly" do
|
656
|
-
|
657
|
-
|
586
|
+
expect(
|
587
|
+
%{The Stars' Tennis Balls}.downcase.en.titlecase
|
588
|
+
).to eq( %{The Stars' Tennis Balls} )
|
658
589
|
end
|
659
590
|
|
660
591
|
it "titlecases _Stranger in a Strange Land_ correctly" do
|
661
|
-
|
662
|
-
|
592
|
+
expect(
|
593
|
+
%{Stranger in a Strange Land}.downcase.en.titlecase
|
594
|
+
).to eq( %{Stranger in a Strange Land} )
|
663
595
|
end
|
664
596
|
|
665
597
|
it "titlecases _Such, Such Were the Joys_ correctly" do
|
666
|
-
|
667
|
-
|
598
|
+
expect(
|
599
|
+
%{Such, Such Were the Joys}.downcase.en.titlecase
|
600
|
+
).to eq( %{Such, Such Were the Joys} )
|
668
601
|
end
|
669
602
|
|
670
603
|
it "titlecases _The Sun Also Rises_ correctly" do
|
671
|
-
%{The Sun Also Rises}.downcase.en.titlecase.
|
672
|
-
should == %{The Sun Also Rises}
|
604
|
+
expect( %{The Sun Also Rises}.downcase.en.titlecase ).to eq( %{The Sun Also Rises} )
|
673
605
|
end
|
674
606
|
|
675
607
|
it "titlecases _Surprised by Joy_ correctly" do
|
676
|
-
%{Surprised by Joy}.downcase.en.titlecase.
|
677
|
-
should == %{Surprised by Joy}
|
608
|
+
expect( %{Surprised by Joy}.downcase.en.titlecase ).to eq( %{Surprised by Joy} )
|
678
609
|
end
|
679
610
|
|
680
611
|
it "titlecases _A Swiftly Tilting Planet_ correctly" do
|
681
|
-
|
682
|
-
|
612
|
+
expect(
|
613
|
+
%{A Swiftly Tilting Planet}.downcase.en.titlecase
|
614
|
+
).to eq( %{A Swiftly Tilting Planet} )
|
683
615
|
end
|
684
616
|
|
685
617
|
it "titlecases _Tender Is the Night_ correctly" do
|
686
|
-
%{Tender Is the Night}.downcase.en.titlecase.
|
687
|
-
should == %{Tender Is the Night}
|
618
|
+
expect( %{Tender Is the Night}.downcase.en.titlecase ).to eq( %{Tender Is the Night} )
|
688
619
|
end
|
689
620
|
|
690
621
|
it "titlecases _Terrible Swift Sword_ correctly" do
|
691
|
-
%{Terrible Swift Sword}.downcase.en.titlecase.
|
692
|
-
should == %{Terrible Swift Sword}
|
622
|
+
expect( %{Terrible Swift Sword}.downcase.en.titlecase ).to eq( %{Terrible Swift Sword} )
|
693
623
|
end
|
694
624
|
|
695
625
|
it "titlecases _That Good Night_ correctly" do
|
696
|
-
%{That Good Night}.downcase.en.titlecase.
|
697
|
-
should == %{That Good Night}
|
626
|
+
expect( %{That Good Night}.downcase.en.titlecase ).to eq( %{That Good Night} )
|
698
627
|
end
|
699
628
|
|
700
629
|
it "titlecases _Things Fall Apart_ correctly" do
|
701
|
-
%{Things Fall Apart}.downcase.en.titlecase.
|
702
|
-
should == %{Things Fall Apart}
|
630
|
+
expect( %{Things Fall Apart}.downcase.en.titlecase ).to eq( %{Things Fall Apart} )
|
703
631
|
end
|
704
632
|
|
705
633
|
it "titlecases _This Side of Paradise_ correctly" do
|
706
|
-
%{This Side of Paradise}.downcase.en.titlecase.
|
707
|
-
should == %{This Side of Paradise}
|
634
|
+
expect( %{This Side of Paradise}.downcase.en.titlecase ).to eq( %{This Side of Paradise} )
|
708
635
|
end
|
709
636
|
|
710
637
|
it "titlecases _The Torment of Others_ correctly" do
|
711
|
-
%{The Torment of Others}.downcase.en.titlecase.
|
712
|
-
should == %{The Torment of Others}
|
638
|
+
expect( %{The Torment of Others}.downcase.en.titlecase ).to eq( %{The Torment of Others} )
|
713
639
|
end
|
714
640
|
|
715
641
|
it "titlecases _Those Barren Leaves_ correctly" do
|
716
|
-
%{Those Barren Leaves}.downcase.en.titlecase.
|
717
|
-
should == %{Those Barren Leaves}
|
642
|
+
expect( %{Those Barren Leaves}.downcase.en.titlecase ).to eq( %{Those Barren Leaves} )
|
718
643
|
end
|
719
644
|
|
720
645
|
it "titlecases _Thrones, Dominations_ correctly" do
|
721
|
-
%{Thrones, Dominations}.downcase.en.titlecase.
|
722
|
-
should == %{Thrones, Dominations}
|
646
|
+
expect( %{Thrones, Dominations}.downcase.en.titlecase ).to eq( %{Thrones, Dominations} )
|
723
647
|
end
|
724
648
|
|
725
649
|
it "titlecases _Tiger! Tiger!_ correctly" do
|
726
|
-
%{Tiger! Tiger!}.downcase.en.titlecase.
|
727
|
-
should == %{Tiger! Tiger!}
|
650
|
+
expect( %{Tiger! Tiger!}.downcase.en.titlecase ).to eq( %{Tiger! Tiger!} )
|
728
651
|
end
|
729
652
|
|
730
653
|
it "titlecases _A Time of Gifts_ correctly" do
|
731
|
-
%{A Time of Gifts}.downcase.en.titlecase.
|
732
|
-
should == %{A Time of Gifts}
|
654
|
+
expect( %{A Time of Gifts}.downcase.en.titlecase ).to eq( %{A Time of Gifts} )
|
733
655
|
end
|
734
656
|
|
735
657
|
it "titlecases _Time of Our Darkness_ correctly" do
|
736
|
-
%{Time of Our Darkness}.downcase.en.titlecase.
|
737
|
-
should == %{Time of Our Darkness}
|
658
|
+
expect( %{Time of Our Darkness}.downcase.en.titlecase ).to eq( %{Time of Our Darkness} )
|
738
659
|
end
|
739
660
|
|
740
661
|
it "titlecases _Time to Murder and Create_ correctly" do
|
741
|
-
|
742
|
-
|
662
|
+
expect(
|
663
|
+
%{Time to Murder and Create}.downcase.en.titlecase
|
664
|
+
).to eq( %{Time to Murder and Create} )
|
743
665
|
end
|
744
666
|
|
745
667
|
it "titlecases _To a God Unknown_ correctly" do
|
746
|
-
%{To a God Unknown}.downcase.en.titlecase.
|
747
|
-
should == %{To a God Unknown}
|
668
|
+
expect( %{To a God Unknown}.downcase.en.titlecase ).to eq( %{To a God Unknown} )
|
748
669
|
end
|
749
670
|
|
750
671
|
it "titlecases _To Sail Beyond the Sunset_ correctly" do
|
751
|
-
|
752
|
-
|
672
|
+
expect(
|
673
|
+
%{To Sail Beyond the Sunset}.downcase.en.titlecase
|
674
|
+
).to eq( %{To Sail Beyond the Sunset} )
|
753
675
|
end
|
754
676
|
|
755
677
|
it "titlecases _To Say Nothing of the Dog_ correctly" do
|
756
|
-
|
757
|
-
|
678
|
+
expect(
|
679
|
+
%{To Say Nothing of the Dog}.downcase.en.titlecase
|
680
|
+
).to eq( %{To Say Nothing of the Dog} )
|
758
681
|
end
|
759
682
|
|
760
683
|
it "titlecases _Vanity Fair_ correctly" do
|
761
|
-
%{Vanity Fair}.downcase.en.titlecase.
|
762
|
-
should == %{Vanity Fair}
|
684
|
+
expect( %{Vanity Fair}.downcase.en.titlecase ).to eq( %{Vanity Fair} )
|
763
685
|
end
|
764
686
|
|
765
687
|
it "titlecases _Vile Bodies_ correctly" do
|
766
|
-
%{Vile Bodies}.downcase.en.titlecase.
|
767
|
-
should == %{Vile Bodies}
|
688
|
+
expect( %{Vile Bodies}.downcase.en.titlecase ).to eq( %{Vile Bodies} )
|
768
689
|
end
|
769
690
|
|
770
691
|
it "titlecases _The Violent Bear It Away_ correctly" do
|
771
|
-
|
772
|
-
|
692
|
+
expect(
|
693
|
+
%{The Violent Bear It Away}.downcase.en.titlecase
|
694
|
+
).to eq( %{The Violent Bear It Away} )
|
773
695
|
end
|
774
696
|
|
775
697
|
it "titlecases _Waiting for the Barbarians_ correctly" do
|
776
|
-
|
777
|
-
|
698
|
+
expect(
|
699
|
+
%{Waiting for the Barbarians}.downcase.en.titlecase
|
700
|
+
).to eq( %{Waiting for the Barbarians} )
|
778
701
|
end
|
779
702
|
|
780
703
|
it "titlecases _The Waste Land_ correctly" do
|
781
|
-
%{The Waste Land}.downcase.en.titlecase.
|
782
|
-
should == %{The Waste Land}
|
704
|
+
expect( %{The Waste Land}.downcase.en.titlecase ).to eq( %{The Waste Land} )
|
783
705
|
end
|
784
706
|
|
785
707
|
it "titlecases _The Way of All Flesh_ correctly" do
|
786
|
-
%{The Way of All Flesh}.downcase.en.titlecase.
|
787
|
-
should == %{The Way of All Flesh}
|
708
|
+
expect( %{The Way of All Flesh}.downcase.en.titlecase ).to eq( %{The Way of All Flesh} )
|
788
709
|
end
|
789
710
|
|
790
711
|
it "titlecases _The Way Through the Woods_ correctly" do
|
791
|
-
|
792
|
-
|
712
|
+
expect(
|
713
|
+
%{The Way Through the Woods}.downcase.en.titlecase
|
714
|
+
).to eq( %{The Way Through the Woods} )
|
793
715
|
end
|
794
716
|
|
795
717
|
it "titlecases _The Wealth of Nations_ correctly" do
|
796
|
-
|
797
|
-
|
718
|
+
expect(
|
719
|
+
%{The Wealth of Nations}.downcase.en.titlecase
|
720
|
+
).to eq( %{The Wealth of Nations} )
|
798
721
|
end
|
799
722
|
|
800
723
|
it "titlecases _What's Become of Waring_ correctly" do
|
801
|
-
|
802
|
-
|
724
|
+
expect(
|
725
|
+
%{What's Become of Waring}.downcase.en.titlecase
|
726
|
+
).to eq( %{What's Become of Waring} )
|
803
727
|
end
|
804
728
|
|
805
729
|
it "titlecases _When the Green Woods Laugh_ correctly" do
|
806
|
-
|
807
|
-
|
730
|
+
expect(
|
731
|
+
%{When the Green Woods Laugh}.downcase.en.titlecase
|
732
|
+
).to eq( %{When the Green Woods Laugh} )
|
808
733
|
end
|
809
734
|
|
810
735
|
it "titlecases _Where Angels Fear to Tread_ correctly" do
|
811
|
-
|
812
|
-
|
736
|
+
expect(
|
737
|
+
%{Where Angels Fear to Tread}.downcase.en.titlecase
|
738
|
+
).to eq( %{Where Angels Fear to Tread} )
|
813
739
|
end
|
814
740
|
|
815
741
|
it "titlecases _The Wives of Bath_ correctly" do
|
816
|
-
%{The Wives of Bath}.downcase.en.titlecase.
|
817
|
-
should == %{The Wives of Bath}
|
742
|
+
expect( %{The Wives of Bath}.downcase.en.titlecase ).to eq( %{The Wives of Bath} )
|
818
743
|
end
|
819
744
|
|
820
745
|
it "titlecases _The World, the Flesh and the Devil_ correctly" do
|
821
|
-
|
822
|
-
|
746
|
+
expect(
|
747
|
+
%{The World, the Flesh and the Devil}.downcase.en.titlecase
|
748
|
+
).to eq( %{The World, the Flesh and the Devil} )
|
823
749
|
end
|
824
750
|
|
825
751
|
it "titlecases _The Yellow Meads of Asphodel_ correctly" do
|
826
|
-
|
827
|
-
|
752
|
+
expect(
|
753
|
+
%{The Yellow Meads of Asphodel}.downcase.en.titlecase
|
754
|
+
).to eq( %{The Yellow Meads of Asphodel} )
|
828
755
|
end
|
829
756
|
|
830
757
|
end
|