Be True
This assertion does not use `stdbool.h` and applies an integer representation for booleans.
Behavior is undefined in the context of an array.
The be_true assertion checks if the expected value equal to 1.
Example
#include "awry/awry.h"
describe("be_true assertion", test_be_true_assertion)
it("can check if truthy")
expect(1) to be_true
end
it("can check if not truthy")
expect(0) to not be_true
end
end
int main(void) {
Awry.run();
Awry.clear(&awry);
return 0;
}
- Previous
- Next