Be True

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;
}