Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
abcsds committed Jan 8, 2025
1 parent fdeabdc commit 0c5cd27
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using XDF, Downloads, Test
using XDF, Downloads, Test, SHA

@testset "Minimal XDF file" begin
url = "https://github.com/xdf-modules/example-files/blob/master/minimal.xdf?raw=true"
Expand Down Expand Up @@ -82,25 +82,25 @@ end
using XDF: XDF
streams = XDF.read_xdf(file)
end
# @testset "strings.dejitter" begin
# using XDF: XDF
# streams = XDF.read_xdf(file)
# s1 = streams[3735928559]
# @test s1["type"] == "Marker"
# @test s1["nchannels"] == 2
# @test s1["srate"] == 1000.0
# @test s1["dtype"] == String
# @test size(s1["data"]) == (1, 2)
# @test s1["data"] == ["Marker 0A" "Marker 0A"]
# s2 = streams[46202862]
# @test s2["type"] == "EEG"
# @test s2["nchannels"] == 64
# @test s2["srate"] == 1000.0
# @test s2["dtype"] == Float64
# @test size(s2["data"]) == (1, 64)
# @test sum(s2["data"]) == 0.0
# sgs = [XDF.dejitter(streams[k])["segments"] for k in keys(streams)]
# @test sgs[1] == [(1, 1)]
# @test sgs[2] == [(1, 1)]
# end
@testset "strings.markers" begin
using XDF: XDF
streams = XDF.read_xdf(file)
s1 = streams[3735928559]
@test s1["type"] == "Marker"
@test s1["nchannels"] == 2
@test s1["srate"] == 1000.0
@test s1["dtype"] == String
@test size(s1["data"]) == (1, 2)
@test s1["data"] == ["Marker 0A" "Marker 0A"]
s2 = streams[46202862]
@test s2["type"] == "EEG"
@test s2["nchannels"] == 64
@test s2["srate"] == 1000.0
@test s2["dtype"] == Float64
@test size(s2["data"]) == (1, 64)
@test sum(s2["data"]) == 0.0
# sgs = [XDF.dejitter(streams[k])["segments"] for k in keys(streams)]
# @test sgs[1] == [(1, 1)]
# @test sgs[2] == [(1, 1)]
end
end

0 comments on commit 0c5cd27

Please sign in to comment.