dtas.git  about / heads / tags
duct tape audio suite for *nix
blob 57ddabd4d455de348b0595349e13b88fc4fd0fb5 606 bytes (raw)
$ git show v0.6.0:test/test_fadefx.rb	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
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

git clone git://80x24.org/dtas.git
git clone https://80x24.org/dtas.git