Skip to content

Commit

Permalink
Merge pull request #1 from laurentheirendt/mk-fix-warn-test
Browse files Browse the repository at this point in the history
add test for warning
  • Loading branch information
exaexa authored Nov 3, 2020
2 parents 276c7fb + 7ea3861 commit 959aafb
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,28 @@ using FileIO
using Test, HTTP

@testset "FCSFiles test suite" begin

# test loading an FCS 2.0 file
@testset "Loading an FCS 2.0 file" begin
# download the FCS 2.0 file
cwd = pwd()
cd(cwd*"/testdata")
@info "Downloading FCS 2.0 file ..."
io = open("testFCS2.fcs", "w")
r = HTTP.request("GET", "https://flowrepository.org/experiments/4/fcs_files/326/download", response_stream=io)
close(io)
cd(cwd)
@info "Done."

# load the FCS 2.0 file
@test_throws ErrorException @test_warn "FSC2.0 files are not guaranteed to work" flowrun = load("testdata/testFCS2.fcs")

# cleanup
rm("testdata/testFCS2.fcs", force=true)
@info "FCS 2.0 file removed"
end

# test the size of the file
@testset "SSC-A size" begin
flowrun = load("testdata/BD-FACS-Aria-II.fcs")

Expand Down

0 comments on commit 959aafb

Please sign in to comment.