func containsAllSpaces(t *testing.T, expectedSpaces []*space.Space, actualSpaces ...space.Space) assert.Comparison {
	return func() bool {
		if len(expectedSpaces) != len(actualSpaces) {
			t.Logf("actualSpaces did not have the expected length: %d vs %d", len(actualSpaces), len(expectedSpaces))
			return false
		}
		for _, expectedSpace := range expectedSpaces {
			found := false
			for _, actualSpace := range actualSpaces {
				if uuid.Equal(actualSpace.ID, expectedSpace.ID) {
					found = true
					break
				}
			}
			if !found {
				t.Logf("actualSpaces did not contain entry with ID='%v'", expectedSpace.ID)
				return false
			}
		}
		return true
	}
}
// containsAllSpaces verifies that the `expectedSpaces` array contains all `actualSpaces` in any order,
// by comparing the lengths and each ID,
containsAllSpaces verifies that the `expectedSpaces` array contains all `actualSpaces` in any order,
by comparing the lengths and each ID.
// containsAllSpaces verifies that the ` expectedSpaces ` array contains all ` actualSpaces ` in any order // by comparing the lengths and each ID
func containsAllSpaces(t *testing.T, expectedSpaces []*space.Space, actualSpaces ...space.Space) assert.Comparison {
	return func() bool {
		if len(expectedSpaces) != len(actualSpaces) {
			t.Logf("actualSpaces did not have the expected length: %d vs %d", len(actualSpaces), len(expectedSpaces))
			return false
		}
		for _, expectedSpace := range expectedSpaces {
			found := false
			for _, actualSpace := range actualSpaces {
				if uuid.Equal(actualSpace.ID, expectedSpace.ID) {
					found = true
					break
				}
			}
			if !found {
				t.Logf("actualSpaces did not contain entry with ID='%v'", expectedSpace.ID)
				return false
			}
		}
		return true
	}
}
func containsAllSpaces ( t * testing . T , expectedSpaces [ ] * space . Space , actualSpaces ... space . Space ) assert . Comparison { return func ( ) bool { if len ( expectedSpaces ) != len ( actualSpaces ) { t . Logf ( " " , len ( actualSpaces ) , len ( expectedSpaces ) ) return false } for _ , expectedSpace := range expectedSpaces { found := false for _ , actualSpace := range actualSpaces { if uuid . Equal ( actualSpace . ID , expectedSpace . ID ) { found = true break } } if ! found { t . Logf ( " " , expectedSpace . ID ) return false } } return true } }
containsAllSpaces verifies that the `expectedSpaces` array contains all `actualSpaces` in any order,
by comparing the lengths and each ID.
containsAllSpaces verifies that the ` expectedSpaces ` array contains all ` actualSpaces ` in any order by comparing the lengths and each ID .