From d79f9ec2cdc641011156bb38220218d9b3143e17 Mon Sep 17 00:00:00 2001 From: emanuel-kopp Date: Mon, 11 Dec 2023 13:35:39 +0100 Subject: [PATCH] Added some basic test fotr make_outfile --- test/runtests.jl | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index 0ca1dae..3071580 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,6 +1,16 @@ using Labelyst using Test +using DataFrames -@testset "Labelyst.jl" begin - # Write your tests here. +@testset "Assertion Tests" begin + # Test make_outfile + testfile = "/not/existing/dir" + @test_throws AssertionError Labelyst.make_outfile(testfile) +end + +@testset "make_outfile" begin + # Test make_outfile + testfile = "testdir" + @test Labelyst.make_outfile(testfile) == "testdir.typ" + rm("testdir.typ") end