voicemeeter-rb/test/lower_test.rb

21 lines
601 B
Ruby
Raw Normal View History

2023-08-07 13:04:54 +01:00
require_relative "minitest_helper"
2023-07-17 20:00:25 +01:00
class SetGetParamTest < Minitest::Test
def test_it_sets_and_gets_float_parameter
Test.vm.set("Fx.Reverb.On", 1)
assert_equal(1, Test.vm.get("Fx.Reverb.On"))
end
2023-07-18 19:35:53 +01:00
def test_it_sets_and_gets_string_parameter
Test.vm.set("Strip[0].Label", "strip0name")
assert_equal("strip0name", Test.vm.get("Strip[0].Label", true))
end
2023-07-17 20:00:25 +01:00
end
class SetGetButtonTest < Minitest::Test
def test_it_sets_and_gets_macrobutton_parameter
2023-07-18 19:35:53 +01:00
Test.vm.set_buttonstatus(0, 3, 1) # button[0], trigger, true
2023-07-17 20:00:25 +01:00
assert_equal(1, Test.vm.get_buttonstatus(0, 3))
end
end