aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcathook <cat.hook31894@gmail.com>2013-11-26 01:28:29 +0800
committercathook <cat.hook31894@gmail.com>2013-11-26 01:28:29 +0800
commit8d1613a4055b256a03cec224880761edfca3ad3c (patch)
treea1f019d358f99d5cbac848205e135b02129c312e
parent2c8fe1a747c282964cf93fc4f54a8fe143c424b8 (diff)
downloadctl-8d1613a4055b256a03cec224880761edfca3ad3c.tar.gz
ctl-8d1613a4055b256a03cec224880761edfca3ad3c.tar.zst
ctl-8d1613a4055b256a03cec224880761edfca3ad3c.zip
test...
-rw-r--r--test/test.c9
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;