From 8463470bb2225cb350c69912958799b1b17f9f32 Mon Sep 17 00:00:00 2001 From: MF-YT-1300 <46959788+yashrahurikar23@users.noreply.github.com> Date: Mon, 16 Jan 2023 20:31:31 +0530 Subject: [PATCH] Minor typo fixes. Minor spell correction. --- 2023/day16.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/2023/day16.md b/2023/day16.md index e012d64..8584943 100644 --- a/2023/day16.md +++ b/2023/day16.md @@ -37,8 +37,8 @@ The Go Fuzzing library (part of the standard language library since Go 1.18) gen If we write a fuzz test for this function what will happen is: 1. The fuzzing library will start providing random strings starting from smaller strings and increasing their size. -2. Once the library provides a string of lenght 4 it will notice a change in the test-coverage (`if (len(s) == 4)` is now `true`) and will continue to generate inputs with this lenght. -3. Once the library provides a string of lenght 4 that starts with `f` it will notice another change in the test-coverage (`if s[0] == "f"` is now `true`) and will continue to generate inputs that start with `f`. +2. Once the library provides a string of lenght 4 it will notice a change in the test-coverage (`if (len(s) == 4)` is now `true`) and will continue to generate inputs with this length. +3. Once the library provides a string of length 4 that starts with `f` it will notice another change in the test-coverage (`if s[0] == "f"` is now `true`) and will continue to generate inputs that start with `f`. 4. The same thing will repeat for `u` and the double `z`. 5. Once it provides `fuzz` as input the function will panic and the test will fail. 6. We have _fuzzed_ successfully! @@ -91,4 +91,4 @@ It contains the example I used in this article + a fuzz test that triggers a fai - - [Fuzzing in Go by Valentin Deleplace, Devoxx Belgium 2022](https://www.youtube.com/watch?v=Zlf3s4EjnFU) -- [Write applications faster and securely with Go by Cody Oss, Go Day 2022](https://www.youtube.com/watch?v=aw7lFSFGKZs) \ No newline at end of file +- [Write applications faster and securely with Go by Cody Oss, Go Day 2022](https://www.youtube.com/watch?v=aw7lFSFGKZs)