2023-07-10 15:51:21 +00:00
|
|
|
#include <cgreen/cgreen.h>
|
|
|
|
#include "shortcodes.h"
|
|
|
|
|
|
|
|
Describe(parse);
|
|
|
|
BeforeEach(parse) {}
|
|
|
|
AfterEach(parse) {}
|
|
|
|
|
2023-07-12 19:09:17 +00:00
|
|
|
Ensure(parse, empty_string) {
|
|
|
|
char *input = "";
|
|
|
|
int output = parse(input);
|
|
|
|
assert_that(output, is_equal_to(0));
|
2023-07-10 15:51:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int main(int argc, char **argv) {
|
|
|
|
TestSuite *suite = create_test_suite();
|
2023-07-12 19:09:17 +00:00
|
|
|
add_test_with_context(suite, parse, empty_string);
|
2023-07-10 15:51:21 +00:00
|
|
|
return run_test_suite(suite, create_text_reporter());
|
|
|
|
}
|