And
And constructs expand the current testing scenario, groups tests that assert the conditions.
and(char* condition)
The and construct takes in the condition descriptor char* condition and groups a set of tests in its output.
Output
describe My Test Suite:
context .add_two_ints
when the sum does not overflow
and both number are not negative
it returns the sum of two numbers
...
Example
#include "awry/awry.h"
describe("and construct", test_and_construct)
when("a when construct is called")
and("and another scenario is described")
it("is defined")
expect(AND_TYPE) to equal(0x05)
end
end
end
end
int main(void) {
Awry.run();
Awry.clear(&Awry);
return 0;
}
- Previous
- Next