1
0
mirror of https://github.com/garraflavatra/go-fmp.git synced 2025-06-28 04:25:11 +00:00

Initial commit

This commit is contained in:
2025-06-11 16:01:49 +02:00
commit ee1ac01fc4
8 changed files with 117 additions and 0 deletions

16
fmp/fmp_test.go Normal file
View File

@ -0,0 +1,16 @@
package fmp
import "testing"
func TestOpenFile(t *testing.T) {
f, err := OpenFile("../files/Untitled.fmp12")
if err != nil {
t.Fatal(err)
}
if f.ApplicationName != "Pro 12.0" {
t.Errorf("expected application name to be 'Pro 12.0', got '%s'", f.ApplicationName)
}
if f.VersionDate.Format("2006-01-02") != "2025-01-11" {
t.Errorf("expected version date to be '2025-01-11', got '%s'", f.VersionDate.Format("2006-01-02"))
}
}