diff options
-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; |