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

Restructure, add script step constants

This commit is contained in:
2025-06-14 16:28:41 +02:00
parent 53134a0d09
commit 10285084eb
8 changed files with 390 additions and 200 deletions

View File

@ -1,22 +1,6 @@
package fmp
import (
"slices"
"testing"
)
func slicesHaveSameElements[Type comparable](a, b []Type) bool {
if len(a) != len(b) {
return false
}
for _, av := range a {
found := slices.Contains(b, av)
if !found {
return false
}
}
return true
}
import "testing"
func TestOpenFile(t *testing.T) {
f, err := OpenFile("../files/Untitled.fmp12")