PortAudio.jl/test/runtests.jl

19 lines
444 B
Julia
Raw Normal View History

2014-07-01 03:24:29 +02:00
#!/usr/bin/env julia
2016-03-20 05:28:56 +01:00
using PortAudio
using Test
@testset "PortAudio Tests" begin
@testset "Reports version" begin
io = IOBuffer()
PortAudio.versioninfo(io)
result = split(String(take!((io))), "\n")
# make sure this is the same version I tested with
@test startswith(result[1], "PortAudio V19")
end
@testset "Can list devices without crashing" begin
PortAudio.devices()
end
end