diff options
Diffstat (limited to 'test/test_format.rb')
-rw-r--r-- | test/test_format.rb | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/test/test_format.rb b/test/test_format.rb index ba039a7..00fb3e3 100644 --- a/test/test_format.rb +++ b/test/test_format.rb @@ -34,20 +34,6 @@ class TestFormat < Minitest::Unit::TestCase assert_nil hash["channels"] end - def test_from_file - Tempfile.open(%w(tmp .wav)) do |tmp| - # generate an empty file with 1s of audio - cmd = %W(sox -r 96000 -b 24 -c 2 -n #{tmp.path} trim 0 1) - system(*cmd) - assert $?.success?, "#{cmd.inspect} failed: #$?" - fmt = DTAS::Format.new - fmt.from_file tmp.path - assert_equal 96000, fmt.rate - assert_equal 2, fmt.channels - tmp.unlink - end - end - def test_bytes_per_sample fmt = DTAS::Format.new assert_equal 4, fmt.bytes_per_sample |