MCPcopy Create free account
hub / github.com/MikeLankamp/fpm / TEST

Function TEST

tests/arithmetic.cpp:3–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include "common.hpp"
2
3TEST(arithmethic, negation)
4{
5 using P = fpm::fixed_24_8;
6
7 EXPECT_EQ(P(-13.125), -P( 13.125));
8 EXPECT_EQ(P( 13.125), -P(-13.125));
9}
10
11TEST(arithmethic, addition)
12{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected