Deleted Added
sdiff udiff text old ( 13962:9c1c64414fb7 ) new ( 14210:8f7626532f4d )
full compact
1/*
2 * Copyright (c) 2019 Inria
3 * All rights reserved
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 83 unchanged lines hidden (view full) ---

92 for (double value = 0.0; value <= max_value; value++, counter++) {
93 const double saturation = value / max_value;
94 ASSERT_DOUBLE_EQ(counter.calcSaturation(), saturation);
95 }
96 ASSERT_TRUE(counter.isSaturated());
97}
98
99/**
100 * Test back and forth against an int.
101 */
102TEST(SatCounterTest, IntComparison)
103{
104 const unsigned bits = 3;
105 SatCounter counter(bits);
106 int value = 0;
107

--- 197 unchanged lines hidden ---