Menu

#200 Bug in Sequence:insertAt(...)

None
assigned
None
normal
feature
Always
OCL expressions
5.2
2020-05-03
2020-05-02
No

// RIGHT
use> ! os2:= OrderedSet {2, 6, 4, 10, 8}
use> ? os2-> insertAt(3, 99)
-> OrderedSet{2,6,99,4,10,8} : OrderedSet(Integer)
use> ? os2-> insertAt(3, 99)->at(3)
-> 99 : Integer

// WRONG
use> ! sq2:= Sequence {2, 6, 4, 10, 8}
use> ? sq2-> insertAt(3, 99)
-> Sequence{2,6,4,99,10,8} : Sequence(Integer)
use> ? sq2-> insertAt(3, 99)->at(3)
-> 4 : Integer

Discussion

  • QUASAR research group

    Thanks for your attention!
    Fernando Brito e Abreu

     
  • Andreas Kaestner

    • status: new --> assigned
    • assigned_to: Andreas Kaestner
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.