From ec303bd4bceb49d9664a28570c209ab39cc2aec5 Mon Sep 17 00:00:00 2001 From: "zik.saleeba" Date: Thu, 28 May 2009 00:18:52 +0000 Subject: [PATCH] Fixed a mistake in the test case git-svn-id: http://picoc.googlecode.com/svn/trunk@299 21eae674-98b7-11dd-bd71-f92a316d2d60 --- tests/23_type_coercion.c | 2 +- tests/23_type_coercion.expect | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/23_type_coercion.c b/tests/23_type_coercion.c index 7595439..2c1ea8b 100644 --- a/tests/23_type_coercion.c +++ b/tests/23_type_coercion.c @@ -10,7 +10,7 @@ void intfunc(int a) void floatfunc(float a) { - printf("float: %d\n", a); + printf("float: %f\n", a); } charfunc('a'); diff --git a/tests/23_type_coercion.expect b/tests/23_type_coercion.expect index 89033d1..a9fb610 100644 --- a/tests/23_type_coercion.expect +++ b/tests/23_type_coercion.expect @@ -4,9 +4,9 @@ char: c int: 97 int: 98 int: 99 -float: 97 -float: 98 -float: 99 +float: 97.0 +float: 98.0 +float: 99.0 a 98 99.0 a 98 99.0 a 98 99.0