Skip to content

Commit

Permalink
Merge pull request #10 from exaexa/mk-fix-warn
Browse files Browse the repository at this point in the history
update the deprecated warning syntax
  • Loading branch information
tlnagy authored Nov 3, 2020
2 parents b43efa1 + 959aafb commit 32db1a0
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "FCSFiles"
uuid = "d76558cf-badf-52d4-a17e-381ab0b0d937"
version = "0.1.2"
version = "0.1.3"

[deps]
FileIO = "5789e2e9-d7fb-5bc7-8068-2c6fae9b9549"
Expand Down
2 changes: 1 addition & 1 deletion src/parse.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function parse_header(io)
read!(io, rawversion)
version = String(rawversion)
if "$version" != "FCS3.0" && version != "FCS3.1"
warn("$version files are not guaranteed to work")
@warn "$version files are not guaranteed to work"
end
seek(io, 10)
# start, end positions of TEXT, DATA, and ANALYSIS sections
Expand Down
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

2 comments on commit 32db1a0

@tlnagy
Copy link
Owner Author

@tlnagy tlnagy commented on 32db1a0 Nov 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/24109

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.3 -m "<description of version>" 32db1a0a116b7bd1d8436a403c92628ca3b8d211
git push origin v0.1.3

Please sign in to comment.