From 668094e37934ca5ab486f92a7f19b28a716e82fe Mon Sep 17 00:00:00 2001 From: Daniil Ovchinnikov Date: Sat, 5 Oct 2024 23:59:12 +0200 Subject: [PATCH] implement `assertIterableEquals` via `toSet` This allows seeing the collection content in the error message. GitOrigin-RevId: 9b4ca827cdfc1884b4f1f0644a5c6b84bb44d0a8 --- .../org/editorconfig/language/EditorConfigTestingUtils.kt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/editorconfig/test/org/editorconfig/language/EditorConfigTestingUtils.kt b/plugins/editorconfig/test/org/editorconfig/language/EditorConfigTestingUtils.kt index 04596a49c849..5f682a3cec42 100644 --- a/plugins/editorconfig/test/org/editorconfig/language/EditorConfigTestingUtils.kt +++ b/plugins/editorconfig/test/org/editorconfig/language/EditorConfigTestingUtils.kt @@ -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 assertIterableEquals(first: Iterable, second: Iterable) { - assertTrue(first.all(second::contains)) - assertTrue(second.all(first::contains)) + Assert.assertEquals(first.toSet(), second.toSet()) }