Skip to content

Commit ae42c64

Browse files
committed
Update README.md
1 parent 3938605 commit ae42c64

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

README.md

+10-13
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,16 @@ test.h helps you unit testing your C code. It provides simple testing
44
functionality in a single header.
55

66
## Overview
7-
87
Currently test.h supports the following assertions
8+
```c
9+
assert(expr)
10+
assert_true(expr)
11+
assert_false(expr)
12+
assert_equal(expr, expected)
13+
assert_not_equal(expr, expected)
14+
assert_null(expr)
15+
assert_not_null(expr)
16+
```
917
1018
## Example
1119
```c
@@ -35,15 +43,4 @@ main (void)
3543
3644
return 0;
3745
}
38-
```
39-
40-
Running the example above should produce the following output:
41-
```
42-
Tests:
43-
+ test_example 3 assertions passed.
44-
45-
Summary:
46-
Type Ran Failed
47-
tests 1 0
48-
assertions 3 0
49-
```
46+
```

0 commit comments

Comments
 (0)