From 6c248da32159dd6b58dc3812b53e2a0c400c5185 Mon Sep 17 00:00:00 2001 From: Snaipe Date: Tue, 8 Dec 2015 01:46:49 +0100 Subject: [PATCH] Removed Theory data point generation --- samples/tests/theories_regression.c | 17 ----------------- samples/tests/theories_regression.cc | 17 ----------------- samples/theories.c | 17 ----------------- samples/theories.cc | 17 ----------------- 4 files changed, 68 deletions(-) diff --git a/samples/tests/theories_regression.c b/samples/tests/theories_regression.c index 6661f9f..bcb953e 100644 --- a/samples/tests/theories_regression.c +++ b/samples/tests/theories_regression.c @@ -33,20 +33,3 @@ Theory((char c, bool b, short s, int i, float f, double d, char *str, const char // abort to see the formatted string of all parameters cr_assert_fail(); } - -// Manually generate datapoints - -TheoryDataPoints(theory, gen) = { - DataPoints(int, 0), // placeholder -}; - -static void generate_datapoints(void) { - static int arr[] = {1, 2, 3, 4, 5}; - TheoryDataPoint(theory, gen)[0].len = 5; - TheoryDataPoint(theory, gen)[0].arr = &arr; -} - -Theory((int i), theory, gen, .init = generate_datapoints) { - (void) i; - cr_assert_fail(); // we fail to display the parameter -} diff --git a/samples/tests/theories_regression.cc b/samples/tests/theories_regression.cc index 608954f..75fdc0d 100644 --- a/samples/tests/theories_regression.cc +++ b/samples/tests/theories_regression.cc @@ -35,20 +35,3 @@ Theory((char c, bool b, short s, int i, float f, double d, char *str, const char // abort to see the formatted string of all parameters cr_assert_fail(); } - -// Manually generate datapoints - -TheoryDataPoints(theory, gen) = { - DataPoints(int, 0), // placeholder -}; - -static void generate_datapoints(void) { - static int arr[] = {1, 2, 3, 4, 5}; - TheoryDataPoint(theory, gen)[0].len = 5; - TheoryDataPoint(theory, gen)[0].arr = &arr; -} - -Theory((int i), theory, gen, .init = generate_datapoints) { - (void) i; - cr_assert_fail(); // we fail to display the parameter -} diff --git a/samples/theories.c b/samples/theories.c index c918f4a..055811f 100644 --- a/samples/theories.c +++ b/samples/theories.c @@ -105,20 +105,3 @@ Theory((char c, bool b, short s, int i, long l, long long ll, float f, double d, // abort to see the formatted string of all parameters cr_assert_fail(); } - -// Manually generate datapoints - -TheoryDataPoints(theory, gen) = { - DataPoints(int, 0), // placeholder -}; - -static void generate_datapoints(void) { - static int arr[] = {1, 2, 3, 4, 5}; - TheoryDataPoint(theory, gen)[0].len = 5; - TheoryDataPoint(theory, gen)[0].arr = &arr; -} - -Theory((int i), theory, gen, .init = generate_datapoints) { - (void) i; - cr_assert_fail(); // we fail to display the parameter -} diff --git a/samples/theories.cc b/samples/theories.cc index 4ee981b..b79cb00 100644 --- a/samples/theories.cc +++ b/samples/theories.cc @@ -113,20 +113,3 @@ Theory((char c, bool b, short s, int i, long l, long long ll, float f, double d, // abort to see the formatted string of all parameters cr_assert_fail(); } - -// Manually generate datapoints - -TheoryDataPoints(theory, gen) = { - DataPoints(int, 0), // placeholder -}; - -static void generate_datapoints(void) { - static int arr[] = {1, 2, 3, 4, 5}; - TheoryDataPoint(theory, gen)[0].len = 5; - TheoryDataPoint(theory, gen)[0].arr = &arr; -} - -Theory((int i), theory, gen, .init = generate_datapoints) { - (void) i; - cr_assert_fail(); // we fail to display the parameter -}