#include "util/simple_fraction.h"
#include <cmath>
#include <limits>
#include "gtest/gtest.h"
namespace openscreen {
namespace {
constexpr int kMin = …;
constexpr int kMax = …;
void ExpectFromStringEquals(const char* s, const SimpleFraction& expected) { … }
void ExpectFromStringError(const char* s) { … }
}
TEST(SimpleFractionTest, FromStringParsesCorrectFractions) { … }
TEST(SimpleFractionTest, FromStringErrorsOnInvalid) { … }
TEST(SimpleFractionTest, Equality) { … }
TEST(SimpleFractionTest, Definition) { … }
TEST(SimpleFractionTest, Positivity) { … }
TEST(SimpleFractionTest, CastToDouble) { … }
}