From e2f50b183ade5412c01639c9d32d2e22ec3a9a50 Mon Sep 17 00:00:00 2001 From: Murilo Pereira Date: Sat, 12 Feb 2011 16:00:23 -0200 Subject: [PATCH] One assert per expectation makes better error messages. --- test/frame_test.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/frame_test.c b/test/frame_test.c index c696e2b..9d71cf3 100644 --- a/test/frame_test.c +++ b/test/frame_test.c @@ -7,9 +7,10 @@ void test_initialize_frame() { allocate_frame(&frame); initialize_frame(frame); - assert(frame->shape == NULL && - frame->start_y == 0 && - frame->start_x == 0); + + assert(frame->shape == NULL); + assert(frame->start_y == 0); + assert(frame->start_x == 0); return; }