about summary refs log tree commit homepage
path: root/test/test_trimfx.rb
diff options
context:
space:
mode:
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