mirror of
https://github.com/garraflavatra/go-fmp.git
synced 2025-06-28 04:25:11 +00:00
Tables
This commit is contained in:
@ -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)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user