Scientific computing

(for the rest of us)

Testing functions

In this module, we will explore the Test package, which allows to programmatically test the behavior of a function. We will see how testing can bring us closer to being confident in our code.

using Test
@test isequal(4)(2+2)
Test Passed
@test 2+2 isa typeof(2)
Test Passed