Added new speed test and minor cosmetic fixes to
other older tests. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9826 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
7c2e64a8dd
commit
597f650d02
5 changed files with 89 additions and 3 deletions
|
|
@ -26,13 +26,13 @@ sum == 'abc'
|
|||
b = s.begin # only if swig iterators are on
|
||||
e = s.end
|
||||
sum = ''
|
||||
while b != e; sum << b.next; end
|
||||
while b != e; sum << b.value; b.next; end
|
||||
sum == 'abc'
|
||||
|
||||
b = s.rbegin # only if swig iterators are on
|
||||
e = s.rend
|
||||
sum = ''
|
||||
while b != e; sum << b.next; end
|
||||
while b != e; sum << b.value; b.next; end
|
||||
sum == 'cba'
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue