| 3024 | enum class FloatingPointKind : uint8_t; |
| 3025 | |
| 3026 | struct WithinAbsMatcher : MatcherBase<double> { |
| 3027 | WithinAbsMatcher(double target, double margin); |
| 3028 | bool match(double const& matchee) const override; |
| 3029 | std::string describe() const override; |
| 3030 | private: |
| 3031 | double m_target; |
| 3032 | double m_margin; |
| 3033 | }; |
| 3034 | |
| 3035 | struct WithinUlpsMatcher : MatcherBase<double> { |
| 3036 | WithinUlpsMatcher(double target, int ulps, FloatingPointKind baseType); |