mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 06:50:54 +07:00
implement assertIterableEquals via toSet
This allows seeing the collection content in the error message. GitOrigin-RevId: 9b4ca827cdfc1884b4f1f0644a5c6b84bb44d0a8
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d2f938c08d
commit
668094e379
@@ -1,9 +1,8 @@
|
||||
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package org.editorconfig.language
|
||||
|
||||
import junit.framework.TestCase.assertTrue
|
||||
import org.junit.Assert
|
||||
|
||||
internal fun <T> assertIterableEquals(first: Iterable<T>, second: Iterable<T>) {
|
||||
assertTrue(first.all(second::contains))
|
||||
assertTrue(second.all(first::contains))
|
||||
Assert.assertEquals(first.toSet(), second.toSet())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user