From 3232effeba2bf5ddc7cce1ac8b4c9650b07c66e1 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Fri, 2 Dec 2022 01:11:11 +0100 Subject: Clean up array_ref interface; rename options.h to status.h --- source/test/unittests/array_ref.test.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source/test/unittests/array_ref.test.c') diff --git a/source/test/unittests/array_ref.test.c b/source/test/unittests/array_ref.test.c index ac572b1..c6083ee 100644 --- a/source/test/unittests/array_ref.test.c +++ b/source/test/unittests/array_ref.test.c @@ -30,8 +30,8 @@ TEST("array ref equal") { int foo[] = { 1, 2, 3, 4, 5, 6, 7 }; int bar[] = { 3, 4, 5 }; - AR(foo_ref, int) = { .size = 3, .values = foo + 2 }; - AR(bar_ref, int) = { .size = 3, .values = bar }; + AR(int) foo_ref = { .size = 3, .values = foo + 2 }; + AR(int) bar_ref = { .size = 3, .values = bar }; REQUIRE(AR_EQUAL(foo_ref, bar_ref)); } @@ -44,8 +44,8 @@ TEST("array ref compare") { int foo[] = { 1, 2, 3, 5 }; int bar[] = { 1, 2, 4, 5 }; - AR(foo_ref, int) = { .size = 3, .values = foo }; - AR(bar_ref, int) = { .size = 3, .values = bar }; + AR(int) foo_ref = { .size = 3, .values = foo }; + AR(int) bar_ref = { .size = 3, .values = bar }; REQUIRE(AR_COMPARE(foo_ref, bar_ref, compare) < 0); REQUIRE(AR_COMPARE(bar_ref, foo_ref, compare) > 0); @@ -56,8 +56,8 @@ TEST("array ref different element sizes") { int foo[] = { 1, 2, 3 }; char bar[] = { 1, 2, 3 }; - AR(foo_ref, int) = { .size = 3, .values = foo }; - AR(bar_ref, char) = { .size = 3, .values = bar }; + AR(int) foo_ref = { .size = 3, .values = foo }; + AR(char) bar_ref = { .size = 3, .values = bar }; REQUIRE(!AR_EQUAL(foo_ref, bar_ref)); REQUIRE(AR_COMPARE(foo_ref, bar_ref, compare) > 0); -- cgit v1.2.3