Skip to content

Commit 58ea3c2

Browse files
committed
Simplify test package structure
Use 'tests' as a common package prefix
1 parent a7def44 commit 58ea3c2

26 files changed

+61
-59
lines changed

core/commonTest/src/contract/CollectionBehaviors.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package kotlinx.collections.immutable.contractTests
17+
package tests.contract
1818

1919
public fun <T> CompareContext<List<T>>.listBehavior() {
2020
equalityBehavior()

core/commonTest/src/contract/ComparisonDSL.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
* limitations under the License.
1515
*/
1616

17-
package kotlinx.collections.immutable.contractTests
17+
package tests.contract
1818

19-
import kotlinx.collections.immutable.tests.assertTypeEquals
19+
import tests.assertTypeEquals
2020
import kotlin.test.*
2121

2222
public fun <T> compare(expected: T, actual: T, block: CompareContext<T>.() -> Unit) {

core/commonTest/src/contract/list/ImmutableListTest.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
* limitations under the License.
1515
*/
1616

17-
package kotlinx.collections.immutable.contractTests.immutableList
17+
package tests.contract.list
1818

1919
import kotlinx.collections.immutable.*
20-
import kotlinx.collections.immutable.contractTests.compare
21-
import kotlinx.collections.immutable.contractTests.listBehavior
22-
import kotlinx.collections.immutable.tests.*
20+
import tests.contract.compare
21+
import tests.contract.listBehavior
22+
import tests.*
2323
import kotlin.test.*
2424

2525
class ImmutableListTest {

core/commonTest/src/contract/map/ImmutableMapTest.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
* limitations under the License.
1515
*/
1616

17-
package kotlinx.collections.immutable.contractTests.immutableMap
17+
package tests.contract.map
1818

1919
import kotlinx.collections.immutable.*
20-
import kotlinx.collections.immutable.contractTests.collectionBehavior
21-
import kotlinx.collections.immutable.contractTests.compare
22-
import kotlinx.collections.immutable.contractTests.mapBehavior
23-
import kotlinx.collections.immutable.contractTests.setBehavior
20+
import tests.contract.collectionBehavior
21+
import tests.contract.compare
22+
import tests.contract.mapBehavior
23+
import tests.contract.setBehavior
2424
import kotlin.test.*
2525

2626
class ImmutableHashMapTest : ImmutableMapTest() {

core/commonTest/src/contract/set/ImmutableSetTest.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
* limitations under the License.
1515
*/
1616

17-
package kotlinx.collections.immutable.contractTests.immutableSet
17+
package tests.contract.set
1818

1919
import kotlinx.collections.immutable.*
20-
import kotlinx.collections.immutable.contractTests.compare
21-
import kotlinx.collections.immutable.contractTests.setBehavior
22-
import kotlinx.collections.immutable.tests.isDigit
23-
import kotlinx.collections.immutable.tests.isUpperCase
20+
import tests.contract.compare
21+
import tests.contract.setBehavior
22+
import tests.isDigit
23+
import tests.isUpperCase
2424
import kotlin.test.*
2525

2626
class ImmutableHashSetTest : ImmutableSetTestBase() {

core/commonTest/src/implementations/list/BufferIteratorTest.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414
* limitations under the License.
1515
*/
1616

17-
package kotlinx.collections.immutable.implementations.immutableList
17+
package tests.implementations.list
1818

19+
import kotlinx.collections.immutable.implementations.immutableList.*
1920
import kotlin.test.*
2021

2122
class BufferIteratorTest {

core/commonTest/src/implementations/list/TrieIteratorTest.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414
* limitations under the License.
1515
*/
1616

17-
package kotlinx.collections.immutable.implementations.immutableList
17+
package tests.implementations.list
1818

19+
import kotlinx.collections.immutable.implementations.immutableList.*
1920
import kotlinx.collections.immutable.internal.assert
2021
import kotlin.math.pow
2122
import kotlin.random.*

core/commonTest/src/stress/ObjectWrapper.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package kotlinx.collections.immutable.stressTests
17+
package tests.stress
1818

1919
import kotlinx.collections.immutable.internal.assert
2020
import kotlin.js.JsName

core/commonTest/src/stress/WrapperGenerator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package kotlinx.collections.immutable.stressTests
17+
package tests.stress
1818

1919
import kotlin.random.Random
2020

core/commonTest/src/stress/list/PersistentListBuilderTest.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
* limitations under the License.
1515
*/
1616

17-
package kotlinx.collections.immutable.stressTests.immutableList
17+
package tests.stress.list
1818

1919
import kotlinx.collections.immutable.PersistentList
20-
import kotlinx.collections.immutable.contractTests.compare
21-
import kotlinx.collections.immutable.contractTests.listIteratorProperties
2220
import kotlinx.collections.immutable.persistentListOf
23-
import kotlinx.collections.immutable.tests.*
21+
import tests.*
22+
import tests.contract.compare
23+
import tests.contract.listIteratorProperties
2424
import kotlin.random.Random
2525
import kotlin.test.*
2626

0 commit comments

Comments
 (0)