From 9b618ae64b1066edad070c16b28490fc58c92724 Mon Sep 17 00:00:00 2001 From: Phillip Alday Date: Tue, 8 Oct 2024 13:37:08 -0500 Subject: [PATCH] use set values instead of calling random --- test/samples.jl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/samples.jl b/test/samples.jl index 81911b1..3d044b4 100644 --- a/test/samples.jl +++ b/test/samples.jl @@ -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) == """