6
7
8
9
10
11
12
13
14
15
16
17
18
|
# File 'lib/innate/test/testtitlecase.rb', line 6
def test_s
s = ['this sentence should be capitalized',
'here is another one. the best is to see what will happen! is it good?',
'how many more do i need here? a few.',
"i'll have to get this done soon, it may get boring..."]
t = ['This Sentence Should Be Capitalized',
'Here is Another One. The Best is to See What Will Happen! Is it Good?',
'How Many More Do I Need Here? A Few.',
"I'll Have to Get This Done Soon, it May Get Boring..."].to_cursor
s.each do |string|
assert_equal t.read1next, string.title_case
end
end
|