From ca084bf5f3f18c2d27d1718bc991160f735a6cd1 Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Mon, 5 Jan 2015 19:00:56 -0500 Subject: [PATCH] Removed empty array initialization in unit test --- src/tests/test_utility.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/test_utility.cpp b/src/tests/test_utility.cpp index 848db8f..9e7977b 100644 --- a/src/tests/test_utility.cpp +++ b/src/tests/test_utility.cpp @@ -32,7 +32,7 @@ TEST_CASE( "LineSegment Test", "[2d primitives]" ) { int testarray1[] = {1, 2, 3, 3, 4, 5 }; int testarray2[] = {0, 2, -3, 3, -4, 5 }; - int testarray3[] = { }; + int *testarray3; REQUIRE( median(testarray1, 6) == 3 ); REQUIRE( median(testarray2, 6) == 1 ); REQUIRE( median(testarray3, 0) == 0 );