1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:07:45 +00:00

Tests: Reword 'output' to 'return value' in TestScanf

This commit is contained in:
Jelle Raaijmakers 2021-10-25 00:21:56 +02:00 committed by Brian Gianforcaro
parent e3f17401cb
commit e71e9de61f

View file

@ -142,7 +142,7 @@ Argument charstararg2 { sizeof(charstar), &_charstararg2[0] };
struct TestSuite { struct TestSuite {
const char* format; const char* format;
const char* input; const char* input;
int expected_output; int expected_return_value;
size_t argument_count; size_t argument_count;
Argument arguments[8]; Argument arguments[8];
Array<unsigned char, 32> expected_values[8]; // 32 bytes for each argument's value. Array<unsigned char, 32> expected_values[8]; // 32 bytes for each argument's value.
@ -214,12 +214,12 @@ static void do_one_test(const TestSuite& test)
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
bool overall = true; bool overall = true;
printf(" output value...\n"); printf(" return value...\n");
if (rc != test.expected_output) { if (rc != test.expected_return_value) {
printf(" output value FAIL, expected %d but got %d\n", test.expected_output, rc); printf(" return value FAIL, expected %d but got %d\n", test.expected_return_value, rc);
overall = false; overall = false;
} else { } else {
printf(" output value PASS\n"); printf(" return value PASS\n");
} }
printf(" read values...\n"); printf(" read values...\n");