Commit 17e573c0 authored by Paul's avatar Paul
Browse files

Formatting

parent ea3872f7
...@@ -100,4 +100,8 @@ TEST_CASE(float_aligned) ...@@ -100,4 +100,8 @@ TEST_CASE(float_aligned)
EXPECT(p.get_parameter_shape("memory").bytes() == (1 * 4 + 2 * 4 + 200 * 4)); EXPECT(p.get_parameter_shape("memory").bytes() == (1 * 4 + 2 * 4 + 200 * 4));
} }
int main(int argc, const char* argv[]) { setenv("MIGRAPH_DISABLE_MEMORY_COLORING", "1", 1); test::run(argc, argv); } int main(int argc, const char* argv[])
{
setenv("MIGRAPH_DISABLE_MEMORY_COLORING", "1", 1);
test::run(argc, argv);
}
...@@ -244,16 +244,16 @@ inline void run(int argc, const char* argv[]) ...@@ -244,16 +244,16 @@ inline void run(int argc, const char* argv[])
// NOLINTNEXTLINE // NOLINTNEXTLINE
#define TEST_CAT(x, ...) TEST_PRIMITIVE_CAT(x, __VA_ARGS__) #define TEST_CAT(x, ...) TEST_PRIMITIVE_CAT(x, __VA_ARGS__)
#define TEST_PRIMITIVE_CAT(x, ...) x ## __VA_ARGS__ #define TEST_PRIMITIVE_CAT(x, ...) x##__VA_ARGS__
// NOLINTNEXTLINE // NOLINTNEXTLINE
#define TEST_CASE_REGISTER(...) \ #define TEST_CASE_REGISTER(...) \
static test::auto_register TEST_CAT(register_test_case_, __LINE__) = \ static test::auto_register TEST_CAT(register_test_case_, __LINE__) = \
test::auto_register(#__VA_ARGS__, &__VA_ARGS__); test::auto_register(#__VA_ARGS__, &__VA_ARGS__);
// NOLINTNEXTLINE // NOLINTNEXTLINE
#define TEST_CASE(...) \ #define TEST_CASE(...) \
void __VA_ARGS__(); \ void __VA_ARGS__(); \
TEST_CASE_REGISTER(__VA_ARGS__) \ TEST_CASE_REGISTER(__VA_ARGS__) \
void __VA_ARGS__() void __VA_ARGS__()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment