Sha256: 2d7579ef8d61f65e649b20b1ca44c62194b819488246a36cbaa1ce79b3122d16

Contents?: true

Size: 494 Bytes

Versions: 11

Compression:

Stored size: 494 Bytes

Contents

# -*- coding: utf-8 -*-


require_relative 'helper'


class TestSound < Test::Unit::TestCase

  def s()
    Beeps::Sound.new Beeps::SineWave.new, 0.1
  end

  def test_play()
    assert_nothing_raised {s.play}
  end

  def test_beep()
    assert_nothing_raised {Beeps.be}
    assert_nothing_raised {Beeps.bee}
    assert_nothing_raised {Beeps.beep}
    assert_nothing_raised {Beeps.beeep}
    assert_nothing_raised {Beeps.beeeep}
    assert_nothing_raised {Beeps.beeeeep}
  end

end# TestBeeps

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
beeps-0.1.32 test/test_sound.rb
beeps-0.1.31 test/test_sound.rb
beeps-0.1.30 test/test_sound.rb
beeps-0.1.29 test/test_sound.rb
beeps-0.1.28 test/test_sound.rb
beeps-0.1.27 test/test_sound.rb
beeps-0.1.26 test/test_sound.rb
beeps-0.1.25 test/test_sound.rb
beeps-0.1.24 test/test_sound.rb
beeps-0.1.23 test/test_sound.rb
beeps-0.1.22 test/test_sound.rb