Skip to content

Commit f03f1af

Browse files
committed
✅ Update args test for new option types
1 parent 8234a4b commit f03f1af

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

fluentffmpeg_test/args_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,14 @@ import (
1212
func TestArgsOrder(t *testing.T) {
1313
buff := &bytes.Buffer{}
1414

15-
desired := []string{"-f", "avi", "-i", "pipe:0", "-f", "mp4", "pipe:1"}
15+
desired := []string{"-f", "avi", "-test", "123", "-i", "pipe:0", "-f", "mp4", "-movflags", "empty_moov", "pipe:1", "-report"}
1616
args := fluentffmpeg.NewCommand("").
1717
PipeInput(buff).
18+
InputOptions("-test", "123").
1819
FromFormat("avi").
1920
OutputFormat("mp4").
21+
OutputOptions("-movflags", "empty_moov").
22+
Options("-report").
2023
PipeOutput(buff).GetArgs()
2124

2225
if !reflect.DeepEqual(args, desired) {

0 commit comments

Comments
 (0)