Clean up formatting.

This commit is contained in:
Allison Vacanti
2021-02-04 18:54:44 -05:00
parent e302583c67
commit 74d19a8e16
2 changed files with 4 additions and 5 deletions

View File

@@ -30,7 +30,7 @@
__LINE__, \ __LINE__, \
#cond, \ #cond, \
fmt::format(fmtstr, __VA_ARGS__)); \ fmt::format(fmtstr, __VA_ARGS__)); \
std::fflush(stdout); \ std::fflush(stdout); \
throw std::runtime_error("Unit test failure."); \ throw std::runtime_error("Unit test failure."); \
} \ } \
} while (false) } while (false)
@@ -53,7 +53,7 @@
__FILE__, \ __FILE__, \
__LINE__, \ __LINE__, \
#expr); \ #expr); \
std::fflush(stdout); \ std::fflush(stdout); \
throw std::runtime_error("Unit test failure."); \ throw std::runtime_error("Unit test failure."); \
} \ } \
} while (false) } while (false)

View File

@@ -84,11 +84,10 @@ struct test_prepend_each
static_assert(std::is_same_v<nvbench::tl::prepend_each<T, TLs>, Expected>); static_assert(std::is_same_v<nvbench::tl::prepend_each<T, TLs>, Expected>);
}; };
struct test_empty_cartesian_product struct test_empty_cartesian_product
{ {
using prod = nvbench::tl::cartesian_product<nvbench::type_list<>>; using prod = nvbench::tl::cartesian_product<nvbench::type_list<>>;
static_assert( static_assert(std::is_same_v<prod, nvbench::type_list<nvbench::type_list<>>>);
std::is_same_v<prod, nvbench::type_list<nvbench::type_list<>>>);
}; };
struct test_single_cartesian_product struct test_single_cartesian_product