Closed h-man2 closed 2 years ago
Describe the bug The operation insertAt(index, elem) on type Sequence inserts the element elem at the wrong position:
insertAt(index, elem)
Sequence
elem
?Sequence{7,8,9}->insertAt(1,42) => Sequence{7, 42, 8, 9}
The correct position would be the first position since OCL is 1 based 🥲 :
?Sequence{7,8,9}->insertAt(1,42) => Sequence{42, 7, 8, 9}
To Reproduce Steps to reproduce the behavior:
?
Expected behavior The Element is put at the position using a 1-based Sequence instead of a 0-based one.
Integration tests should be places in t001.in
t001.in
Describe the bug The operation
insertAt(index, elem)
on typeSequence
inserts the elementelem
at the wrong position:The correct position would be the first position since OCL is 1 based 🥲 :
To Reproduce Steps to reproduce the behavior:
?
Expected behavior The Element is put at the position using a 1-based Sequence instead of a 0-based one.