Skip to content

Commit

Permalink
use set values instead of calling random
Browse files Browse the repository at this point in the history
  • Loading branch information
palday committed Oct 8, 2024
1 parent 42a4700 commit 9b618ae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/samples.jl
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,10 @@ end
sample_offset_in_unit=-0.5,
sample_type=Int16,
sample_rate=50.2)
samples = Samples(rand(Random.MersenneTwister(0), sample_type(info), 3, 5), info, true)
data = Int16[20032 4760 27427 -20758 24287
14240 5037 5598 -5888 21784
16885 600 20880 -32493 -19305]
samples = Samples(data, info, true)
M = VERSION >= v"1.6" ? "Matrix{Int16}" : "Array{Int16,2}"
@test sprint(show, samples, context=(:compact => true)) == "Samples(3×5 $M)"
@test sprint(show, samples) == """
Expand Down

0 comments on commit 9b618ae

Please sign in to comment.