Browse Source

(#4) Document testing

rexim 4 years ago
parent
commit
8dc849a3ca
1 changed files with 13 additions and 0 deletions
  1. 13 0
      README.md

+ 13 - 0
README.md

@@ -93,6 +93,19 @@ $ ./example | jq .
 }
 ```
 
+## Testing
+
+```console
+$ make
+$ ./test
+```
+
+The expected outputs of the test cases are stored in [./test_expected.h](./test_expected.h). To regenerate it just run:
+
+```console
+$ ./test record
+```
+
 ## Notes
 
 1. Does not depends on libc. Could be theoretically used in embedded, but I know nothing about embedded, so maybe not.