| 141 | end |
| 142 | |
| 143 | def test_diff |
| 144 | array = build_string_array(["Start", "Shutdown", "Reboot"]) |
| 145 | other_array = build_string_array(["Start", "Running", "Reboot"]) |
| 146 | assert_equal(<<-STRING.chomp, array.diff_unified(other_array)) |
| 147 | |
| 148 | @@ -1, +1 @@ |
| 149 | -"Shutdown" |
| 150 | +"Running" |
| 151 | |
| 152 | STRING |
| 153 | end |
| 154 | |
| 155 | def test_different_type |
| 156 | array = build_string_array(["Start", "Shutdown", "Reboot"]) |
nothing calls this directly
no outgoing calls
no test coverage detected