Skip to content

Commit

Permalink
Merge pull request #3 from Elektrobit/next
Browse files Browse the repository at this point in the history
Update to 0.53.0
  • Loading branch information
gehwolf authored Apr 25, 2024
2 parents d4848ba + a35fa01 commit 17e2b02
Show file tree
Hide file tree
Showing 26 changed files with 250 additions and 250 deletions.
2 changes: 1 addition & 1 deletion cmake/project.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: MIT
set(SAFU_VERSION 0.52.4)
set(SAFU_VERSION 0.53.0)

# Attention: Aside from the version, as many things as possible in this file
# should be put into functions, as this solves potential issues with commands
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ void safuTestSafuJsonAddNewTimestampErrAddArrayArray(UNUSED void **state) {
SHOULD("%s", "fail to add an array for a timestamp to a json array");

const struct timespec testRows[] = {
{0, 0}, {0, 42}, {0, INT64_MAX}, {0, INT64_MIN}, {0, -12},
{42, 0}, {42, 42}, {42, INT64_MAX}, {42, INT64_MIN}, {42, -12},
{INT64_MAX, 0}, {INT64_MAX, 42}, {INT64_MAX, INT64_MAX}, {INT64_MAX, INT64_MIN}, {INT64_MAX, -12},
{INT64_MIN, 0}, {INT64_MIN, 42}, {INT64_MIN, INT64_MAX}, {INT64_MIN, INT64_MIN}, {INT64_MIN, -12},
{-12, 0}, {-12, 42}, {-12, INT64_MAX}, {-12, INT64_MIN}, {-12, -12},
{0, 0}, {0, 42}, {0, INTMAX_MAX}, {0, INTMAX_MIN}, {0, -12},
{42, 0}, {42, 42}, {42, INTMAX_MAX}, {42, INTMAX_MIN}, {42, -12},
{INTMAX_MAX, 0}, {INTMAX_MAX, 42}, {INTMAX_MAX, INTMAX_MAX}, {INTMAX_MAX, INTMAX_MIN}, {INTMAX_MAX, -12},
{INTMAX_MIN, 0}, {INTMAX_MIN, 42}, {INTMAX_MIN, INTMAX_MAX}, {INTMAX_MIN, INTMAX_MIN}, {INTMAX_MIN, -12},
{-12, 0}, {-12, 42}, {-12, INTMAX_MAX}, {-12, INTMAX_MIN}, {-12, -12},
};
for (size_t i = 0; i < ARRAY_SIZE(testRows); i++) {
_testCase(testRows[i]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,28 +54,28 @@ void safuTestSafuJsonAddNewTimestampErrAddArrayObject(UNUSED void **state) {
} testRows[] = {
{"zero,zero", {0, 0}},
{"zero,some", {0, 42}},
{"zero/max", {0, INT64_MAX}},
{"zero|min", {0, INT64_MIN}},
{"zero/max", {0, INTMAX_MAX}},
{"zero|min", {0, INTMAX_MIN}},
{"zero minus", {0, -12}},
{"stuff-nothing", {42, 0}},
{"stuff_stuff", {42, 42}},
{"stuff, Max", {42, INT64_MAX}},
{"stuff MINIMUM", {42, INT64_MIN}},
{"stuff, Max", {42, INTMAX_MAX}},
{"stuff MINIMUM", {42, INTMAX_MIN}},
{"somthing and somthing negativ", {42, -12}},
{"Maximum:0", {INT64_MAX, 0}},
{"Maximum|fortytwo", {INT64_MAX, 42}},
{"Maximum+Maximum", {INT64_MAX, INT64_MAX}},
{"MaximumMinimum", {INT64_MAX, INT64_MIN}},
{"Maximum|minus", {INT64_MAX, -12}},
{"Mini/zero", {INT64_MIN, 0}},
{"Mini fortytwo", {INT64_MIN, 42}},
{"Mini|Maximum", {INT64_MIN, INT64_MAX}},
{"Mini*2", {INT64_MIN, INT64_MIN}},
{"Mini\\Negativ", {INT64_MIN, -12}},
{"Maximum:0", {INTMAX_MAX, 0}},
{"Maximum|fortytwo", {INTMAX_MAX, 42}},
{"Maximum+Maximum", {INTMAX_MAX, INTMAX_MAX}},
{"MaximumMinimum", {INTMAX_MAX, INTMAX_MIN}},
{"Maximum|minus", {INTMAX_MAX, -12}},
{"Mini/zero", {INTMAX_MIN, 0}},
{"Mini fortytwo", {INTMAX_MIN, 42}},
{"Mini|Maximum", {INTMAX_MIN, INTMAX_MAX}},
{"Mini*2", {INTMAX_MIN, INTMAX_MIN}},
{"Mini\\Negativ", {INTMAX_MIN, -12}},
{"negativ!zero", {-12, 0}},
{"negativ fortytwo", {-12, 42}},
{"negativ!INT64_MAX", {-12, INT64_MAX}},
{"negativ Minimum", {-12, INT64_MIN}},
{"negativ!INTMAX_MAX", {-12, INTMAX_MAX}},
{"negativ Minimum", {-12, INTMAX_MIN}},
{"negativ!negativ", {-12, -12}},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ void safuTestSafuJsonAddNewTimestampErrCreateNSecArray(void **state) {
assert_non_null(jobj);

const struct timespec testRows[] = {
{0, 0}, {0, 42}, {0, INT64_MAX}, {0, INT64_MIN}, {0, -12},
{42, 0}, {42, 42}, {42, INT64_MAX}, {42, INT64_MIN}, {42, -12},
{INT64_MAX, 0}, {INT64_MAX, 42}, {INT64_MAX, INT64_MAX}, {INT64_MAX, INT64_MIN}, {INT64_MAX, -12},
{INT64_MIN, 0}, {INT64_MIN, 42}, {INT64_MIN, INT64_MAX}, {INT64_MIN, INT64_MIN}, {INT64_MIN, -12},
{-12, 0}, {-12, 42}, {-12, INT64_MAX}, {-12, INT64_MIN}, {-12, -12},
{0, 0}, {0, 42}, {0, INTMAX_MAX}, {0, INTMAX_MIN}, {0, -12},
{42, 0}, {42, 42}, {42, INTMAX_MAX}, {42, INTMAX_MIN}, {42, -12},
{INTMAX_MAX, 0}, {INTMAX_MAX, 42}, {INTMAX_MAX, INTMAX_MAX}, {INTMAX_MAX, INTMAX_MIN}, {INTMAX_MAX, -12},
{INTMAX_MIN, 0}, {INTMAX_MIN, 42}, {INTMAX_MIN, INTMAX_MAX}, {INTMAX_MIN, INTMAX_MIN}, {INTMAX_MIN, -12},
{-12, 0}, {-12, 42}, {-12, INTMAX_MAX}, {-12, INTMAX_MIN}, {-12, -12},
};
for (size_t i = 0; i < ARRAY_SIZE(testRows); i++) {
_testCase(jobj, i, testRows[i]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,28 +53,28 @@ void safuTestSafuJsonAddNewTimestampErrCreateNSecObject(void **state) {
} testRows[] = {
{"zero,zero", {0, 0}},
{"zero,some", {0, 42}},
{"zero/max", {0, INT64_MAX}},
{"zero|min", {0, INT64_MIN}},
{"zero/max", {0, INTMAX_MAX}},
{"zero|min", {0, INTMAX_MIN}},
{"zero minus", {0, -12}},
{"stuff-nothing", {42, 0}},
{"stuff_stuff", {42, 42}},
{"stuff, Max", {42, INT64_MAX}},
{"stuff MINIMUM", {42, INT64_MIN}},
{"stuff, Max", {42, INTMAX_MAX}},
{"stuff MINIMUM", {42, INTMAX_MIN}},
{"somthing and somthing negativ", {42, -12}},
{"Maximum:0", {INT64_MAX, 0}},
{"Maximum|fortytwo", {INT64_MAX, 42}},
{"Maximum+Maximum", {INT64_MAX, INT64_MAX}},
{"MaximumMinimum", {INT64_MAX, INT64_MIN}},
{"Maximum|minus", {INT64_MAX, -12}},
{"Mini/zero", {INT64_MIN, 0}},
{"Mini fortytwo", {INT64_MIN, 42}},
{"Mini|Maximum", {INT64_MIN, INT64_MAX}},
{"Mini*2", {INT64_MIN, INT64_MIN}},
{"Mini\\Negativ", {INT64_MIN, -12}},
{"Maximum:0", {INTMAX_MAX, 0}},
{"Maximum|fortytwo", {INTMAX_MAX, 42}},
{"Maximum+Maximum", {INTMAX_MAX, INTMAX_MAX}},
{"MaximumMinimum", {INTMAX_MAX, INTMAX_MIN}},
{"Maximum|minus", {INTMAX_MAX, -12}},
{"Mini/zero", {INTMAX_MIN, 0}},
{"Mini fortytwo", {INTMAX_MIN, 42}},
{"Mini|Maximum", {INTMAX_MIN, INTMAX_MAX}},
{"Mini*2", {INTMAX_MIN, INTMAX_MIN}},
{"Mini\\Negativ", {INTMAX_MIN, -12}},
{"negativ!zero", {-12, 0}},
{"negativ fortytwo", {-12, 42}},
{"negativ!INT64_MAX", {-12, INT64_MAX}},
{"negativ Minimum", {-12, INT64_MIN}},
{"negativ!INTMAX_MAX", {-12, INTMAX_MAX}},
{"negativ Minimum", {-12, INTMAX_MIN}},
{"negativ!negativ", {-12, -12}},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ void safuTestSafuJsonAddNewTimestampErrCreateSecArray(void **state) {
assert_non_null(jobj);

const struct timespec testRows[] = {
{0, 0}, {0, 42}, {0, INT64_MAX}, {0, INT64_MIN}, {0, -12},
{42, 0}, {42, 42}, {42, INT64_MAX}, {42, INT64_MIN}, {42, -12},
{INT64_MAX, 0}, {INT64_MAX, 42}, {INT64_MAX, INT64_MAX}, {INT64_MAX, INT64_MIN}, {INT64_MAX, -12},
{INT64_MIN, 0}, {INT64_MIN, 42}, {INT64_MIN, INT64_MAX}, {INT64_MIN, INT64_MIN}, {INT64_MIN, -12},
{-12, 0}, {-12, 42}, {-12, INT64_MAX}, {-12, INT64_MIN}, {-12, -12},
{0, 0}, {0, 42}, {0, INTMAX_MAX}, {0, INTMAX_MIN}, {0, -12},
{42, 0}, {42, 42}, {42, INTMAX_MAX}, {42, INTMAX_MIN}, {42, -12},
{INTMAX_MAX, 0}, {INTMAX_MAX, 42}, {INTMAX_MAX, INTMAX_MAX}, {INTMAX_MAX, INTMAX_MIN}, {INTMAX_MAX, -12},
{INTMAX_MIN, 0}, {INTMAX_MIN, 42}, {INTMAX_MIN, INTMAX_MAX}, {INTMAX_MIN, INTMAX_MIN}, {INTMAX_MIN, -12},
{-12, 0}, {-12, 42}, {-12, INTMAX_MAX}, {-12, INTMAX_MIN}, {-12, -12},
};
for (size_t i = 0; i < ARRAY_SIZE(testRows); i++) {
_testCase(jobj, i, testRows[i]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,28 +39,28 @@ void safuTestSafuJsonAddNewTimestampErrCreateSecObject(void **state) {
} testRows[] = {
{"zero,zero", {0, 0}},
{"zero,some", {0, 42}},
{"zero/max", {0, INT64_MAX}},
{"zero|min", {0, INT64_MIN}},
{"zero/max", {0, INTMAX_MAX}},
{"zero|min", {0, INTMAX_MIN}},
{"zero minus", {0, -12}},
{"stuff-nothing", {42, 0}},
{"stuff_stuff", {42, 42}},
{"stuff, Max", {42, INT64_MAX}},
{"stuff MINIMUM", {42, INT64_MIN}},
{"stuff, Max", {42, INTMAX_MAX}},
{"stuff MINIMUM", {42, INTMAX_MIN}},
{"somthing and somthing negativ", {42, -12}},
{"Maximum:0", {INT64_MAX, 0}},
{"Maximum|fortytwo", {INT64_MAX, 42}},
{"Maximum+Maximum", {INT64_MAX, INT64_MAX}},
{"MaximumMinimum", {INT64_MAX, INT64_MIN}},
{"Maximum|minus", {INT64_MAX, -12}},
{"Mini/zero", {INT64_MIN, 0}},
{"Mini fortytwo", {INT64_MIN, 42}},
{"Mini|Maximum", {INT64_MIN, INT64_MAX}},
{"Mini*2", {INT64_MIN, INT64_MIN}},
{"Mini\\Negativ", {INT64_MIN, -12}},
{"Maximum:0", {INTMAX_MAX, 0}},
{"Maximum|fortytwo", {INTMAX_MAX, 42}},
{"Maximum+Maximum", {INTMAX_MAX, INTMAX_MAX}},
{"MaximumMinimum", {INTMAX_MAX, INTMAX_MIN}},
{"Maximum|minus", {INTMAX_MAX, -12}},
{"Mini/zero", {INTMAX_MIN, 0}},
{"Mini fortytwo", {INTMAX_MIN, 42}},
{"Mini|Maximum", {INTMAX_MIN, INTMAX_MAX}},
{"Mini*2", {INTMAX_MIN, INTMAX_MIN}},
{"Mini\\Negativ", {INTMAX_MIN, -12}},
{"negativ!zero", {-12, 0}},
{"negativ fortytwo", {-12, 42}},
{"negativ!INT64_MAX", {-12, INT64_MAX}},
{"negativ Minimum", {-12, INT64_MIN}},
{"negativ!INTMAX_MAX", {-12, INTMAX_MAX}},
{"negativ Minimum", {-12, INTMAX_MIN}},
{"negativ!negativ", {-12, -12}},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ void safuTestSafuJsonAddNewTimestampErrInsertNSecArray(void **state) {
assert_non_null(jobj);

const struct timespec testRows[] = {
{0, 0}, {0, 42}, {0, INT64_MAX}, {0, INT64_MIN}, {0, -12},
{42, 0}, {42, 42}, {42, INT64_MAX}, {42, INT64_MIN}, {42, -12},
{INT64_MAX, 0}, {INT64_MAX, 42}, {INT64_MAX, INT64_MAX}, {INT64_MAX, INT64_MIN}, {INT64_MAX, -12},
{INT64_MIN, 0}, {INT64_MIN, 42}, {INT64_MIN, INT64_MAX}, {INT64_MIN, INT64_MIN}, {INT64_MIN, -12},
{-12, 0}, {-12, 42}, {-12, INT64_MAX}, {-12, INT64_MIN}, {-12, -12},
{0, 0}, {0, 42}, {0, INTMAX_MAX}, {0, INTMAX_MIN}, {0, -12},
{42, 0}, {42, 42}, {42, INTMAX_MAX}, {42, INTMAX_MIN}, {42, -12},
{INTMAX_MAX, 0}, {INTMAX_MAX, 42}, {INTMAX_MAX, INTMAX_MAX}, {INTMAX_MAX, INTMAX_MIN}, {INTMAX_MAX, -12},
{INTMAX_MIN, 0}, {INTMAX_MIN, 42}, {INTMAX_MIN, INTMAX_MAX}, {INTMAX_MIN, INTMAX_MIN}, {INTMAX_MIN, -12},
{-12, 0}, {-12, 42}, {-12, INTMAX_MAX}, {-12, INTMAX_MIN}, {-12, -12},
};
for (size_t i = 0; i < ARRAY_SIZE(testRows); i++) {
_testCase(jobj, i, testRows[i]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,28 +58,28 @@ void safuTestSafuJsonAddNewTimestampErrInsertNSecObject(void **state) {
} testRows[] = {
{"zero,zero", {0, 0}},
{"zero,some", {0, 42}},
{"zero/max", {0, INT64_MAX}},
{"zero|min", {0, INT64_MIN}},
{"zero/max", {0, INTMAX_MAX}},
{"zero|min", {0, INTMAX_MIN}},
{"zero minus", {0, -12}},
{"stuff-nothing", {42, 0}},
{"stuff_stuff", {42, 42}},
{"stuff, Max", {42, INT64_MAX}},
{"stuff MINIMUM", {42, INT64_MIN}},
{"stuff, Max", {42, INTMAX_MAX}},
{"stuff MINIMUM", {42, INTMAX_MIN}},
{"somthing and somthing negativ", {42, -12}},
{"Maximum:0", {INT64_MAX, 0}},
{"Maximum|fortytwo", {INT64_MAX, 42}},
{"Maximum+Maximum", {INT64_MAX, INT64_MAX}},
{"MaximumMinimum", {INT64_MAX, INT64_MIN}},
{"Maximum|minus", {INT64_MAX, -12}},
{"Mini/zero", {INT64_MIN, 0}},
{"Mini fortytwo", {INT64_MIN, 42}},
{"Mini|Maximum", {INT64_MIN, INT64_MAX}},
{"Mini*2", {INT64_MIN, INT64_MIN}},
{"Mini\\Negativ", {INT64_MIN, -12}},
{"Maximum:0", {INTMAX_MAX, 0}},
{"Maximum|fortytwo", {INTMAX_MAX, 42}},
{"Maximum+Maximum", {INTMAX_MAX, INTMAX_MAX}},
{"MaximumMinimum", {INTMAX_MAX, INTMAX_MIN}},
{"Maximum|minus", {INTMAX_MAX, -12}},
{"Mini/zero", {INTMAX_MIN, 0}},
{"Mini fortytwo", {INTMAX_MIN, 42}},
{"Mini|Maximum", {INTMAX_MIN, INTMAX_MAX}},
{"Mini*2", {INTMAX_MIN, INTMAX_MIN}},
{"Mini\\Negativ", {INTMAX_MIN, -12}},
{"negativ!zero", {-12, 0}},
{"negativ fortytwo", {-12, 42}},
{"negativ!INT64_MAX", {-12, INT64_MAX}},
{"negativ Minimum", {-12, INT64_MIN}},
{"negativ!INTMAX_MAX", {-12, INTMAX_MAX}},
{"negativ Minimum", {-12, INTMAX_MIN}},
{"negativ!negativ", {-12, -12}},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ void safuTestSafuJsonAddNewTimestampErrInsertSecArray(void **state) {
assert_non_null(jobj);

const struct timespec testRows[] = {
{0, 0}, {0, 42}, {0, INT64_MAX}, {0, INT64_MIN}, {0, -12},
{42, 0}, {42, 42}, {42, INT64_MAX}, {42, INT64_MIN}, {42, -12},
{INT64_MAX, 0}, {INT64_MAX, 42}, {INT64_MAX, INT64_MAX}, {INT64_MAX, INT64_MIN}, {INT64_MAX, -12},
{INT64_MIN, 0}, {INT64_MIN, 42}, {INT64_MIN, INT64_MAX}, {INT64_MIN, INT64_MIN}, {INT64_MIN, -12},
{-12, 0}, {-12, 42}, {-12, INT64_MAX}, {-12, INT64_MIN}, {-12, -12},
{0, 0}, {0, 42}, {0, INTMAX_MAX}, {0, INTMAX_MIN}, {0, -12},
{42, 0}, {42, 42}, {42, INTMAX_MAX}, {42, INTMAX_MIN}, {42, -12},
{INTMAX_MAX, 0}, {INTMAX_MAX, 42}, {INTMAX_MAX, INTMAX_MAX}, {INTMAX_MAX, INTMAX_MIN}, {INTMAX_MAX, -12},
{INTMAX_MIN, 0}, {INTMAX_MIN, 42}, {INTMAX_MIN, INTMAX_MAX}, {INTMAX_MIN, INTMAX_MIN}, {INTMAX_MIN, -12},
{-12, 0}, {-12, 42}, {-12, INTMAX_MAX}, {-12, INTMAX_MIN}, {-12, -12},
};
for (size_t i = 0; i < ARRAY_SIZE(testRows); i++) {
_testCase(jobj, i, testRows[i]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,28 +50,28 @@ void safuTestSafuJsonAddNewTimestampErrInsertSecObject(void **state) {
} testRows[] = {
{"zero,zero", {0, 0}},
{"zero,some", {0, 42}},
{"zero/max", {0, INT64_MAX}},
{"zero|min", {0, INT64_MIN}},
{"zero/max", {0, INTMAX_MAX}},
{"zero|min", {0, INTMAX_MIN}},
{"zero minus", {0, -12}},
{"stuff-nothing", {42, 0}},
{"stuff_stuff", {42, 42}},
{"stuff, Max", {42, INT64_MAX}},
{"stuff MINIMUM", {42, INT64_MIN}},
{"stuff, Max", {42, INTMAX_MAX}},
{"stuff MINIMUM", {42, INTMAX_MIN}},
{"somthing and somthing negativ", {42, -12}},
{"Maximum:0", {INT64_MAX, 0}},
{"Maximum|fortytwo", {INT64_MAX, 42}},
{"Maximum+Maximum", {INT64_MAX, INT64_MAX}},
{"MaximumMinimum", {INT64_MAX, INT64_MIN}},
{"Maximum|minus", {INT64_MAX, -12}},
{"Mini/zero", {INT64_MIN, 0}},
{"Mini fortytwo", {INT64_MIN, 42}},
{"Mini|Maximum", {INT64_MIN, INT64_MAX}},
{"Mini*2", {INT64_MIN, INT64_MIN}},
{"Mini\\Negativ", {INT64_MIN, -12}},
{"Maximum:0", {INTMAX_MAX, 0}},
{"Maximum|fortytwo", {INTMAX_MAX, 42}},
{"Maximum+Maximum", {INTMAX_MAX, INTMAX_MAX}},
{"MaximumMinimum", {INTMAX_MAX, INTMAX_MIN}},
{"Maximum|minus", {INTMAX_MAX, -12}},
{"Mini/zero", {INTMAX_MIN, 0}},
{"Mini fortytwo", {INTMAX_MIN, 42}},
{"Mini|Maximum", {INTMAX_MIN, INTMAX_MAX}},
{"Mini*2", {INTMAX_MIN, INTMAX_MIN}},
{"Mini\\Negativ", {INTMAX_MIN, -12}},
{"negativ!zero", {-12, 0}},
{"negativ fortytwo", {-12, 42}},
{"negativ!INT64_MAX", {-12, INT64_MAX}},
{"negativ Minimum", {-12, INT64_MIN}},
{"negativ!INTMAX_MAX", {-12, INTMAX_MAX}},
{"negativ Minimum", {-12, INTMAX_MIN}},
{"negativ!negativ", {-12, -12}},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ void safuTestSafuJsonAddNewTimestampErrNewArrayArray(void **state) {
assert_non_null(jobj);

const struct timespec testRows[] = {
{0, 0}, {0, 42}, {0, INT64_MAX}, {0, INT64_MIN}, {0, -12},
{42, 0}, {42, 42}, {42, INT64_MAX}, {42, INT64_MIN}, {42, -12},
{INT64_MAX, 0}, {INT64_MAX, 42}, {INT64_MAX, INT64_MAX}, {INT64_MAX, INT64_MIN}, {INT64_MAX, -12},
{INT64_MIN, 0}, {INT64_MIN, 42}, {INT64_MIN, INT64_MAX}, {INT64_MIN, INT64_MIN}, {INT64_MIN, -12},
{-12, 0}, {-12, 42}, {-12, INT64_MAX}, {-12, INT64_MIN}, {-12, -12},
{0, 0}, {0, 42}, {0, INTMAX_MAX}, {0, INTMAX_MIN}, {0, -12},
{42, 0}, {42, 42}, {42, INTMAX_MAX}, {42, INTMAX_MIN}, {42, -12},
{INTMAX_MAX, 0}, {INTMAX_MAX, 42}, {INTMAX_MAX, INTMAX_MAX}, {INTMAX_MAX, INTMAX_MIN}, {INTMAX_MAX, -12},
{INTMAX_MIN, 0}, {INTMAX_MIN, 42}, {INTMAX_MIN, INTMAX_MAX}, {INTMAX_MIN, INTMAX_MIN}, {INTMAX_MIN, -12},
{-12, 0}, {-12, 42}, {-12, INTMAX_MAX}, {-12, INTMAX_MIN}, {-12, -12},
};
for (size_t i = 0; i < ARRAY_SIZE(testRows); i++) {
_testCase(jobj, i, testRows[i]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,28 +34,28 @@ void safuTestSafuJsonAddNewTimestampErrNewArrayObject(void **state) {
} testRows[] = {
{"zero,zero", {0, 0}},
{"zero,some", {0, 42}},
{"zero/max", {0, INT64_MAX}},
{"zero|min", {0, INT64_MIN}},
{"zero/max", {0, INTMAX_MAX}},
{"zero|min", {0, INTMAX_MIN}},
{"zero minus", {0, -12}},
{"stuff-nothing", {42, 0}},
{"stuff_stuff", {42, 42}},
{"stuff, Max", {42, INT64_MAX}},
{"stuff MINIMUM", {42, INT64_MIN}},
{"stuff, Max", {42, INTMAX_MAX}},
{"stuff MINIMUM", {42, INTMAX_MIN}},
{"somthing and somthing negativ", {42, -12}},
{"Maximum:0", {INT64_MAX, 0}},
{"Maximum|fortytwo", {INT64_MAX, 42}},
{"Maximum+Maximum", {INT64_MAX, INT64_MAX}},
{"MaximumMinimum", {INT64_MAX, INT64_MIN}},
{"Maximum|minus", {INT64_MAX, -12}},
{"Mini/zero", {INT64_MIN, 0}},
{"Mini fortytwo", {INT64_MIN, 42}},
{"Mini|Maximum", {INT64_MIN, INT64_MAX}},
{"Mini*2", {INT64_MIN, INT64_MIN}},
{"Mini\\Negativ", {INT64_MIN, -12}},
{"Maximum:0", {INTMAX_MAX, 0}},
{"Maximum|fortytwo", {INTMAX_MAX, 42}},
{"Maximum+Maximum", {INTMAX_MAX, INTMAX_MAX}},
{"MaximumMinimum", {INTMAX_MAX, INTMAX_MIN}},
{"Maximum|minus", {INTMAX_MAX, -12}},
{"Mini/zero", {INTMAX_MIN, 0}},
{"Mini fortytwo", {INTMAX_MIN, 42}},
{"Mini|Maximum", {INTMAX_MIN, INTMAX_MAX}},
{"Mini*2", {INTMAX_MIN, INTMAX_MIN}},
{"Mini\\Negativ", {INTMAX_MIN, -12}},
{"negativ!zero", {-12, 0}},
{"negativ fortytwo", {-12, 42}},
{"negativ!INT64_MAX", {-12, INT64_MAX}},
{"negativ Minimum", {-12, INT64_MIN}},
{"negativ!INTMAX_MAX", {-12, INTMAX_MAX}},
{"negativ Minimum", {-12, INTMAX_MIN}},
{"negativ!negativ", {-12, -12}},
};

Expand Down
Loading

0 comments on commit 17e2b02

Please sign in to comment.