Greater Than
Behavior is undefined in the context of an array.
The greater_than assertion checks if the expected value is greater than the actual value.
Example
#include "awry/awry.h"
describe("greater than assertion", test_ge_assertion)
it("can check if greater than")
expect(1) to be greater_than(0)
end
it("can check if not greater than")
expect(0) to not be greater_than(1)
end
end
int main(void) {
Awry.run();
Awry.clear(&Awry);
return 0;
}
- Previous
- Next