diff options
author | Claudius 'keldu' Holeksa <mail@keldu.de> | 2024-09-05 12:53:08 +0200 |
---|---|---|
committer | Claudius 'keldu' Holeksa <mail@keldu.de> | 2024-09-05 12:53:08 +0200 |
commit | 2f5fda2da23eeb96155d36066f9fc1bbe67cf917 (patch) | |
tree | a28aa74b6dfb00e3527ed6c3b18b13601e830452 | |
parent | f27d397e9ab2d5c020b04dde4361fffa933f103c (diff) |
minor whitespace removal
-rw-r--r-- | modules/codec-unit/tests/codec-unit.cpp | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/modules/codec-unit/tests/codec-unit.cpp b/modules/codec-unit/tests/codec-unit.cpp index 39e590d..99645bd 100644 --- a/modules/codec-unit/tests/codec-unit.cpp +++ b/modules/codec-unit/tests/codec-unit.cpp @@ -8,54 +8,53 @@ namespace { namespace sch { using namespace saw::schema; -struct FanMeterEle {}; +struct FantasyMeterEle {}; -using FanMeter = Unit< +using FantasyMeter = Unit< Int64, - UnitElement<FanMeterEle,1> + UnitElement<FantasyMeterEle,1> >; -using FanSquareMeter = Unit< +using FantasySquareMeter = Unit< Int64, - UnitElement<FanMeterEle,2> + UnitElement<FantasyMeterEle,2> >; } - SAW_TEST("Codec Unit/Addition"){ using namespace saw; - data<sch::FanMeter> a{{5}}, b{{4}}; + data<sch::FantasyMeter> a{{5}}, b{{4}}; auto c = a + b; - SAW_EXPECT(c == data<sch::FanMeter>{9u}, "Expected result 9"); + SAW_EXPECT(c == data<sch::FantasyMeter>{9u}, "Expected result 9"); } SAW_TEST("Codec Unit/Subtraction"){ using namespace saw; - data<sch::FanMeter> a{{5}}, b{{4}}; + data<sch::FantasyMeter> a{{5}}, b{{4}}; auto c = a - b; - SAW_EXPECT(c == data<sch::FanMeter>{1u}, "Expected result 1"); + SAW_EXPECT(c == data<sch::FantasyMeter>{1u}, "Expected result 1"); } SAW_TEST("Codec Unit/Multiplication"){ using namespace saw; - data<sch::FanMeter> a{{5}}, b{{4}}; + data<sch::FantasyMeter> a{{5}}, b{{4}}; auto c = a * b; - SAW_EXPECT(c == data<sch::FanSquareMeter>{20u}, "Expected result 20"); + SAW_EXPECT(c == data<sch::FantasySquareMeter>{20u}, "Expected result 20"); } SAW_TEST("Codec Unit/Division"){ using namespace saw; - data<sch::FanMeter> a{{20}}, b{{4}}; + data<sch::FantasyMeter> a{{20}}, b{{4}}; auto c = a / b; |