Skip to content

Commit

Permalink
[docs] Add missing pieces to the cheatsheet
Browse files Browse the repository at this point in the history
  • Loading branch information
thoni56 committed Nov 9, 2024
1 parent 91ba387 commit ea7b95d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion doc/cheat-sheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,16 @@
BeforeEach( <sut> ) {}
AfterEach( <sut> ) {}

## A test
## Tests

Ensure( <sut>, <test_name> ) {
assert_that( <expression> );
assert_that( <expression>, <constraint> );
assert_that_double(...);
}

xEnsure( ... ) ... // Skip this test

## Constraints

is_true
Expand Down Expand Up @@ -96,3 +98,9 @@

%.o: %.c
$(CC) $(CFLAGS) -fPIC -c -o $@ $^

## Programmatic control of result

fail_test(char *message);
pass_test(void);
skip_test(void);

0 comments on commit ea7b95d

Please sign in to comment.