diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-08-25 09:36:22 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-08-25 09:36:22 +0000 |
commit | 157b75aa71bb2d9e7140cd72f29451fa234a902a (patch) | |
tree | dd6c29146acbef5a0d8e4322507fc4b6ef5fd0f1 /test/test_format.rb | |
parent | 68ffa097e187da663fa3f537b430428ea5e8de2e (diff) | |
download | dtas-157b75aa71bb2d9e7140cd72f29451fa234a902a.tar.gz |
We'll be supporting reading the format from avprobe and ffprobe, so we should avoid tying ourselves to soxi
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 |