Skip to content

Commit 781a3ac

Browse files
committed
Add test for Whisper::VAD::Context.allocate
1 parent b89944e commit 781a3ac

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bindings/ruby/test/test_vad_context.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,11 @@ def test_invalid_model_type
4040
Whisper::VAD::Context.new(Object.new)
4141
end
4242
end
43+
44+
def test_allocate
45+
vad = Whisper::VAD::Context.allocate
46+
assert_raise do
47+
vad.detect(AUDIO, Whisper::VAD::Params.new)
48+
end
49+
end
4350
end

0 commit comments

Comments
 (0)