Property-based testing (with a sprinkle of JavaScript)by@riccardoodone
3,101 reads
3,101 reads

Property-based testing (with a sprinkle of JavaScript)

by Riccardo Odone3mJanuary 7th, 2018
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

If you come from OO and have ever tested any piece of software chances are you’ve employed example-based testing. In other words, the function under test is called with some predefined input and the return value is checked against some predefined expectation. For instance, the function <code class="markup--code markup--p-code">sum</code> is called with <code class="markup--code markup--p-code">1</code> and <code class="markup--code markup--p-code">2</code> and the expected result is <code class="markup--code markup--p-code">3</code>.

People Mentioned

Mention Thumbnail

Company Mentioned

Mention Thumbnail
featured image - Property-based testing (with a sprinkle of JavaScript)
Riccardo Odone HackerNoon profile picture
Riccardo Odone

Riccardo Odone

@riccardoodone

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite