Lines Matching refs:m_target
111 :m_target{ target }, m_margin{ margin } { in WithinAbsMatcher()
119 return (matchee + m_margin >= m_target) && (m_target + m_margin >= matchee); in match()
123 …is within " + ::Catch::Detail::stringify(m_margin) + " of " + ::Catch::Detail::stringify(m_target); in describe()
128 :m_target{ target }, m_ulps{ ulps }, m_type{ baseType } { in WithinUlpsMatcher()
143 … return almostEqualUlps<float>(static_cast<float>(matchee), static_cast<float>(m_target), m_ulps); in match()
145 return almostEqualUlps<double>(matchee, m_target, m_ulps); in match()
161 write(ret, static_cast<float>(m_target)); in describe()
164 write(ret, m_target); in describe()
169 write(ret, step(m_target, static_cast<double>(-INFINITY), m_ulps)); in describe()
171 write(ret, step(m_target, static_cast<double>( INFINITY), m_ulps)); in describe()
174 write(ret, step(static_cast<float>(m_target), static_cast<float>(-INFINITY), m_ulps)); in describe()
176 write(ret, step(static_cast<float>(m_target), static_cast<float>( INFINITY), m_ulps)); in describe()
184 m_target(target), in WithinRelMatcher()
191 const auto relMargin = m_epsilon * (std::max)(std::fabs(matchee), std::fabs(m_target)); in match()
192 return marginComparison(matchee, m_target, in match()
198 sstr << "and " << m_target << " are within " << m_epsilon * 100. << "% of each other"; in describe()