|
4 | 4 |
|
5 | 5 | class TestFragment < Test::Unit::TestCase
|
6 | 6 |
|
7 |
| - def test_normalize_empty_fragment |
| 7 | + def test_normalized_lines_of_empty_fragment |
8 | 8 | fragment =<<EOF
|
9 | 9 | /**
|
10 | 10 | *
|
11 | 11 | *
|
12 | 12 | **/
|
13 | 13 | EOF
|
14 | 14 | fragment = PDoc::Fragment.new(fragment, 0)
|
15 |
| - lines = fragment.normalize |
| 15 | + lines = fragment.normalized_lines |
16 | 16 | assert_equal("", lines[0])
|
17 | 17 | assert_equal("", lines[1])
|
18 | 18 | assert_equal("", lines.last)
|
19 | 19 | end
|
20 | 20 |
|
21 |
| - def test_normalize_basic_fragment |
| 21 | + def test_normalized_lines_of_basic_fragment |
22 | 22 | fragment =<<EOF
|
23 | 23 | /**
|
24 | 24 | * foo
|
25 | 25 | * bar
|
26 | 26 | **/
|
27 | 27 | EOF
|
28 | 28 | fragment = PDoc::Fragment.new(fragment, 0)
|
29 |
| - lines = fragment.normalize |
| 29 | + lines = fragment.normalized_lines |
30 | 30 | assert_equal("", lines[0])
|
31 | 31 | assert_equal("foo", lines[1])
|
32 | 32 | assert_equal(" bar", lines[2])
|
33 | 33 | assert_equal("", lines.last)
|
34 | 34 | end
|
35 | 35 |
|
36 |
| - def test_normalize_broken_fragment |
| 36 | + def test_normalized_lines_of_broken_fragment |
37 | 37 | fragment =<<EOF
|
38 | 38 | /**
|
39 | 39 | * foo
|
40 | 40 | *bar
|
41 | 41 | **/
|
42 | 42 | EOF
|
43 | 43 | assert_raise PDoc::Fragment::InconsistentPrefixError do
|
44 |
| - PDoc::Fragment.new(fragment, 0).normalize |
| 44 | + PDoc::Fragment.new(fragment, 0).normalized_lines |
45 | 45 | end
|
46 | 46 | end
|
47 | 47 |
|
|
0 commit comments