Menu

#160 testGroup replaceAt MutableBuffer - bug ID: 3290909

closed
Test cases (4)
5
2012-08-14
2012-02-06
No

this patch adds method 'test015'
::method 'test015'
self~assertSame('xyyyy', .mutablebuffer~new('xxx')~replaceAt("yyyy", 2, )~string)
self~assertSame('xyyyyx', .mutablebuffer~new('xxx')~replaceAt("yyyy", 2, 1)~string)
self~assertSame('xxxyyyy', .mutablebuffer~new('xxx')~replaceAt("yyyy", 5, , '')~string)
self~assertSame('xxxyyyy', .mutablebuffer~new('xxx')~replaceAt("yyyy", 5, 9, '')~string)
self~assertSame('xxx', .mutablebuffer~new('xyyyyx')~replaceAt("x", 2, 4)~string)

go into oorexx/test/trunk
copy patch file there, apply with
patch -p2 <replaceAt.testGroup.diff

Discussion

  • U. Zinngrebe

    U. Zinngrebe - 2012-02-06

    patch for test/trunk/ooRexx/base/class/MutableBuffer/replaceAt.testGroup

     
  • Mark Miesfeld

    Mark Miesfeld - 2012-02-06

    Thanks. I'll take a look at it.

     
  • Mark Miesfeld

    Mark Miesfeld - 2012-02-06

    It's a great help to have a test case for the bug. Thanks. I'll commit the patch tonight.

     

Anonymous
Anonymous

Add attachments
Cancel