Skip to content

CESTER_COMMENT doen't print out the message #66

@chenyulue

Description

@chenyulue

The doc says that everything in the macro is printed out at the beginning of the test. However, in my environment of mingw64 in msys2 on windows, the following snippet doesn't print the message.

#include <exotic/cester.h>

CESTER_COMMENT(
    This is a multiline comment in \n
    the source code this text is printed out \n
    before any test cases is executed.
)

CESTER_TEST(foo_bar, test_instance,
	cester_assert_cmp_msg(10,>,2,"is 10 greater than 2");
)
	
CESTER_TEST(foo_zoo, test_instance,
	cester_assert_int_gt(1, 2);
)

After compiling it with gcc test.c -I. -o test, the exe only prints the test results without the comment at the beginning. Am I missing anything?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions