Commit ccba6519 authored by Andreas Bigger's avatar Andreas Bigger

add explicit target num frames > 1 test

parent 493193b5
...@@ -33,6 +33,16 @@ func TestInputThreshold(t *testing.T) { ...@@ -33,6 +33,16 @@ func TestInputThreshold(t *testing.T) {
require.Equal(t, uint64(2), output) require.Equal(t, uint64(2), output)
}, },
}, },
{
input: testInput{
TargetFrameSize: 1,
TargetNumFrames: 100000,
ApproxComprRatio: 0.4,
},
assertion: func(output uint64) {
require.Equal(t, uint64(250_000), output)
},
},
{ {
input: testInput{ input: testInput{
TargetFrameSize: 1, TargetFrameSize: 1,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment