Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 389 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 389 Bytes

Test Your Julia Program

Writting unit tests can help you prevent you program from unexpected behaviour and make sure everything you update to your program is correct.

Testing in Julia is simple, just use this macro

julia> @test 1 == 1

Also you can use a test set to group your tests together

@testset "My Tests" begin
    @test 1 == 1
    @test 2 == 2
end