Sha256: eccd2ee3a73cee95cb78cb2f85a611010b0d732b4f5934e285771f97b8a1fbef
Contents?: true
Size: 485 Bytes
Versions: 6
Compression:
Stored size: 485 Bytes
Contents
require_relative 'helper' class TestSound < Test::Unit::TestCase RS = RubySketch B = Beeps PATH = 'test.wav' def sound() RS::Sound.load PATH end def setup() B::Sound.new(B::Oscillator.new >> B::Gain.new(gain: 0), 0.1).save PATH end def teardown() B::SoundPlayer.stop_all File.delete PATH if File.exist?(PATH) end def test_play_stop() s = sound assert_nothing_raised {s.play} assert_nothing_raised {s.stop} end end# TestSound
Version data entries
6 entries across 6 versions & 1 rubygems