From 823061eecdbefd30f7c8a7bdcb6950425d0b2edf Mon Sep 17 00:00:00 2001 From: Tero Frondelius Date: Sat, 20 Jun 2015 19:56:36 +0300 Subject: [PATCH] added test_print() to runtests.jl --- test/runtests.jl | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/test/runtests.jl b/test/runtests.jl index 306b11b..cb65f0c 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -58,6 +58,21 @@ function test_add_and_get_nodes() end test_add_and_get_nodes() +function test_print() + lines_with_print = Dict() + src = readdir("src") + for file_name in src + fil = open(joinpath("src",file_name),"r") + for line in readlines(fil) + if ismatch(r"print",line) + lines_with_print[file_name] = "print" + end + end + close(fil) + end + @test lines_with_print == Dict() +end +test_print() # write your own tests here # @test 1 == JuliaFEM.test()