diff options
author | cathook <cat.hook31894@gmail.com> | 2013-11-26 01:28:51 +0800 |
---|---|---|
committer | cathook <cat.hook31894@gmail.com> | 2013-11-26 01:28:51 +0800 |
commit | b37b83190b0c62d7a40f526823a509766d54458b (patch) | |
tree | a1f019d358f99d5cbac848205e135b02129c312e | |
parent | 2c8fe1a747c282964cf93fc4f54a8fe143c424b8 (diff) | |
parent | 8d1613a4055b256a03cec224880761edfca3ad3c (diff) | |
download | ctl-b37b83190b0c62d7a40f526823a509766d54458b.tar.gz ctl-b37b83190b0c62d7a40f526823a509766d54458b.tar.zst ctl-b37b83190b0c62d7a40f526823a509766d54458b.zip |
Merge branch 'feature-test'
-rw-r--r-- | test/test.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test.c b/test/test.c index 81dde9c..3f25aa8 100644 --- a/test/test.c +++ b/test/test.c @@ -79,6 +79,15 @@ int main(){ printf("copy(&v2, &v1)\n"); printVector("v1", v1); printVector("v2", v2); + ctl_vector_replace(&v1, 0, 0, &v2, 2, 3); + printf("replace(&v1, 0, 0, &v2, 2, 3)\n"); + printVector("v1", v1); + ctl_vector_replace(&v1, 3, 0, &v2, 2, -3); + printf("replace(&v1, 3, 0, &v2, 2, -3)\n"); + printVector("v1", v1); + ctl_vector_replace(&v1, 0, 10, &v2, 3, -1); + printf("replace(&v1, 0, 10, &v2, 3, -1)\n"); + printVector("v1", v1); } break; |