Add failing test for Seq/Array atOrElse IndexOutOfBoundsException (issue #301)#305
Add failing test for Seq/Array atOrElse IndexOutOfBoundsException (issue #301)#305adamw wants to merge 1 commit into
Conversation
…eption for missing indices
|
The CI failure is a compilation error, not a test failure. The CI failure summary: Compilation fails across all Scala 2.x targets on Specific errors (repeated for Scala 2.11, 2.12, 2.13): There is also a secondary error caused by the first: Root cause: The |
Addresses #301.
The
atOrElseoperator on Seq/Array currently throwsIndexOutOfBoundsExceptionwhen accessing a missing index instead of using the provided default value. This test demonstrates the expected behavior.The test includes two cases: modifying an existing element at a valid index (current working behavior), and accessing a missing index with
atOrElsewithout throwing (expected behavior that currently fails).The actual fix implementation is pending.
Closes #301.