From 70d48e75d73aaad112b1e3b494a9cb310b543d6b Mon Sep 17 00:00:00 2001 From: "zik.saleeba" Date: Sun, 15 Mar 2009 09:09:38 +0000 Subject: [PATCH] Updated tests to reflect the removal of sayhello() and printint() git-svn-id: http://picoc.googlecode.com/svn/trunk@204 21eae674-98b7-11dd-bd71-f92a316d2d60 --- tests/01_comment.c | 8 ++++---- tests/03_struct.c | 4 ++-- tests/04_for.c | 2 +- tests/05_array.c | 2 +- tests/06_case.c | 8 ++++---- tests/07_function.c | 4 ++-- tests/08_while.c | 2 +- tests/09_do_while.c | 2 +- 8 files changed, 16 insertions(+), 16 deletions(-) diff --git a/tests/01_comment.c b/tests/01_comment.c index f5e1c53..6919b9e 100644 --- a/tests/01_comment.c +++ b/tests/01_comment.c @@ -1,5 +1,5 @@ -sayhello(); -sayhello(); /* this is a comment */ sayhello(); -sayhello(); +printf("Hello\n"); +printf("Hello\n"); /* this is a comment */ printf("Hello\n"); +printf("Hello\n"); // this is also a comment sayhello(); -sayhello(); +printf("Hello\n"); diff --git a/tests/03_struct.c b/tests/03_struct.c index a8dd746..e7e7c1a 100644 --- a/tests/03_struct.c +++ b/tests/03_struct.c @@ -9,5 +9,5 @@ struct fred bloggs; bloggs.boris = 12; bloggs.natasha = 34; -printint(bloggs.boris); -printint(bloggs.natasha); +printf("%d\n", bloggs.boris); +printf("%d\n", bloggs.natasha); diff --git a/tests/04_for.c b/tests/04_for.c index 97be0ff..4ce2257 100644 --- a/tests/04_for.c +++ b/tests/04_for.c @@ -2,5 +2,5 @@ int Count; for (Count = 1; Count <= 10; Count++) { - printint(Count); + printf("%d\n", Count); } diff --git a/tests/05_array.c b/tests/05_array.c index f722578..02a2883 100644 --- a/tests/05_array.c +++ b/tests/05_array.c @@ -8,5 +8,5 @@ for (Count = 1; Count <= 10; Count++) for (Count = 0; Count < 10; Count++) { - printint(Array[Count]); + printf("%d\n", Array[Count]); } diff --git a/tests/06_case.c b/tests/06_case.c index ddf6c5e..9791ea1 100644 --- a/tests/06_case.c +++ b/tests/06_case.c @@ -2,19 +2,19 @@ int Count; for (Count = 0; Count < 4; Count++) { - printint(Count); + printf("%d\n", Count); switch (Count) { case 1: - printint(1); + printf("%d\n", 1); break; case 2: - printint(2); + printf("%d\n", 2); break; default: - printint(0); + printf("%d\n", 0); break; } } diff --git a/tests/07_function.c b/tests/07_function.c index a52822d..7538945 100644 --- a/tests/07_function.c +++ b/tests/07_function.c @@ -3,8 +3,8 @@ int myfunc(int x) return x * x; } -printint(myfunc(3)); -printint(myfunc(4)); +printf("%d\n", myfunc(3)); +printf("%d\n", myfunc(4)); void vfunc(int a) { diff --git a/tests/08_while.c b/tests/08_while.c index 312615e..19fae8c 100644 --- a/tests/08_while.c +++ b/tests/08_while.c @@ -8,7 +8,7 @@ t = 0; while (a < 100) { - printint(a); + printf("%d\n", a); t = a; a = t + p; p = t; diff --git a/tests/09_do_while.c b/tests/09_do_while.c index c94984a..d9f63a7 100644 --- a/tests/09_do_while.c +++ b/tests/09_do_while.c @@ -8,7 +8,7 @@ t = 0; do { - printint(a); + printf("%d\n", a); t = a; a = t + p; p = t;