about summary refs log tree commit homepage
path: root/test
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-10-17 06:36:28 +0000
committerEric Wong <normalperson@yhbt.net>2013-10-17 06:36:28 +0000
commit27157b3a8cf6d2e37d80dfa130b56711dcb8cd28 (patch)
tree37dedc444a2b2d723954ae67214d6e03ad9a86ca /test
parent605b8403bec9607b2aa818ca9e1daeea607e89fa (diff)
downloaddtas-27157b3a8cf6d2e37d80dfa130b56711dcb8cd28.tar.gz
This allows parsing and will eventually interact with trimfx.
Diffstat (limited to 'test')
-rw-r--r--test/test_fadefx.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/test_fadefx.rb b/test/test_fadefx.rb
new file mode 100644
index 0000000..57ddabd
--- /dev/null
+++ b/test/test_fadefx.rb
@@ -0,0 +1,18 @@
+# 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_relative 'helper'
+require 'dtas/fadefx'
+
+class TestFadeFX < Testcase
+  def test_fadefx
+    ffx = DTAS::FadeFX.new("fade=t1,t3.1;l4,t1")
+    assert_equal 't', ffx.out_prev.type
+    assert_equal 1, ffx.out_prev.len
+    assert_equal 't', ffx.in_main.type
+    assert_equal 3.1, ffx.in_main.len
+    assert_equal 'l', ffx.out_main.type
+    assert_equal 4, ffx.out_main.len
+    assert_equal 't', ffx.in_next.type
+    assert_equal 1, ffx.in_next.len
+  end
+end