If you have any questions, comments, or suggestions we’d love to here from you at the Igloo Google group.
News about Igloo will also show up on Joakim’s twitter account: @jhkarlsson
It would be even better if you add Mock features like in HippoMocks (www.assembla.com/wiki/show/hippomocks).
Igloo is great! It comes close to Gherkin-like specifications.
I’m using the following custom constraint for comparing floating point values:
#define EqualsDelta(a,b) Fulfills(IsEqualDelta((a), (b)))
IsEqualDelta(double expected, double delta)
bool Matches(const double actual) const
return fabs(actual – _expected) < _delta;
friend std::ostream& operator<<(std::ostream& stm, const IsEqualDelta& );
std::ostream& operator<<(std::ostream& stm, const IsEqualDelta& ied)
stm << "equal to " << ied._expected << " within delta " << ied._delta;
Maybe it's an idea to add something similar.
Igloo is great! I couldn’t find a way to compare floating point values within a delta.
For this reason, I created the following custom constraint:
Is it possible to add something similar to igloo?
Looks like a good use of custom constraints.
We should definitely add deltas to the core constraints of Igloo.
Fill in your details below or click an icon to log in:
You are commenting using your WordPress.com account. ( Log Out / Change )
You are commenting using your Twitter account. ( Log Out / Change )
You are commenting using your Facebook account. ( Log Out / Change )
Connecting to %s
Notify me of follow-up comments via email.
Get every new post delivered to your Inbox.