about summary refs log tree commit homepage
path: root/test
diff options
authorEric Wong <normalperson@yhbt.net>2013-09-07 12:18:45 +0000
committerEric Wong <normalperson@yhbt.net>2013-09-07 12:21:07 +0000
commit8ebf63afe8c9af13868376e7618c840517618076 (patch)
treed6c6b8a73f67b1e9463c682bb53c39dfa21ff68b /test
parent5fe09ee3e080a2592e89d28f4157879d871485e9 (diff)
This is lacking tests and documentation, but it works from
a old trivial sample I had from a recording I previously
split using plain POSIX shell

splitfx is like make(1) for splitting and minor audio
editing.  It also allows any number of effects.
Diffstat (limited to 'test')
1 files changed, 14 insertions, 0 deletions
diff --git a/test/test_splitfx.rb b/test/test_splitfx.rb
new file mode 100644
index 0000000..1d36c54
--- /dev/null
+++ b/test/test_splitfx.rb
@@ -0,0 +1,14 @@
+# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
+# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
+require './test/helper'
+require 'dtas/splitfx'
+class TestSplitfx < Testcase
+  def test_cdda
+    sfx = DTAS::SplitFX.new
+    sfx.instance_eval do
+      @infmt = DTAS::Format.load("rate"=>44100)
+    end
+    assert_equal 118554000, sfx.t2s_cdda('44:48.3')
+  end