|
You are here |
blog.nelhage.com | ||
| | | | |
hypothesis.works
|
|
| | | | | The Encode/Decode invariant One of the simplest types of invariant to find once you move past just fuzzing your code is asserting that two different operations should produce the same result, and one of the simplest instances of that is looking for encode/decode pairs. That is, you have some function that takes a value and encodes it as another value, and another that is supposed to reverse the process. This is ripe for testing with Hypothesis because it has a natural completely defined specification: Encoding and then decoding should be exactly the same as doing nothing. Lets look at a concrete example. Test faster, fix more | |
| | | | |
ha.nnes.dev
|
|
| | | | | ||
| | | | |
arne-mertz.de
|
|
| | | | | Contents Inmy last post I have written about the main and secondary usesof unit tests and how they compare to other kinds of automated tests. This time I will explore [...] | |
| | | | |
github.com
|
|
| | | A simple VS Code debug adapter for mono. Contribute to microsoft/vscode-mono-debug development by creating an account on GitHub. | ||