]> Kevux Git Server - fll/commitdiff
Update: Unit tests, fixing minor problems and adding missing functionality.
authorKevin Day <thekevinday@gmail.com>
Thu, 2 Jun 2022 04:44:06 +0000 (23:44 -0500)
committerKevin Day <thekevinday@gmail.com>
Thu, 2 Jun 2022 04:44:06 +0000 (23:44 -0500)
Many of the testfile files have "tests" when they instead should have "test".

The f_print must have a clang specific define passed to work-around a clang problem.

I noticed that I forgot to implement several "returns_data_not" unit test while writing the f_fss unit tests.
Provide these missing unit tests for the f_type_array project unit tests.
This project is my de-facto standard for basing all of my standard data type unit tests and needs to be as correct and up to date as possible.

116 files changed:
level_0/f_account/data/build/testfile
level_0/f_capability/data/build/testfile
level_0/f_color/data/build/testfile
level_0/f_console/data/build/testfile
level_0/f_control_group/data/build/testfile
level_0/f_conversion/data/build/testfile
level_0/f_directory/data/build/testfile
level_0/f_environment/data/build/testfile
level_0/f_execute/data/build/testfile
level_0/f_file/data/build/testfile
level_0/f_iki/data/build/testfile
level_0/f_limit/data/build/testfile
level_0/f_memory/data/build/testfile
level_0/f_path/data/build/testfile
level_0/f_pipe/data/build/testfile
level_0/f_print/data/build/settings-mocks
level_0/f_print/data/build/settings-tests
level_0/f_serialize/data/build/testfile
level_0/f_socket/data/build/testfile
level_0/f_status_string/data/build/testfile
level_0/f_string/data/build/testfile
level_0/f_type_array/data/build/testfile
level_0/f_type_array/tests/unit/c/test-type_array-array_lengths_decimate_by.c
level_0/f_type_array/tests/unit/c/test-type_array-array_lengths_decimate_by.h
level_0/f_type_array/tests/unit/c/test-type_array-array_lengths_decrease_by.c
level_0/f_type_array/tests/unit/c/test-type_array-array_lengths_decrease_by.h
level_0/f_type_array/tests/unit/c/test-type_array-array_lengths_increase_by.c
level_0/f_type_array/tests/unit/c/test-type_array-array_lengths_increase_by.h
level_0/f_type_array/tests/unit/c/test-type_array-cells_decimate_by.c
level_0/f_type_array/tests/unit/c/test-type_array-cells_decimate_by.h
level_0/f_type_array/tests/unit/c/test-type_array-cells_decrease_by.c
level_0/f_type_array/tests/unit/c/test-type_array-cells_decrease_by.h
level_0/f_type_array/tests/unit/c/test-type_array-cells_increase_by.c
level_0/f_type_array/tests/unit/c/test-type_array-cells_increase_by.h
level_0/f_type_array/tests/unit/c/test-type_array-cellss_append_all.c
level_0/f_type_array/tests/unit/c/test-type_array-fll_ids_decimate_by.c
level_0/f_type_array/tests/unit/c/test-type_array-fll_ids_decimate_by.h
level_0/f_type_array/tests/unit/c/test-type_array-fll_ids_decrease_by.c
level_0/f_type_array/tests/unit/c/test-type_array-fll_ids_decrease_by.h
level_0/f_type_array/tests/unit/c/test-type_array-fll_ids_increase_by.c
level_0/f_type_array/tests/unit/c/test-type_array-fll_ids_increase_by.h
level_0/f_type_array/tests/unit/c/test-type_array-int128s_decimate_by.c
level_0/f_type_array/tests/unit/c/test-type_array-int128s_decimate_by.h
level_0/f_type_array/tests/unit/c/test-type_array-int128s_decrease_by.c
level_0/f_type_array/tests/unit/c/test-type_array-int128s_decrease_by.h
level_0/f_type_array/tests/unit/c/test-type_array-int128s_increase_by.c
level_0/f_type_array/tests/unit/c/test-type_array-int128s_increase_by.h
level_0/f_type_array/tests/unit/c/test-type_array-int16s_decimate_by.c
level_0/f_type_array/tests/unit/c/test-type_array-int16s_decimate_by.h
level_0/f_type_array/tests/unit/c/test-type_array-int16s_decrease_by.c
level_0/f_type_array/tests/unit/c/test-type_array-int16s_decrease_by.h
level_0/f_type_array/tests/unit/c/test-type_array-int16s_increase_by.c
level_0/f_type_array/tests/unit/c/test-type_array-int16s_increase_by.h
level_0/f_type_array/tests/unit/c/test-type_array-int32s_decimate_by.c
level_0/f_type_array/tests/unit/c/test-type_array-int32s_decimate_by.h
level_0/f_type_array/tests/unit/c/test-type_array-int32s_decrease_by.c
level_0/f_type_array/tests/unit/c/test-type_array-int32s_decrease_by.h
level_0/f_type_array/tests/unit/c/test-type_array-int32s_increase_by.c
level_0/f_type_array/tests/unit/c/test-type_array-int32s_increase_by.h
level_0/f_type_array/tests/unit/c/test-type_array-int64s_decimate_by.c
level_0/f_type_array/tests/unit/c/test-type_array-int64s_decimate_by.h
level_0/f_type_array/tests/unit/c/test-type_array-int64s_decrease_by.c
level_0/f_type_array/tests/unit/c/test-type_array-int64s_decrease_by.h
level_0/f_type_array/tests/unit/c/test-type_array-int64s_increase_by.c
level_0/f_type_array/tests/unit/c/test-type_array-int64s_increase_by.h
level_0/f_type_array/tests/unit/c/test-type_array-int8s_decimate_by.c
level_0/f_type_array/tests/unit/c/test-type_array-int8s_decimate_by.h
level_0/f_type_array/tests/unit/c/test-type_array-int8s_decrease_by.c
level_0/f_type_array/tests/unit/c/test-type_array-int8s_decrease_by.h
level_0/f_type_array/tests/unit/c/test-type_array-int8s_increase_by.c
level_0/f_type_array/tests/unit/c/test-type_array-int8s_increase_by.h
level_0/f_type_array/tests/unit/c/test-type_array-states_decimate_by.c
level_0/f_type_array/tests/unit/c/test-type_array-states_decimate_by.h
level_0/f_type_array/tests/unit/c/test-type_array-states_decrease_by.c
level_0/f_type_array/tests/unit/c/test-type_array-states_decrease_by.h
level_0/f_type_array/tests/unit/c/test-type_array-states_increase_by.c
level_0/f_type_array/tests/unit/c/test-type_array-states_increase_by.h
level_0/f_type_array/tests/unit/c/test-type_array-statuss_decimate_by.c
level_0/f_type_array/tests/unit/c/test-type_array-statuss_decimate_by.h
level_0/f_type_array/tests/unit/c/test-type_array-statuss_decrease_by.c
level_0/f_type_array/tests/unit/c/test-type_array-statuss_decrease_by.h
level_0/f_type_array/tests/unit/c/test-type_array-statuss_increase_by.c
level_0/f_type_array/tests/unit/c/test-type_array-statuss_increase_by.h
level_0/f_type_array/tests/unit/c/test-type_array-uint128s_decimate_by.c
level_0/f_type_array/tests/unit/c/test-type_array-uint128s_decimate_by.h
level_0/f_type_array/tests/unit/c/test-type_array-uint128s_decrease_by.c
level_0/f_type_array/tests/unit/c/test-type_array-uint128s_decrease_by.h
level_0/f_type_array/tests/unit/c/test-type_array-uint128s_increase_by.c
level_0/f_type_array/tests/unit/c/test-type_array-uint128s_increase_by.h
level_0/f_type_array/tests/unit/c/test-type_array-uint128ss_adjust.h
level_0/f_type_array/tests/unit/c/test-type_array-uint16s_decimate_by.c
level_0/f_type_array/tests/unit/c/test-type_array-uint16s_decimate_by.h
level_0/f_type_array/tests/unit/c/test-type_array-uint16s_decrease_by.c
level_0/f_type_array/tests/unit/c/test-type_array-uint16s_decrease_by.h
level_0/f_type_array/tests/unit/c/test-type_array-uint16s_increase_by.c
level_0/f_type_array/tests/unit/c/test-type_array-uint16s_increase_by.h
level_0/f_type_array/tests/unit/c/test-type_array-uint32s_decimate_by.c
level_0/f_type_array/tests/unit/c/test-type_array-uint32s_decimate_by.h
level_0/f_type_array/tests/unit/c/test-type_array-uint32s_decrease_by.c
level_0/f_type_array/tests/unit/c/test-type_array-uint32s_decrease_by.h
level_0/f_type_array/tests/unit/c/test-type_array-uint32s_increase_by.c
level_0/f_type_array/tests/unit/c/test-type_array-uint32s_increase_by.h
level_0/f_type_array/tests/unit/c/test-type_array-uint64s_decimate_by.c
level_0/f_type_array/tests/unit/c/test-type_array-uint64s_decimate_by.h
level_0/f_type_array/tests/unit/c/test-type_array-uint64s_decrease_by.c
level_0/f_type_array/tests/unit/c/test-type_array-uint64s_decrease_by.h
level_0/f_type_array/tests/unit/c/test-type_array-uint64s_increase_by.c
level_0/f_type_array/tests/unit/c/test-type_array-uint64s_increase_by.h
level_0/f_type_array/tests/unit/c/test-type_array-uint8s_decimate_by.c
level_0/f_type_array/tests/unit/c/test-type_array-uint8s_decimate_by.h
level_0/f_type_array/tests/unit/c/test-type_array-uint8s_decrease_by.c
level_0/f_type_array/tests/unit/c/test-type_array-uint8s_decrease_by.h
level_0/f_type_array/tests/unit/c/test-type_array-uint8s_increase_by.c
level_0/f_type_array/tests/unit/c/test-type_array-uint8s_increase_by.h
level_0/f_type_array/tests/unit/c/test-type_array.c
level_0/f_utf/data/build/testfile

