1
0
mirror of https://github.com/garraflavatra/go-fmp.git synced 2025-06-28 04:25:11 +00:00
This commit is contained in:
2025-06-14 15:19:36 +02:00
parent d9ffc3e573
commit b94fa28ba9
7 changed files with 49 additions and 65 deletions

View File

@ -29,14 +29,16 @@ func TestTables(t *testing.T) {
}
tables := f.Tables()
if len(tables) != 1 || tables[0].Name != "Untitled" {
tablesString := ""
for i, table := range tables {
tablesString += table.Name
if i < len(tables)-1 {
tablesString += ", "
}
expected := "WayDomains, WayProcesses, Untitled"
tablesString := ""
for i, table := range tables {
tablesString += table.Name
if i < len(tables)-1 {
tablesString += ", "
}
t.Errorf("expected tables to be 'Untitled', got '%s'", tablesString)
}
if tablesString != expected {
t.Errorf("expected tables to be '%s', got '%s'", expected, tablesString)
}
}