Skip to content

Commit

Permalink
Run clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
chiphogg committed Aug 4, 2024
1 parent bad1dd1 commit 78600a7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions au/code/au/chrono_interop_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

#include "au/prefix.hh"
#include "au/testing.hh"
#include "gtest/gtest.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"

using ::testing::StrEq;

Expand Down Expand Up @@ -51,32 +51,32 @@ TEST(DurationQuantity, InterconvertsWithIndirectlyEquivalentChronoDuration) {

TEST(DurationQuantity, EquivalentOfChronoNanosecondsHasNsLabel) {
constexpr auto from_chrono_ns = as_quantity(std::chrono::nanoseconds{123});
EXPECT_THAT(stream_to_string(from_chrono_ns), StrEq( "123 ns"));
EXPECT_THAT(stream_to_string(from_chrono_ns), StrEq("123 ns"));
}

TEST(DurationQuantity, EquivalentOfChronoMicrosecondsHasUsLabel) {
constexpr auto from_chrono_us = as_quantity(std::chrono::microseconds{123});
EXPECT_THAT(stream_to_string(from_chrono_us), StrEq( "123 us"));
EXPECT_THAT(stream_to_string(from_chrono_us), StrEq("123 us"));
}

TEST(DurationQuantity, EquivalentOfChronoMillisecondsHasMsLabel) {
constexpr auto from_chrono_ms = as_quantity(std::chrono::milliseconds{123});
EXPECT_THAT(stream_to_string(from_chrono_ms), StrEq( "123 ms"));
EXPECT_THAT(stream_to_string(from_chrono_ms), StrEq("123 ms"));
}

TEST(DurationQuantity, EquivalentOfChronoSecondsHasSLabel) {
constexpr auto from_chrono_s = as_quantity(std::chrono::seconds{123});
EXPECT_THAT(stream_to_string(from_chrono_s), StrEq( "123 s"));
EXPECT_THAT(stream_to_string(from_chrono_s), StrEq("123 s"));
}

TEST(DurationQuantity, EquivalentOfChronoMinutesHasMinLabel) {
constexpr auto from_chrono_min = as_quantity(std::chrono::minutes{123});
EXPECT_THAT(stream_to_string(from_chrono_min), StrEq( "123 min"));
EXPECT_THAT(stream_to_string(from_chrono_min), StrEq("123 min"));
}

TEST(DurationQuantity, EquivalentOfChronoHoursHasHLabel) {
constexpr auto from_chrono_h = as_quantity(std::chrono::hours{123});
EXPECT_THAT(stream_to_string(from_chrono_h), StrEq( "123 h"));
EXPECT_THAT(stream_to_string(from_chrono_h), StrEq("123 h"));
}

TEST(AsChronoDuration, ProducesExpectedResults) {
Expand Down

0 comments on commit 78600a7

Please sign in to comment.