index c05a9d6..a6b28ed 100644 (file)
@@ -17,7 +17,7 @@ settings:
   #define CMOCKA_XML_FILE ./out.xml
 
 main:
-  build settings-mocks individual tests
+  build settings-mocks individual test
   build settings-tests individual test
 
   operate ld_library_path
index 56019d2..378e390 100644 (file)
@@ -17,7 +17,7 @@ settings:
   #define CMOCKA_XML_FILE ./out.xml
 
 main:
-  build settings-mocks individual tests
+  build settings-mocks individual test
   build settings-tests individual test
 
   operate ld_library_path
index 06377c2..db8792b 100644 (file)
@@ -17,7 +17,7 @@ settings:
   #define CMOCKA_XML_FILE ./out.xml
 
 main:
-  build settings-mocks individual tests
+  build settings-mocks individual test
   build settings-tests individual test
 
   operate ld_library_path
index 93b3069..ae2d4be 100644 (file)
@@ -17,7 +17,7 @@ settings:
   #define CMOCKA_XML_FILE ./out.xml
 
 main:
-  build settings individual tests
+  build settings individual test
   build settings-tests individual test
 
   operate ld_library_path
index e76ee39..331cbbc 100644 (file)
@@ -17,7 +17,7 @@ settings:
   #define CMOCKA_XML_FILE ./out.xml
 
 main:
-  build settings individual tests
+  build settings individual test
   build settings-tests individual test
 
   operate ld_library_path
index bd46076..b1b8535 100644 (file)
@@ -19,7 +19,7 @@ settings:
 main:
   # Disable mocks until mocking can be fixed for this project.
   #build settings-mocks
-  build settings individual tests
+  build settings individual test
   build settings-tests individual test
 
   operate ld_library_path
index be7af03..7c390e2 100644 (file)
@@ -17,7 +17,7 @@ settings:
   #define CMOCKA_XML_FILE ./out.xml
 
 main:
-  build settings-mocks individual tests
+  build settings-mocks individual test
   build settings-tests individual test
 
   operate ld_library_path
index 71249b7..2d488c4 100644 (file)
@@ -17,7 +17,7 @@ settings:
   #define CMOCKA_XML_FILE ./out.xml
 
 main:
-  build settings-mocks individual tests
+  build settings-mocks individual test
   build settings-tests individual test
 
   operate ld_library_path
index 619b207..510d511 100644 (file)
@@ -17,7 +17,7 @@ settings:
   #define CMOCKA_XML_FILE ./out.xml
 
 main:
-  build settings individual tests
+  build settings individual test
   build settings-tests individual test
 
   operate ld_library_path
index 1d80c52..9cd9231 100644 (file)
@@ -17,7 +17,7 @@ settings:
   #define CMOCKA_XML_FILE ./out.xml
 
 main:
-  build settings-mocks individual tests
+  build settings-mocks individual test
   build settings-tests individual test
 
   operate ld_library_path
index e3904d2..ea4a6a4 100644 (file)
@@ -17,7 +17,7 @@ settings:
   #define CMOCKA_XML_FILE ./out.xml
 
 main:
-  build settings individual tests
+  build settings individual test
   build settings-tests individual test
 
   operate ld_library_path
index d7768be..4fb065e 100644 (file)
@@ -17,7 +17,7 @@ settings:
   #define CMOCKA_XML_FILE ./out.xml
 
 main:
-  build settings-mocks individual tests
+  build settings-mocks individual test
   build settings-tests individual test
 
   operate ld_library_path
index 9921df5..7f9642d 100644 (file)
@@ -17,7 +17,7 @@ settings:
   #define CMOCKA_XML_FILE ./out.xml
 
 main:
-  build settings individual tests
+  build settings individual test
   build settings-tests individual test
 
   operate ld_library_path
