feat: ConvertGUI v2.0 (Wails + preview/trim + NSIS + Gitea CI)
Build Windows Installer / build (push) Successful in 4m11s
Build Windows Installer / build (push) Successful in 4m11s
This commit is contained in:
40 files changed
+6084
-266
No files matched your search
@@ -0,0 +1,18 @@
|
||||
package main
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestParseInitialFile(t *testing.T) {
|
||||
if got := parseInitialFile([]string{"-i", `C:\clips\demo.mp4`}); got != `C:\clips\demo.mp4` {
|
||||
t.Fatalf("expected -i path, got %q", got)
|
||||
}
|
||||
if got := parseInitialFile([]string{"--debug", "-i", `E:\vid.mkv`}); got != `E:\vid.mkv` {
|
||||
t.Fatalf("expected -i path with --debug, got %q", got)
|
||||
}
|
||||
if got := parseInitialFile([]string{`D:\drop.mov`}); got != `D:\drop.mov` {
|
||||
t.Fatalf("expected positional path, got %q", got)
|
||||
}
|
||||
if got := parseInitialFile(nil); got != "" {
|
||||
t.Fatalf("expected empty string, got %q", got)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user