about summary refs log tree commit homepage
path: root/test/test_trimfx.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-10-17 06:13:33 +0000
committerEric Wong <normalperson@yhbt.net>2013-10-17 06:13:33 +0000
commit605b8403bec9607b2aa818ca9e1daeea607e89fa (patch)
tree87125cd0bc710879572ad7eb70f60f6efae9f876 /test/test_trimfx.rb
parent1c77d0d7c414d43f751eeb308a1a47d87de6cc1e (diff)
downloaddtas-605b8403bec9607b2aa818ca9e1daeea607e89fa.tar.gz
Only lightly tested, but this should give us some idea of where
we'll be going...
Diffstat (limited to 'test/test_trimfx.rb')
-rw-r--r--test/test_trimfx.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/test_trimfx.rb b/test/test_trimfx.rb
index 0321e3c..0ef7264 100644
--- a/test/test_trimfx.rb
+++ b/test/test_trimfx.rb
@@ -39,7 +39,12 @@ class TestTrimFX < Testcase
     tfx = DTAS::TrimFX.new(%w(trim 1 0.5))
     assert_equal %w(trim 44100s 22050s), tfx.to_sox_arg(DTAS::Format.new)
 
-    tfx = DTAS::TrimFX.new(%w(trim 1 foo bar))
+    tfx = DTAS::TrimFX.new(%w(trim 1 sox vol -1dB))
     assert_equal %w(trim 44100s), tfx.to_sox_arg(DTAS::Format.new)
   end
+
+  def test_tfx_effects
+    tfx = DTAS::TrimFX.new(%w(trim 1 sox vol -1dB))
+    assert_equal %w(sox $SOXIN $SOXOUT $TRIMFX vol -1dB $FADEFX), tfx.cmd
+  end
 end