index ecf21ba..a35c22d 100644 (file)
@@ -17,7 +17,7 @@ settings:
   #define CMOCKA_XML_FILE ./out.xml
 
 main:
-  build settings-mocks individual tests
+  build settings-mocks individual test
   build settings-tests individual test
 
   operate ld_library_path
index 5dcdb2c..27acfa1 100644 (file)
@@ -17,7 +17,7 @@ settings:
   #define CMOCKA_XML_FILE ./out.xml
 
 main:
-  build settings-mocks individual tests
+  build settings-mocks individual test
   build settings-tests individual test
 
   operate ld_library_path
index f52d1a5..315d136 100644 (file)
@@ -50,6 +50,8 @@ search_exclusive yes
 search_shared yes
 search_static yes
 
+defines-clang -D_clang_not_a_compile_time_constant_workaround_
+
 flags -O0 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses
 flags-clang -Wno-logical-op-parentheses
 flags-test -fstack-protector -Wall
index 3a01c8c..b3f47f8 100644 (file)
@@ -62,6 +62,7 @@ search_shared yes
 search_static yes
 
 defines -Ibuild/includes
+defines-clang -D_clang_not_a_compile_time_constant_workaround_
 defines_static -Lbuild/libraries/static
 defines_shared -Lbuild/libraries/shared
 
index 0f732c4..88c56d3 100644 (file)
@@ -17,7 +17,7 @@ settings:
   #define CMOCKA_XML_FILE ./out.xml
 
 main:
-  build settings individual tests
+  build settings individual test
   build settings-tests individual test
 
   operate ld_library_path
index 0d11af5..08abf6e 100644 (file)
@@ -17,7 +17,7 @@ settings:
   #define CMOCKA_XML_FILE ./out.xml
 
 main:
-  build settings-mocks individual tests
+  build settings-mocks individual test
   build settings-tests individual test
 
   operate ld_library_path
index a50294f..8331e2a 100644 (file)
@@ -17,7 +17,7 @@ settings:
   #define CMOCKA_XML_FILE ./out.xml
 
 main:
-  build settings individual tests
+  build settings individual test
   build settings-tests individual test
 
   operate ld_library_path
index 36f3c77..85b5e6b 100644 (file)
@@ -17,7 +17,7 @@ settings:
   #define CMOCKA_XML_FILE ./out.xml
 
 main:
-  build settings individual tests
+  build settings individual test
   build settings-tests individual test
 
   operate ld_library_path
index cc9d4d8..e2178dd 100644 (file)
@@ -17,7 +17,7 @@ settings:
   #define CMOCKA_XML_FILE ./out.xml
 
 main:
-  build settings individual tests
+  build settings individual test
   build settings-tests individual test
 
   operate ld_library_path
index 1472bbe..04d781e 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_array_lengths_decimate_by__parameter_checking(void **sta
   assert_null(data.array);
 }
 
