PortAudio.jl/test/runtests.jl

19 lines
444 B
Julia
Raw Normal View History

2014-06-30 21:24:29 -04:00
#!/usr/bin/env julia
2016-03-20 00:28:56 -04: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