aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-11-05 05:23:48 +0100
committerCharles <sircharlesaze@gmail.com>2019-11-05 05:23:48 +0100
commitf4e039e5c23d5aea7a45dd8f81d573902681ec99 (patch)
treebed21b5b73a91a8e0a31f854b9c921f1f16fb769 /README.md
parenta4969e7e47b27b47fc06ceeebfb826d73ea78c52 (diff)
downloadft_printf_test-f4e039e5c23d5aea7a45dd8f81d573902681ec99.tar.gz
ft_printf_test-f4e039e5c23d5aea7a45dd8f81d573902681ec99.tar.bz2
ft_printf_test-f4e039e5c23d5aea7a45dd8f81d573902681ec99.zip
Generator doesnt generate -Wformat incompatible tests
Diffstat (limited to 'README.md')
-rw-r--r--README.md17
1 files changed, 15 insertions, 2 deletions
diff --git a/README.md b/README.md
index 36313d1..b52d972 100644
--- a/README.md
+++ b/README.md
@@ -2,6 +2,8 @@
Unit test for the ft_printf project of 42 school.
+![example_screenshot](./screenshot.png)
+
## Usage
Clone this repo such that:
@@ -19,7 +21,18 @@ or modify the `FT_PRINTF_PATH` variable in the Makefile
- `> make quiet`: to show a more quiet output
- `> make raw`: run the tests in a ugly but parsable format
- `> python3 prettier -h`: show prettier options
+- `> make generate`: generate 100 random test
-## Example
-![example_screenshot](./screenshot.png)
+## Random Test Generator
+
+It will generate random test according to the `-Wformat` flag of gcc.
+
+- `> python3 generate.py -n [number of tests]`: generate n test
+- `> python3 generate.py -h`: show all available options
+
+## Pro tips
+
+This doesnt handle timeout, so if your `ft_printf` goes in an infinite loop,
+this test will too.
+`Ctrl-C` is your best friend.