Skip to content

Commit

Permalink
style: clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
mpusz committed Jun 1, 2024
1 parent e25364b commit 16493ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions test/static/reference_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ static_assert(is_of_type<length[metre], reference<length_, metre_>>);
static_assert(is_of_type<kind_of<length>[metre], metre_>);

static_assert(
is_of_type<(length / time)[metre / second],
reference<decltype(length / time), decltype(metre / second)>>);
is_of_type<(length / time)[metre / second], reference<decltype(length / time), decltype(metre / second)>>);
static_assert(is_of_type<(kind_of<length> / kind_of<time>)[metre / second], derived_unit<metre_, per<second_>>>);

// Unit as a reference
Expand Down
3 changes: 1 addition & 2 deletions test/static/si_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ static_assert(1 * Qm == 1'000'000'000'000'000'000 * Tm);

// check for invalid prefixes
template<template<typename U> typename prefix, auto V1>
concept can_not_be_prefixed =
Unit<decltype(V1)> && !requires { typename prefix<decltype(V1)>; };
concept can_not_be_prefixed = Unit<decltype(V1)> && !requires { typename prefix<decltype(V1)>; };

static_assert(can_not_be_prefixed<si::milli_, si::degree_Celsius>);
static_assert(can_not_be_prefixed<si::milli_, si::minute>);
Expand Down

0 comments on commit 16493ee

Please sign in to comment.