mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-24 06:46:22 +00:00
tests: update unit tests
Not really a best practise. They should have been run before each commit and updated accordingly. Next time..
This commit is contained in:
@@ -460,7 +460,7 @@ get_first_of_one(void** state)
|
||||
char* result = get_start(inp, 2);
|
||||
|
||||
assert_string_equal("one", result);
|
||||
free(result);
|
||||
g_free(result);
|
||||
}
|
||||
|
||||
void
|
||||
@@ -470,7 +470,7 @@ get_first_of_two(void** state)
|
||||
char* result = get_start(inp, 2);
|
||||
|
||||
assert_string_equal("one ", result);
|
||||
free(result);
|
||||
g_free(result);
|
||||
}
|
||||
|
||||
void
|
||||
@@ -480,7 +480,7 @@ get_first_two_of_three(void** state)
|
||||
char* result = get_start(inp, 3);
|
||||
|
||||
assert_string_equal("one two ", result);
|
||||
free(result);
|
||||
g_free(result);
|
||||
}
|
||||
|
||||
void
|
||||
@@ -490,7 +490,7 @@ get_first_two_of_three_first_quoted(void** state)
|
||||
char* result = get_start(inp, 3);
|
||||
|
||||
assert_string_equal("\"one\" two ", result);
|
||||
free(result);
|
||||
g_free(result);
|
||||
}
|
||||
|
||||
void
|
||||
@@ -500,7 +500,7 @@ get_first_two_of_three_second_quoted(void** state)
|
||||
char* result = get_start(inp, 3);
|
||||
|
||||
assert_string_equal("one \"two\" ", result);
|
||||
free(result);
|
||||
g_free(result);
|
||||
}
|
||||
|
||||
void
|
||||
@@ -510,7 +510,7 @@ get_first_two_of_three_first_and_second_quoted(void** state)
|
||||
char* result = get_start(inp, 3);
|
||||
|
||||
assert_string_equal("\"one\" \"two\" ", result);
|
||||
free(result);
|
||||
g_free(result);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user