Commit e79c009
Re-enable 4 disabled ShuntingLoop exception handling tests (#17)
* Enable previously disabled ShuntingLoop tests and improve Array2DMapTest documentation
* Update CLAUDE.md to reflect re-enabled tests
* Fix test expectation: AssertionError instead of Exception
The test constructor_minimimalContext_throwsException() was expecting
Exception::class but the code throws AssertionError at line 104 when
context.getGraph().size() is 0. Updated test to expect AssertionError
to match actual behavior and align with similar test pattern at line 92.
This follows CLAUDE.md guidance to be conservative with simulation
core changes - the assertion is intentional validation that requires
the -ea flag.
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: bedaHovorka <bedaHovorka@users.noreply.github.com>1 parent ff3ecc8 commit e79c009
3 files changed
Lines changed: 19 additions & 25 deletions
File tree
- src/test/kotlin/cz/vutbr/fit/interlockSim
- sim
- util
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
398 | | - | |
| 398 | + | |
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
| |||
1013 | 1013 | | |
1014 | 1014 | | |
1015 | 1015 | | |
1016 | | - | |
1017 | | - | |
1018 | | - | |
| 1016 | + | |
| 1017 | + | |
1019 | 1018 | | |
1020 | | - | |
| 1019 | + | |
1021 | 1020 | | |
1022 | 1021 | | |
1023 | 1022 | | |
| |||
Lines changed: 1 addition & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | 85 | | |
90 | 86 | | |
91 | 87 | | |
| |||
97 | 93 | | |
98 | 94 | | |
99 | 95 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | 96 | | |
105 | 97 | | |
106 | 98 | | |
| |||
115 | 107 | | |
116 | 108 | | |
117 | 109 | | |
118 | | - | |
| 110 | + | |
119 | 111 | | |
120 | 112 | | |
121 | 113 | | |
| |||
286 | 278 | | |
287 | 279 | | |
288 | 280 | | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | 281 | | |
294 | 282 | | |
295 | 283 | | |
| |||
308 | 296 | | |
309 | 297 | | |
310 | 298 | | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | 299 | | |
316 | 300 | | |
317 | 301 | | |
| |||
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
249 | 260 | | |
250 | | - | |
| 261 | + | |
251 | 262 | | |
252 | 263 | | |
253 | 264 | | |
| |||
256 | 267 | | |
257 | 268 | | |
258 | 269 | | |
259 | | - | |
| 270 | + | |
260 | 271 | | |
261 | 272 | | |
262 | 273 | | |
| |||
0 commit comments