+void test__f_type_array_array_lengths_decimate_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_array_lengths_t data = f_array_lengths_t_initialize;
+
+  {
+    const f_status_t status = f_array_lengths_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_array_lengths_decimate_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_array_lengths_decimate_by__works(void **state) {
 
   const int length = 5;
index 7816c60..df023af 100644 (file)
  */
 extern void test__f_type_array_array_lengths_decimate_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_array_lengths_decimate_by()
+ */
+extern void test__f_type_array_array_lengths_decimate_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index 0ea8d05..669eae9 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_array_lengths_decrease_by__parameter_checking(void **sta
   assert_null(data.array);
 }
 
+void test__f_type_array_array_lengths_decrease_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_array_lengths_t data = f_array_lengths_t_initialize;
+
+  {
+    const f_status_t status = f_array_lengths_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_array_lengths_decrease_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_array_lengths_decrease_by__works(void **state) {
 
   const int length = 5;
index cb533dd..9a180cc 100644 (file)
  */
 extern void test__f_type_array_array_lengths_decrease_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_array_lengths_decrease_by()
+ */
+extern void test__f_type_array_array_lengths_decrease_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index 6ffff45..0eae483 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_array_lengths_increase_by__parameter_checking(void **sta
   assert_null(data.array);
 }
 
+void test__f_type_array_array_lengths_increase_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_array_lengths_t data = f_array_lengths_t_initialize;
+
+  {
+    const f_status_t status = f_array_lengths_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_array_lengths_increase_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_array_lengths_increase_by__works(void **state) {
 
   const int length = 5;
index 9f9daaf..955cb18 100644 (file)
  */
 extern void test__f_type_array_array_lengths_increase_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_array_lengths_increase_by()
+ */
+extern void test__f_type_array_array_lengths_increase_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index 45cf6e9..072ba7f 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_cells_decimate_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_cells_decimate_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_cells_t data = f_cells_t_initialize;
+
+  {
+    const f_status_t status = f_cells_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_cells_decimate_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_cells_decimate_by__works(void **state) {
 
   const int length = 5;
index a3abba2..3a4ec69 100644 (file)
  */
 extern void test__f_type_array_cells_decimate_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_cells_decimate_by()
+ */
+extern void test__f_type_array_cells_decimate_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index 7cd12b1..5f50154 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_cells_decrease_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_cells_decrease_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_cells_t data = f_cells_t_initialize;
+
+  {
+    const f_status_t status = f_cells_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_cells_decrease_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_cells_decrease_by__works(void **state) {
 
   const int length = 5;
index 71c3e23..02b621d 100644 (file)
  */
 extern void test__f_type_array_cells_decrease_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_cells_decrease_by()
+ */
+extern void test__f_type_array_cells_decrease_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index debeb96..7ae85cb 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_cells_increase_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_cells_increase_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_cells_t data = f_cells_t_initialize;
+
+  {
+    const f_status_t status = f_cells_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_cells_increase_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_cells_increase_by__works(void **state) {
 
   const int length = 5;
index 896175e..558b422 100644 (file)
  */
 extern void test__f_type_array_cells_increase_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_cells_increase_by()
+ */
+extern void test__f_type_array_cells_increase_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index 8ffe297..e219131 100644 (file)
@@ -5,6 +5,17 @@
 extern "C" {
 #endif
 
+void test__f_type_array_cellss_append_all__parameter_checking(void **state) {
+
+  const f_cellss_t data = f_cellss_t_initialize;
+
+  {
+    const f_status_t status = f_cellss_append_all(data, 0);
+
+    assert_int_equal(status, F_status_set_error(F_parameter));
+  }
+}
+
 void test__f_type_array_cellss_append_all__returns_data_not(void **state) {
 
   const int length = 5;
@@ -31,17 +42,6 @@ void test__f_type_array_cellss_append_all__returns_data_not(void **state) {
   free((void *) source.array);
 }
 
-void test__f_type_array_cellss_append_all__parameter_checking(void **state) {
-
-  const f_cellss_t data = f_cellss_t_initialize;
-
-  {
-    const f_status_t status = f_cellss_append_all(data, 0);
-
-    assert_int_equal(status, F_status_set_error(F_parameter));
-  }
-}
-
 void test__f_type_array_cellss_append_all__works(void **state) {
 
   const int length = 5;
index fdc5138..85b5228 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_fll_ids_decimate_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_fll_ids_decimate_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_fll_ids_t data = f_fll_ids_t_initialize;
+
+  {
+    const f_status_t status = f_fll_ids_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_fll_ids_decimate_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_fll_ids_decimate_by__works(void **state) {
 
   const int length = 5;
index 81a721f..e65ed8f 100644 (file)
  */
 extern void test__f_type_array_fll_ids_decimate_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_fll_ids_decimate_by()
+ */
+extern void test__f_type_array_fll_ids_decimate_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index a55df2d..6815c0c 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_fll_ids_decrease_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_fll_ids_decrease_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_fll_ids_t data = f_fll_ids_t_initialize;
+
+  {
+    const f_status_t status = f_fll_ids_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_fll_ids_decrease_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_fll_ids_decrease_by__works(void **state) {
 
   const int length = 5;
index 568cd13..eac27d8 100644 (file)
  */
 extern void test__f_type_array_fll_ids_decrease_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_fll_ids_decrease_by()
+ */
+extern void test__f_type_array_fll_ids_decrease_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index 9faef89..e95bab0 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_fll_ids_increase_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_fll_ids_increase_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_fll_ids_t data = f_fll_ids_t_initialize;
+
+  {
+    const f_status_t status = f_fll_ids_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_fll_ids_increase_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_fll_ids_increase_by__works(void **state) {
 
   const int length = 5;
index c60ae68..513e6bc 100644 (file)
  */
 extern void test__f_type_array_fll_ids_increase_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_fll_ids_increase_by()
+ */
+extern void test__f_type_array_fll_ids_increase_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index 3d4ed91..9a655aa 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_int128s_decimate_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_int128s_decimate_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_int128s_t data = f_int128s_t_initialize;
+
+  {
+    const f_status_t status = f_int128s_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_int128s_decimate_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_int128s_decimate_by__works(void **state) {
 
   const int length = 5;
index 62689ba..ec15349 100644 (file)
  */
 extern void test__f_type_array_int128s_decimate_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_int128s_decimate_by()
+ */
+extern void test__f_type_array_int128s_decimate_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index bc7831b..5039bf9 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_int128s_decrease_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_int128s_decrease_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_int128s_t data = f_int128s_t_initialize;
+
+  {
+    const f_status_t status = f_int128s_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_int128s_decrease_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_int128s_decrease_by__works(void **state) {
 
   const int length = 5;
index 3dd881a..cd62483 100644 (file)
  */
 extern void test__f_type_array_int128s_decrease_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_int128s_decrease_by()
+ */
+extern void test__f_type_array_int128s_decrease_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index 059d196..d74b84d 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_int128s_increase_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_int128s_increase_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_int128s_t data = f_int128s_t_initialize;
+
+  {
+    const f_status_t status = f_int128s_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_int128s_increase_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_int128s_increase_by__works(void **state) {
 
   const int length = 5;
index 77c8b26..4536a2a 100644 (file)
  */
 extern void test__f_type_array_int128s_increase_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_int128s_increase_by()
+ */
+extern void test__f_type_array_int128s_increase_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index fc67c90..a8f4dd1 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_int16s_decimate_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_int16s_decimate_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_int16s_t data = f_int16s_t_initialize;
+
+  {
+    const f_status_t status = f_int16s_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_int16s_decimate_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_int16s_decimate_by__works(void **state) {
 
   const int length = 5;
index 4341b06..8c0930f 100644 (file)
  */
 extern void test__f_type_array_int16s_decimate_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_int16s_decimate_by()
+ */
+extern void test__f_type_array_int16s_decimate_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index b4ac659..a25efbd 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_int16s_decrease_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_int16s_decrease_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_int16s_t data = f_int16s_t_initialize;
+
+  {
+    const f_status_t status = f_int16s_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_int16s_decrease_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_int16s_decrease_by__works(void **state) {
 
   const int length = 5;
index 695b227..933deec 100644 (file)
  */
 extern void test__f_type_array_int16s_decrease_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_int16s_decrease_by()
+ */
+extern void test__f_type_array_int16s_decrease_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index e33b5a4..e1d7d72 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_int16s_increase_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_int16s_increase_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_int16s_t data = f_int16s_t_initialize;
+
+  {
+    const f_status_t status = f_int16s_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_int16s_increase_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_int16s_increase_by__works(void **state) {
 
   const int length = 5;
index 575753f..124301a 100644 (file)
  */
 extern void test__f_type_array_int16s_increase_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_int16s_increase_by()
+ */
+extern void test__f_type_array_int16s_increase_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index c7ad479..7b6c326 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_int32s_decimate_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_int32s_decimate_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_int32s_t data = f_int32s_t_initialize;
+
+  {
+    const f_status_t status = f_int32s_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_int32s_decimate_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_int32s_decimate_by__works(void **state) {
 
   const int length = 5;
index f6e6e0d..346fb84 100644 (file)
  */
 extern void test__f_type_array_int32s_decimate_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_int32s_decimate_by()
+ */
+extern void test__f_type_array_int32s_decimate_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index 0eec161..3bfb171 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_int32s_decrease_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_int32s_decrease_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_int32s_t data = f_int32s_t_initialize;
+
+  {
+    const f_status_t status = f_int32s_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_int32s_decrease_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_int32s_decrease_by__works(void **state) {
 
   const int length = 5;
index 93be3e1..05f81d2 100644 (file)
  */
 extern void test__f_type_array_int32s_decrease_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_int32s_decrease_by()
+ */
+extern void test__f_type_array_int32s_decrease_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index 2f609af..f7ee04a 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_int32s_increase_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_int32s_increase_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_int32s_t data = f_int32s_t_initialize;
+
+  {
+    const f_status_t status = f_int32s_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_int32s_increase_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_int32s_increase_by__works(void **state) {
 
   const int length = 5;
index 0f7ea16..7124ba6 100644 (file)
  */
 extern void test__f_type_array_int32s_increase_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_int32s_increase_by()
+ */
+extern void test__f_type_array_int32s_increase_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index a5be8d8..272d080 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_int64s_decimate_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_int64s_decimate_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_int64s_t data = f_int64s_t_initialize;
+
+  {
+    const f_status_t status = f_int64s_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_int64s_decimate_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_int64s_decimate_by__works(void **state) {
 
   const int length = 5;
index feeb67d..e734e73 100644 (file)
  */
 extern void test__f_type_array_int64s_decimate_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_int64s_decimate_by()
+ */
+extern void test__f_type_array_int64s_decimate_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index 581f31e..83c4907 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_int64s_decrease_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_int64s_decrease_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_int64s_t data = f_int64s_t_initialize;
+
+  {
+    const f_status_t status = f_int64s_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_int64s_decrease_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_int64s_decrease_by__works(void **state) {
 
   const int length = 5;
index 4c3511c..da5afd2 100644 (file)
  */
 extern void test__f_type_array_int64s_decrease_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_int64s_decrease_by()
+ */
+extern void test__f_type_array_int64s_decrease_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index 2ce8ad6..a45c56f 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_int64s_increase_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_int64s_increase_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_int64s_t data = f_int64s_t_initialize;
+
+  {
+    const f_status_t status = f_int64s_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_int64s_increase_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_int64s_increase_by__works(void **state) {
 
   const int length = 5;
index fa02bad..939a1b9 100644 (file)
  */
 extern void test__f_type_array_int64s_increase_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_int64s_increase_by()
+ */
+extern void test__f_type_array_int64s_increase_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index 19cd308..2bf8d35 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_int8s_decimate_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_int8s_decimate_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_int8s_t data = f_int8s_t_initialize;
+
+  {
+    const f_status_t status = f_int8s_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_int8s_decimate_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_int8s_decimate_by__works(void **state) {
 
   const int length = 5;
index a73804b..a685914 100644 (file)
  */
 extern void test__f_type_array_int8s_decimate_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_int8s_decimate_by()
+ */
+extern void test__f_type_array_int8s_decimate_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index 1565014..79ba587 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_int8s_decrease_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_int8s_decrease_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_int8s_t data = f_int8s_t_initialize;
+
+  {
+    const f_status_t status = f_int8s_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_int8s_decrease_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_int8s_decrease_by__works(void **state) {
 
   const int length = 5;
index edba0a3..4e98750 100644 (file)
  */
 extern void test__f_type_array_int8s_decrease_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_int8s_decrease_by()
+ */
+extern void test__f_type_array_int8s_decrease_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index 6b02221..6e9445c 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_int8s_increase_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_int8s_increase_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_int8s_t data = f_int8s_t_initialize;
+
+  {
+    const f_status_t status = f_int8s_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_int8s_increase_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_int8s_increase_by__works(void **state) {
 
   const int length = 5;
index 9934fed..d7a7f13 100644 (file)
  */
 extern void test__f_type_array_int8s_increase_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_int8s_increase_by()
+ */
+extern void test__f_type_array_int8s_increase_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index e74f0b7..363cc27 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_states_decimate_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_states_decimate_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_states_t data = f_states_t_initialize;
+
+  {
+    const f_status_t status = f_states_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_states_decimate_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_states_decimate_by__works(void **state) {
 
   const int length = 5;
index 7c983cd..e09c666 100644 (file)
  */
 extern void test__f_type_array_states_decimate_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_states_decimate_by()
+ */
+extern void test__f_type_array_states_decimate_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index 1b15b17..6ecf14f 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_states_decrease_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_states_decrease_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_states_t data = f_states_t_initialize;
+
+  {
+    const f_status_t status = f_states_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_states_decrease_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_states_decrease_by__works(void **state) {
 
   const int length = 5;
index d79921a..3c0bc1e 100644 (file)
  */
 extern void test__f_type_array_states_decrease_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_states_decrease_by()
+ */
+extern void test__f_type_array_states_decrease_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index 3cfc0b9..ae7f311 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_states_increase_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_states_increase_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_states_t data = f_states_t_initialize;
+
+  {
+    const f_status_t status = f_states_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_states_increase_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_states_increase_by__works(void **state) {
 
   const int length = 5;
index 1b1011f..faf7e6d 100644 (file)
  */
 extern void test__f_type_array_states_increase_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_states_increase_by()
+ */
+extern void test__f_type_array_states_increase_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index 479f129..961dc76 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_statuss_decimate_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_statuss_decimate_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_statuss_t data = f_statuss_t_initialize;
+
+  {
+    const f_status_t status = f_statuss_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_statuss_decimate_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_statuss_decimate_by__works(void **state) {
 
   const int length = 5;
index f999d0c..c674222 100644 (file)
  */
 extern void test__f_type_array_statuss_decimate_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_statuss_decimate_by()
+ */
+extern void test__f_type_array_statuss_decimate_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index 1c92e8d..449c3f9 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_statuss_decrease_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_statuss_decrease_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_statuss_t data = f_statuss_t_initialize;
+
+  {
+    const f_status_t status = f_statuss_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_statuss_decrease_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_statuss_decrease_by__works(void **state) {
 
   const int length = 5;
index 523c47c..3ddc5e0 100644 (file)
  */
 extern void test__f_type_array_statuss_decrease_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_statuss_decrease_by()
+ */
+extern void test__f_type_array_statuss_decrease_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index 5cc7bd6..5585c17 100644 (file)
@@ -22,6 +22,30 @@ void test__f_type_array_statuss_increase_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_statuss_increase_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_statuss_t data = f_statuss_t_initialize;
+
+  {
+    const f_status_t status = f_statuss_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_statuss_increase_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_statuss_increase_by__works(void **state) {
 
   const int length = 5;
index 0bed939..41fe6f0 100644 (file)
  */
 extern void test__f_type_array_statuss_increase_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_statuss_increase_by()
+ */
+extern void test__f_type_array_statuss_increase_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index 256d110..14b4f66 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_uint128s_decimate_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_uint128s_decimate_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_uint128s_t data = f_uint128s_t_initialize;
+
+  {
+    const f_status_t status = f_uint128s_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_uint128s_decimate_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_uint128s_decimate_by__works(void **state) {
 
   const int length = 5;
index bccbada..02bf1a5 100644 (file)
  */
 extern void test__f_type_array_uint128s_decimate_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_uint128s_decimate_by()
+ */
+extern void test__f_type_array_uint128s_decimate_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index a632272..11025d1 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_uint128s_decrease_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_uint128s_decrease_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_uint128s_t data = f_uint128s_t_initialize;
+
+  {
+    const f_status_t status = f_uint128s_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_uint128s_decrease_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_uint128s_decrease_by__works(void **state) {
 
   const int length = 5;
index a3e3b81..82f63fb 100644 (file)
  */
 extern void test__f_type_array_uint128s_decrease_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_uint128s_decrease_by()
+ */
+extern void test__f_type_array_uint128s_decrease_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index 8a3424d..6be1eba 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_uint128s_increase_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_uint128s_increase_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_uint128s_t data = f_uint128s_t_initialize;
+
+  {
+    const f_status_t status = f_uint128s_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_uint128s_increase_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_uint128s_increase_by__works(void **state) {
 
   const int length = 5;
index 9200183..10ef9af 100644 (file)
  */
 extern void test__f_type_array_uint128s_increase_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_uint128s_increase_by()
+ */
+extern void test__f_type_array_uint128s_increase_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index 75f000a..02cfc42 100644 (file)
  */
 extern void test__f_type_array_uint128ss_adjust__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_uint128ss_increase_by()
+ */
+extern void test__f_type_array_uint128ss_increase_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index 7a9020b..4c4c0b9 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_uint16s_decimate_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_uint16s_decimate_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_uint16s_t data = f_uint16s_t_initialize;
+
+  {
+    const f_status_t status = f_uint16s_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_uint16s_decimate_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_uint16s_decimate_by__works(void **state) {
 
   const int length = 5;
index 90ab5fd..f1f9ac5 100644 (file)
  */
 extern void test__f_type_array_uint16s_decimate_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_uint16s_decimate_by()
+ */
+extern void test__f_type_array_uint16s_decimate_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index 00979b4..9c0ffe0 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_uint16s_decrease_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_uint16s_decrease_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_uint16s_t data = f_uint16s_t_initialize;
+
+  {
+    const f_status_t status = f_uint16s_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_uint16s_decrease_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_uint16s_decrease_by__works(void **state) {
 
   const int length = 5;
index c2ab789..6390a2f 100644 (file)
  */
 extern void test__f_type_array_uint16s_decrease_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_uint16s_decrease_by()
+ */
+extern void test__f_type_array_uint16s_decrease_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index 1784d06..8da3d3e 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_uint16s_increase_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_uint16s_increase_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_uint16s_t data = f_uint16s_t_initialize;
+
+  {
+    const f_status_t status = f_uint16s_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_uint16s_increase_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_uint16s_increase_by__works(void **state) {
 
   const int length = 5;
index 5d7f3e2..dc6168c 100644 (file)
  */
 extern void test__f_type_array_uint16s_increase_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_uint16s_increase_by()
+ */
+extern void test__f_type_array_uint16s_increase_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index 5fc0dc4..f73028a 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_uint32s_decimate_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_uint32s_decimate_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_uint32s_t data = f_uint32s_t_initialize;
+
+  {
+    const f_status_t status = f_uint32s_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_uint32s_decimate_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_uint32s_decimate_by__works(void **state) {
 
   const int length = 5;
index e76bc60..3c0c592 100644 (file)
  */
 extern void test__f_type_array_uint32s_decimate_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_uint32s_decimate_by()
+ */
+extern void test__f_type_array_uint32s_decimate_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index 207d384..eff4ffa 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_uint32s_decrease_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_uint32s_decrease_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_uint32s_t data = f_uint32s_t_initialize;
+
+  {
+    const f_status_t status = f_uint32s_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_uint32s_decrease_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_uint32s_decrease_by__works(void **state) {
 
   const int length = 5;
index bf74dcb..e1cddc5 100644 (file)
  */
 extern void test__f_type_array_uint32s_decrease_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_uint32s_decrease_by()
+ */
+extern void test__f_type_array_uint32s_decrease_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index 8d42d04..a05c1d2 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_uint32s_increase_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_uint32s_increase_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_uint32s_t data = f_uint32s_t_initialize;
+
+  {
+    const f_status_t status = f_uint32s_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_uint32s_increase_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_uint32s_increase_by__works(void **state) {
 
   const int length = 5;
index 9b6dd45..53e5e41 100644 (file)
  */
 extern void test__f_type_array_uint32s_increase_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_uint32s_increase_by()
+ */
+extern void test__f_type_array_uint32s_increase_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index 0353292..92109ee 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_uint64s_decimate_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_uint64s_decimate_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_uint64s_t data = f_uint64s_t_initialize;
+
+  {
+    const f_status_t status = f_uint64s_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_uint64s_decimate_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_uint64s_decimate_by__works(void **state) {
 
   const int length = 5;
index 6ab6f11..18e1bfd 100644 (file)
  */
 extern void test__f_type_array_uint64s_decimate_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_uint64s_decimate_by()
+ */
+extern void test__f_type_array_uint64s_decimate_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index 35d7845..018c1c8 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_uint64s_decrease_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_uint64s_decrease_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_uint64s_t data = f_uint64s_t_initialize;
+
+  {
+    const f_status_t status = f_uint64s_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_uint64s_decrease_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_uint64s_decrease_by__works(void **state) {
 
   const int length = 5;
index c862c30..024d929 100644 (file)
  */
 extern void test__f_type_array_uint64s_decrease_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_uint64s_decrease_by()
+ */
+extern void test__f_type_array_uint64s_decrease_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index f3ef9ea..a16d82c 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_uint64s_increase_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_uint64s_increase_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_uint64s_t data = f_uint64s_t_initialize;
+
+  {
+    const f_status_t status = f_uint64s_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_uint64s_increase_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_uint64s_increase_by__works(void **state) {
 
   const int length = 5;
index 60e4e77..573065c 100644 (file)
  */
 extern void test__f_type_array_uint64s_increase_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_uint64s_increase_by()
+ */
+extern void test__f_type_array_uint64s_increase_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index 2d3a21a..99e1319 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_uint8s_decimate_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_uint8s_decimate_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_uint8s_t data = f_uint8s_t_initialize;
+
+  {
+    const f_status_t status = f_uint8s_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_uint8s_decimate_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_uint8s_decimate_by__works(void **state) {
 
   const int length = 5;
index 709cec4..cd88cae 100644 (file)
  */
 extern void test__f_type_array_uint8s_decimate_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_uint8s_decimate_by()
+ */
+extern void test__f_type_array_uint8s_decimate_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index 7b12e59..ead28f5 100644 (file)
@@ -21,6 +21,30 @@ void test__f_type_array_uint8s_decrease_by__parameter_checking(void **state) {
   assert_null(data.array);
 }
 
+void test__f_type_array_uint8s_decrease_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_uint8s_t data = f_uint8s_t_initialize;
+
+  {
+    const f_status_t status = f_uint8s_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_uint8s_decrease_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_uint8s_decrease_by__works(void **state) {
 
   const int length = 5;
index c73f24e..0349f1b 100644 (file)
  */
 extern void test__f_type_array_uint8s_decrease_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_uint8s_decrease_by()
+ */
+extern void test__f_type_array_uint8s_decrease_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index 98a32b2..29ac46d 100644 (file)
@@ -21,6 +21,31 @@ void test__f_type_array_uint8s_increase_by__parameter_checking(void **state) {
 
   assert_null(data.array);
 }
+
+void test__f_type_array_uint8s_increase_by__returns_data_not(void **state) {
+
+  const int length = 5;
+  f_uint8s_t data = f_uint8s_t_initialize;
+
+  {
+    const f_status_t status = f_uint8s_resize(length, &data);
+
+    assert_int_equal(status, F_none);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  {
+    const f_status_t status = f_uint8s_increase_by(0, &data);
+
+    assert_int_equal(status, F_data_not);
+    assert_int_equal(data.used, 0);
+    assert_int_equal(data.size, length);
+  }
+
+  free((void *) data.array);
+}
+
 void test__f_type_array_uint8s_increase_by__works(void **state) {
 
   const int length = 5;
index 7ac98eb..941191b 100644 (file)
  */
 extern void test__f_type_array_uint8s_increase_by__parameter_checking(void **state);
 
+/**
+ * Test that the function returns F_data_not.
+ *
+ * @see f_uint8s_increase_by()
+ */
+extern void test__f_type_array_uint8s_increase_by__returns_data_not(void **state);
+
 /**
  * Test that the function works.
  *
index 15ee245..8e4b8bf 100644 (file)
@@ -17,6 +17,12 @@ int setdown(void **state) {
 int main(void) {
 
   const struct CMUnitTest tests[] = {
+    cmocka_unit_test(test__f_type_array_array_lengths_append_all__returns_data_not),
+    cmocka_unit_test(test__f_type_array_array_lengths_decimate_by__returns_data_not),
+    cmocka_unit_test(test__f_type_array_array_lengths_decrease_by__returns_data_not),
+    cmocka_unit_test(test__f_type_array_array_lengths_increase__returns_data_not),
+    cmocka_unit_test(test__f_type_array_array_lengths_increase_by__returns_data_not),
+
     cmocka_unit_test(test__f_type_array_array_lengths_adjust__works),
     cmocka_unit_test(test__f_type_array_array_lengths_append__works),
     cmocka_unit_test(test__f_type_array_array_lengths_append_all__works),
@@ -42,6 +48,12 @@ int main(void) {
     cmocka_unit_test(test__f_type_array_array_lengthss_increase_by__works),
     cmocka_unit_test(test__f_type_array_array_lengthss_resize__works),
 
+    cmocka_unit_test(test__f_type_array_cells_append_all__returns_data_not),
+    cmocka_unit_test(test__f_type_array_cells_decimate_by__returns_data_not),
+    cmocka_unit_test(test__f_type_array_cells_decrease_by__returns_data_not),
+    cmocka_unit_test(test__f_type_array_cells_increase__returns_data_not),
+    cmocka_unit_test(test__f_type_array_cells_increase_by__returns_data_not),
+
     cmocka_unit_test(test__f_type_array_cells_adjust__works),
     cmocka_unit_test(test__f_type_array_cells_append__works),
     cmocka_unit_test(test__f_type_array_cells_append_all__works),
@@ -67,6 +79,12 @@ int main(void) {
     cmocka_unit_test(test__f_type_array_cellss_increase_by__works),
     cmocka_unit_test(test__f_type_array_cellss_resize__works),
 
+    cmocka_unit_test(test__f_type_array_fll_ids_append_all__returns_data_not),
+    cmocka_unit_test(test__f_type_array_fll_ids_decimate_by__returns_data_not),
+    cmocka_unit_test(test__f_type_array_fll_ids_decrease_by__returns_data_not),
+    cmocka_unit_test(test__f_type_array_fll_ids_increase__returns_data_not),
+    cmocka_unit_test(test__f_type_array_fll_ids_increase_by__returns_data_not),
+
     cmocka_unit_test(test__f_type_array_fll_ids_adjust__works),
     cmocka_unit_test(test__f_type_array_fll_ids_append__works),
     cmocka_unit_test(test__f_type_array_fll_ids_append_all__works),
@@ -92,6 +110,12 @@ int main(void) {
     cmocka_unit_test(test__f_type_array_fll_idss_increase_by__works),
     cmocka_unit_test(test__f_type_array_fll_idss_resize__works),
 
+    cmocka_unit_test(test__f_type_array_int8s_append_all__returns_data_not),
+    cmocka_unit_test(test__f_type_array_int8s_decimate_by__returns_data_not),
+    cmocka_unit_test(test__f_type_array_int8s_decrease_by__returns_data_not),
+    cmocka_unit_test(test__f_type_array_int8s_increase__returns_data_not),
+    cmocka_unit_test(test__f_type_array_int8s_increase_by__returns_data_not),
+
     cmocka_unit_test(test__f_type_array_int8s_adjust__works),
     cmocka_unit_test(test__f_type_array_int8s_append__works),
     cmocka_unit_test(test__f_type_array_int8s_append_all__works),
@@ -117,6 +141,12 @@ int main(void) {
     cmocka_unit_test(test__f_type_array_int8ss_increase_by__works),
     cmocka_unit_test(test__f_type_array_int8ss_resize__works),
 
+    cmocka_unit_test(test__f_type_array_int16s_append_all__returns_data_not),
+    cmocka_unit_test(test__f_type_array_int16s_decimate_by__returns_data_not),
+    cmocka_unit_test(test__f_type_array_int16s_decrease_by__returns_data_not),
+    cmocka_unit_test(test__f_type_array_int16s_increase__returns_data_not),
+    cmocka_unit_test(test__f_type_array_int16s_increase_by__returns_data_not),
+
     cmocka_unit_test(test__f_type_array_int16s_adjust__works),
     cmocka_unit_test(test__f_type_array_int16s_append__works),
     cmocka_unit_test(test__f_type_array_int16s_append_all__works),
@@ -142,6 +172,12 @@ int main(void) {
     cmocka_unit_test(test__f_type_array_int16ss_increase_by__works),
     cmocka_unit_test(test__f_type_array_int16ss_resize__works),
 
+    cmocka_unit_test(test__f_type_array_int32s_append_all__returns_data_not),
+    cmocka_unit_test(test__f_type_array_int32s_decimate_by__returns_data_not),
+    cmocka_unit_test(test__f_type_array_int32s_decrease_by__returns_data_not),
+    cmocka_unit_test(test__f_type_array_int32s_increase__returns_data_not),
+    cmocka_unit_test(test__f_type_array_int32s_increase_by__returns_data_not),
+
     cmocka_unit_test(test__f_type_array_int32s_adjust__works),
     cmocka_unit_test(test__f_type_array_int32s_append__works),
     cmocka_unit_test(test__f_type_array_int32s_append_all__works),
@@ -167,6 +203,12 @@ int main(void) {
     cmocka_unit_test(test__f_type_array_int32ss_increase_by__works),
     cmocka_unit_test(test__f_type_array_int32ss_resize__works),
 
+    cmocka_unit_test(test__f_type_array_int64s_append_all__returns_data_not),
+    cmocka_unit_test(test__f_type_array_int64s_decimate_by__returns_data_not),
+    cmocka_unit_test(test__f_type_array_int64s_decrease_by__returns_data_not),
+    cmocka_unit_test(test__f_type_array_int64s_increase__returns_data_not),
+    cmocka_unit_test(test__f_type_array_int64s_increase_by__returns_data_not),
+
     cmocka_unit_test(test__f_type_array_int64s_adjust__works),
     cmocka_unit_test(test__f_type_array_int64s_append__works),
     cmocka_unit_test(test__f_type_array_int64s_append_all__works),
@@ -192,6 +234,12 @@ int main(void) {
     cmocka_unit_test(test__f_type_array_int64ss_increase_by__works),
     cmocka_unit_test(test__f_type_array_int64ss_resize__works),
 
+    cmocka_unit_test(test__f_type_array_int128s_append_all__returns_data_not),
+    cmocka_unit_test(test__f_type_array_int128s_decimate_by__returns_data_not),
+    cmocka_unit_test(test__f_type_array_int128s_decrease_by__returns_data_not),
+    cmocka_unit_test(test__f_type_array_int128s_increase__returns_data_not),
+    cmocka_unit_test(test__f_type_array_int128s_increase_by__returns_data_not),
+
     cmocka_unit_test(test__f_type_array_int128s_adjust__works),
     cmocka_unit_test(test__f_type_array_int128s_append__works),
     cmocka_unit_test(test__f_type_array_int128s_append_all__works),
@@ -217,6 +265,12 @@ int main(void) {
     cmocka_unit_test(test__f_type_array_int128ss_increase_by__works),
     cmocka_unit_test(test__f_type_array_int128ss_resize__works),
 
+    cmocka_unit_test(test__f_type_array_states_append_all__returns_data_not),
+    cmocka_unit_test(test__f_type_array_states_decimate_by__returns_data_not),
+    cmocka_unit_test(test__f_type_array_states_decrease_by__returns_data_not),
+    cmocka_unit_test(test__f_type_array_states_increase__returns_data_not),
+    cmocka_unit_test(test__f_type_array_states_increase_by__returns_data_not),
+
     cmocka_unit_test(test__f_type_array_states_adjust__works),
     cmocka_unit_test(test__f_type_array_states_append__works),
     cmocka_unit_test(test__f_type_array_states_append_all__works),
@@ -242,6 +296,12 @@ int main(void) {
     cmocka_unit_test(test__f_type_array_statess_increase_by__works),
     cmocka_unit_test(test__f_type_array_statess_resize__works),
 
+    cmocka_unit_test(test__f_type_array_statuss_append_all__returns_data_not),
+    cmocka_unit_test(test__f_type_array_statuss_decimate_by__returns_data_not),
+    cmocka_unit_test(test__f_type_array_statuss_decrease_by__returns_data_not),
+    cmocka_unit_test(test__f_type_array_statuss_increase__returns_data_not),
+    cmocka_unit_test(test__f_type_array_statuss_increase_by__returns_data_not),
+
     cmocka_unit_test(test__f_type_array_statuss_adjust__works),
     cmocka_unit_test(test__f_type_array_statuss_append__works),
     cmocka_unit_test(test__f_type_array_statuss_append_all__works),
@@ -267,6 +327,12 @@ int main(void) {
     cmocka_unit_test(test__f_type_array_statusss_increase_by__works),
     cmocka_unit_test(test__f_type_array_statusss_resize__works),
 
+    cmocka_unit_test(test__f_type_array_uint8s_append_all__returns_data_not),
+    cmocka_unit_test(test__f_type_array_uint8s_decimate_by__returns_data_not),
+    cmocka_unit_test(test__f_type_array_uint8s_decrease_by__returns_data_not),
+    cmocka_unit_test(test__f_type_array_uint8s_increase__returns_data_not),
+    cmocka_unit_test(test__f_type_array_uint8s_increase_by__returns_data_not),
+
     cmocka_unit_test(test__f_type_array_uint8s_adjust__works),
     cmocka_unit_test(test__f_type_array_uint8s_append__works),
     cmocka_unit_test(test__f_type_array_uint8s_append_all__works),
@@ -292,6 +358,12 @@ int main(void) {
     cmocka_unit_test(test__f_type_array_uint8ss_increase_by__works),
     cmocka_unit_test(test__f_type_array_uint8ss_resize__works),
 
+    cmocka_unit_test(test__f_type_array_uint16s_append_all__returns_data_not),
+    cmocka_unit_test(test__f_type_array_uint16s_decimate_by__returns_data_not),
+    cmocka_unit_test(test__f_type_array_uint16s_decrease_by__returns_data_not),
+    cmocka_unit_test(test__f_type_array_uint16s_increase__returns_data_not),
+    cmocka_unit_test(test__f_type_array_uint16s_increase_by__returns_data_not),
+
     cmocka_unit_test(test__f_type_array_uint16s_adjust__works),
     cmocka_unit_test(test__f_type_array_uint16s_append__works),
     cmocka_unit_test(test__f_type_array_uint16s_append_all__works),
@@ -317,6 +389,12 @@ int main(void) {
     cmocka_unit_test(test__f_type_array_uint16ss_increase_by__works),
     cmocka_unit_test(test__f_type_array_uint16ss_resize__works),
 
+    cmocka_unit_test(test__f_type_array_uint32s_append_all__returns_data_not),
+    cmocka_unit_test(test__f_type_array_uint32s_decimate_by__returns_data_not),
+    cmocka_unit_test(test__f_type_array_uint32s_decrease_by__returns_data_not),
+    cmocka_unit_test(test__f_type_array_uint32s_increase__returns_data_not),
+    cmocka_unit_test(test__f_type_array_uint32s_increase_by__returns_data_not),
+
     cmocka_unit_test(test__f_type_array_uint32s_adjust__works),
     cmocka_unit_test(test__f_type_array_uint32s_append__works),
     cmocka_unit_test(test__f_type_array_uint32s_append_all__works),
@@ -342,6 +420,12 @@ int main(void) {
     cmocka_unit_test(test__f_type_array_uint32ss_increase_by__works),
     cmocka_unit_test(test__f_type_array_uint32ss_resize__works),
 
+    cmocka_unit_test(test__f_type_array_uint64s_append_all__returns_data_not),
+    cmocka_unit_test(test__f_type_array_uint64s_decimate_by__returns_data_not),
+    cmocka_unit_test(test__f_type_array_uint64s_decrease_by__returns_data_not),
+    cmocka_unit_test(test__f_type_array_uint64s_increase__returns_data_not),
+    cmocka_unit_test(test__f_type_array_uint64s_increase_by__returns_data_not),
+
     cmocka_unit_test(test__f_type_array_uint64s_adjust__works),
     cmocka_unit_test(test__f_type_array_uint64s_append__works),
     cmocka_unit_test(test__f_type_array_uint64s_append_all__works),
@@ -367,6 +451,12 @@ int main(void) {
     cmocka_unit_test(test__f_type_array_uint64ss_increase_by__works),
     cmocka_unit_test(test__f_type_array_uint64ss_resize__works),
 
+    cmocka_unit_test(test__f_type_array_uint128s_append_all__returns_data_not),
+    cmocka_unit_test(test__f_type_array_uint128s_decimate_by__returns_data_not),
+    cmocka_unit_test(test__f_type_array_uint128s_decrease_by__returns_data_not),
+    cmocka_unit_test(test__f_type_array_uint128s_increase__returns_data_not),
+    cmocka_unit_test(test__f_type_array_uint128s_increase_by__returns_data_not),
+
     cmocka_unit_test(test__f_type_array_uint128s_adjust__works),
     cmocka_unit_test(test__f_type_array_uint128s_append__works),
     cmocka_unit_test(test__f_type_array_uint128s_append_all__works),
index 8b5a6d1..6f680f2 100644 (file)
@@ -17,7 +17,7 @@ settings:
   #define CMOCKA_XML_FILE ./out.xml
 
 main:
-  build settings individual tests
+  build settings individual test
   build settings-tests individual test
 
   operate ld_library_path