We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a52548 commit 324b8d4Copy full SHA for 324b8d4
bindings/ruby/tests/test_whisper.rb
@@ -29,6 +29,12 @@ def test_full_lang_id
29
assert_equal 0, whisper.full_lang_id
30
end
31
32
+ def test_full_get_segment
33
+ segment = whisper.full_get_segment(0)
34
+ assert_equal 0, segment.start_time
35
+ assert_match /ask not what your country can do for you, ask what you can do for your country/, segment.text
36
+ end
37
+
38
def test_full_get_segment_t0
39
assert_equal 0, whisper.full_get_segment_t0(0)
40
assert_raise IndexError do
0 commit comments