Skip to content

Commit

Permalink
Added some basic test fotr make_outfile
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuel-kopp committed Dec 11, 2023
1 parent f6be5b0 commit d79f9ec
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d79f9ec

Please sign in to comment.