aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-02-06 19:30:56 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-02-06 19:30:56 -0800
commit57dca8e14e026d8f994e61e7ee4888e5deba2ac8 (patch)
tree9eee402f7888d27e2b96ceb4b2d6fc59db63a2db /tests
parentfffcc6cfa23d2eca35679f72985ebfb9007092ac (diff)
parent647b5cf5ceb346d9eb417e250c46151cf95c12cd (diff)
Merge pull request #834 from caiiiycuk/test_memmove
Test for memmove
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runner.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 31ec06e5..ce9f0551 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -4209,6 +4209,19 @@ The current type of b is: 9
'''
self.do_run(src, 'final: -403200.');
+ def test_memmove3(self):
+ src = '''
+ #include <stdio.h>
+ #include <string.h>
+ int main() {
+ char str[] = "memmove can be vvery useful....!";
+ memmove(str+15, str+16, 17);
+ puts(str);
+ return 0;
+ }
+ '''
+ self.do_run(src, 'memmove can be very useful....!')
+
def test_bsearch(self):
if Settings.QUANTUM_SIZE == 1: return self.skip('Test cannot work with q1')