From 7546efb83afa39770be5c7b9df72edc115e59a5b Mon Sep 17 00:00:00 2001 From: Ignat Beresnev Date: Thu, 9 Feb 2023 03:15:52 +0100 Subject: Remove old test data (#2824) --- core/testdata/format/website-html/dataTags/jre7.kt | 11 ---- core/testdata/format/website-html/dataTags/js.kt | 11 ---- core/testdata/format/website-html/dataTags/jvm.kt | 11 ---- .../dataTags/multiplatform.package.html | 74 ---------------------- .../website-html/dataTagsInGroupNode/jre7.kt | 0 .../format/website-html/dataTagsInGroupNode/js.kt | 8 --- .../format/website-html/dataTagsInGroupNode/jvm.kt | 9 --- .../dataTagsInGroupNode/multiplatform.html | 35 ---------- .../dataTagsInGroupNode/multiplatform.package.html | 26 -------- core/testdata/format/website-html/dropImport.html | 15 ----- core/testdata/format/website-html/dropImport.kt | 12 ---- .../format/website-html/newLinesInImportList.html | 16 ----- .../format/website-html/newLinesInImportList.kt | 12 ---- .../format/website-html/newLinesInSamples.html | 23 ------- .../format/website-html/newLinesInSamples.kt | 19 ------ .../format/website-html/overloadGroup.html | 22 ------- core/testdata/format/website-html/overloadGroup.kt | 15 ----- core/testdata/format/website-html/returnTag.html | 13 ---- core/testdata/format/website-html/returnTag.kt | 11 ---- core/testdata/format/website-html/sample.html | 25 -------- core/testdata/format/website-html/sample.kt | 16 ----- .../format/website-html/sampleWithAsserts.html | 28 -------- .../format/website-html/sampleWithAsserts.kt | 34 ---------- 23 files changed, 446 deletions(-) delete mode 100644 core/testdata/format/website-html/dataTags/jre7.kt delete mode 100644 core/testdata/format/website-html/dataTags/js.kt delete mode 100644 core/testdata/format/website-html/dataTags/jvm.kt delete mode 100644 core/testdata/format/website-html/dataTags/multiplatform.package.html delete mode 100644 core/testdata/format/website-html/dataTagsInGroupNode/jre7.kt delete mode 100644 core/testdata/format/website-html/dataTagsInGroupNode/js.kt delete mode 100644 core/testdata/format/website-html/dataTagsInGroupNode/jvm.kt delete mode 100644 core/testdata/format/website-html/dataTagsInGroupNode/multiplatform.html delete mode 100644 core/testdata/format/website-html/dataTagsInGroupNode/multiplatform.package.html delete mode 100644 core/testdata/format/website-html/dropImport.html delete mode 100644 core/testdata/format/website-html/dropImport.kt delete mode 100644 core/testdata/format/website-html/newLinesInImportList.html delete mode 100644 core/testdata/format/website-html/newLinesInImportList.kt delete mode 100644 core/testdata/format/website-html/newLinesInSamples.html delete mode 100644 core/testdata/format/website-html/newLinesInSamples.kt delete mode 100644 core/testdata/format/website-html/overloadGroup.html delete mode 100644 core/testdata/format/website-html/overloadGroup.kt delete mode 100644 core/testdata/format/website-html/returnTag.html delete mode 100644 core/testdata/format/website-html/returnTag.kt delete mode 100644 core/testdata/format/website-html/sample.html delete mode 100644 core/testdata/format/website-html/sample.kt delete mode 100644 core/testdata/format/website-html/sampleWithAsserts.html delete mode 100644 core/testdata/format/website-html/sampleWithAsserts.kt (limited to 'core/testdata/format/website-html') diff --git a/core/testdata/format/website-html/dataTags/jre7.kt b/core/testdata/format/website-html/dataTags/jre7.kt deleted file mode 100644 index d21b8d7b..00000000 --- a/core/testdata/format/website-html/dataTags/jre7.kt +++ /dev/null @@ -1,11 +0,0 @@ -package foo - -@SinceKotlin("1.1") -fun jre7New() {} - -fun jre7() {} - -fun shared() {} - -@SinceKotlin("1.1") -fun sharedNew() {} \ No newline at end of file diff --git a/core/testdata/format/website-html/dataTags/js.kt b/core/testdata/format/website-html/dataTags/js.kt deleted file mode 100644 index b22d7088..00000000 --- a/core/testdata/format/website-html/dataTags/js.kt +++ /dev/null @@ -1,11 +0,0 @@ -package foo - -@SinceKotlin("1.1") -fun jsNew() {} - -fun js() {} - -fun shared() {} - -@SinceKotlin("1.1") -fun sharedNew() {} \ No newline at end of file diff --git a/core/testdata/format/website-html/dataTags/jvm.kt b/core/testdata/format/website-html/dataTags/jvm.kt deleted file mode 100644 index 02d04226..00000000 --- a/core/testdata/format/website-html/dataTags/jvm.kt +++ /dev/null @@ -1,11 +0,0 @@ -package foo - -@SinceKotlin("1.1") -fun jvmNew() {} - -fun jvm() {} - -fun shared() {} - -@SinceKotlin("1.1") -fun sharedNew() {} \ No newline at end of file diff --git a/core/testdata/format/website-html/dataTags/multiplatform.package.html b/core/testdata/format/website-html/dataTags/multiplatform.package.html deleted file mode 100644 index 99f0b7a2..00000000 --- a/core/testdata/format/website-html/dataTags/multiplatform.package.html +++ /dev/null @@ -1,74 +0,0 @@ -
test / foo
-

Package foo

-

Functions

-
-
JVM
-
JRE7
-
1.0
-
-

jre7

-
fun jre7(): Unit
-
-
-
-
JVM
-
JRE7
-
1.1
-
-

jre7New

-
fun jre7New(): Unit
-
-
-
-
JS
-
1.0
-
-

js

-
fun js(): Unit
-
-
-
-
JS
-
1.1
-
-

jsNew

-
fun jsNew(): Unit
-
-
-
-
JVM
-
1.0
-
-

jvm

-
fun jvm(): Unit
-
-
-
-
JVM
-
1.1
-
-

jvmNew

-
fun jvmNew(): Unit
-
-
-
-
JVM
-
JRE7
-
JS
-
1.0
-
-

shared

-
fun shared(): Unit
-
-
-
-
JVM
-
JRE7
-
JS
-
1.1
-
-

sharedNew

-
fun sharedNew(): Unit
-
-
-
diff --git a/core/testdata/format/website-html/dataTagsInGroupNode/jre7.kt b/core/testdata/format/website-html/dataTagsInGroupNode/jre7.kt deleted file mode 100644 index e69de29b..00000000 diff --git a/core/testdata/format/website-html/dataTagsInGroupNode/js.kt b/core/testdata/format/website-html/dataTagsInGroupNode/js.kt deleted file mode 100644 index 045f3f0d..00000000 --- a/core/testdata/format/website-html/dataTagsInGroupNode/js.kt +++ /dev/null @@ -1,8 +0,0 @@ -package pack - -class Some { - - fun magic() { - - } -} \ No newline at end of file diff --git a/core/testdata/format/website-html/dataTagsInGroupNode/jvm.kt b/core/testdata/format/website-html/dataTagsInGroupNode/jvm.kt deleted file mode 100644 index 57f36742..00000000 --- a/core/testdata/format/website-html/dataTagsInGroupNode/jvm.kt +++ /dev/null @@ -1,9 +0,0 @@ -package pack - -class SomeCoolJvmClass { - fun magic() { - - } -} - -typealias Some = SomeCoolJvmClass \ No newline at end of file diff --git a/core/testdata/format/website-html/dataTagsInGroupNode/multiplatform.html b/core/testdata/format/website-html/dataTagsInGroupNode/multiplatform.html deleted file mode 100644 index eddee862..00000000 --- a/core/testdata/format/website-html/dataTagsInGroupNode/multiplatform.html +++ /dev/null @@ -1,35 +0,0 @@ -
test / pack / Some
-

Some

-
-
-
JVM
-
1.0
-
-
typealias Some = SomeCoolJvmClass
-
-
-
JS
-
1.0
-
-
class Some
-
-

Constructors

-
-
JS
-
1.0
-
-

<init>

-
Some()
-
-
-
-

Functions

-
-
JS
-
1.0
-
-

magic

-
fun magic(): Unit
-
-
-
diff --git a/core/testdata/format/website-html/dataTagsInGroupNode/multiplatform.package.html b/core/testdata/format/website-html/dataTagsInGroupNode/multiplatform.package.html deleted file mode 100644 index 99aae350..00000000 --- a/core/testdata/format/website-html/dataTagsInGroupNode/multiplatform.package.html +++ /dev/null @@ -1,26 +0,0 @@ -
test / pack
-

Package pack

-

Types

-
-

Some

-
-
JVM
-
1.0
-
-
typealias Some = SomeCoolJvmClass
-
-
JS
-
1.0
-
-
class Some
-
-
-
-
JVM
-
1.0
-
-

SomeCoolJvmClass

-
class SomeCoolJvmClass
-
-
-
diff --git a/core/testdata/format/website-html/dropImport.html b/core/testdata/format/website-html/dropImport.html deleted file mode 100644 index b6748a5c..00000000 --- a/core/testdata/format/website-html/dropImport.html +++ /dev/null @@ -1,15 +0,0 @@ -
test / foo
-

foo

-
-
-
- -
fun foo(): Unit
-
import some.*
-
-fun main(args: Array<String>) {
-//sampleStart
-
-//sampleEnd
-}
-
diff --git a/core/testdata/format/website-html/dropImport.kt b/core/testdata/format/website-html/dropImport.kt deleted file mode 100644 index 7b8d9f4e..00000000 --- a/core/testdata/format/website-html/dropImport.kt +++ /dev/null @@ -1,12 +0,0 @@ -import samples.* -import some.* - -/** - * @sample example1 - */ -fun foo() { -} - -fun example1() { - -} \ No newline at end of file diff --git a/core/testdata/format/website-html/newLinesInImportList.html b/core/testdata/format/website-html/newLinesInImportList.html deleted file mode 100644 index 712b6a4b..00000000 --- a/core/testdata/format/website-html/newLinesInImportList.html +++ /dev/null @@ -1,16 +0,0 @@ -
test / foo
-

foo

-
-
-
- -
fun foo(): Unit
-
import same.*
-import some.*
-
-fun main(args: Array<String>) {
-//sampleStart
-
-//sampleEnd
-}
-
diff --git a/core/testdata/format/website-html/newLinesInImportList.kt b/core/testdata/format/website-html/newLinesInImportList.kt deleted file mode 100644 index 836d9f6f..00000000 --- a/core/testdata/format/website-html/newLinesInImportList.kt +++ /dev/null @@ -1,12 +0,0 @@ -import same.* -import some.* - -/** - * @sample example1 - */ -fun foo() { -} - -fun example1() { - -} \ No newline at end of file diff --git a/core/testdata/format/website-html/newLinesInSamples.html b/core/testdata/format/website-html/newLinesInSamples.html deleted file mode 100644 index 7e379c68..00000000 --- a/core/testdata/format/website-html/newLinesInSamples.html +++ /dev/null @@ -1,23 +0,0 @@ -
test / foo
-

foo

-
-
-
- -
fun foo(): Unit
-

-
-fun main(args: Array<String>) {
-//sampleStart
-val words = listOf("a", "abc", "ab", "def", "abcd")
-val byLength = words.groupBy { it.length }
-
-println(byLength.keys) // [1, 3, 2, 4]
-println(byLength.values) // [[a], [abc, def], [ab], [abcd]]
-
-val mutableByLength: MutableMap<Int, MutableList<String>> = words.groupByTo(mutableMapOf()) { it.length }
-// same content as in byLength map, but the map is mutable
-println("mutableByLength == byLength is ${mutableByLength == byLength}") // true
-//sampleEnd
-}
-
diff --git a/core/testdata/format/website-html/newLinesInSamples.kt b/core/testdata/format/website-html/newLinesInSamples.kt deleted file mode 100644 index ee49aefc..00000000 --- a/core/testdata/format/website-html/newLinesInSamples.kt +++ /dev/null @@ -1,19 +0,0 @@ -fun groupBySample() { - val words = listOf("a", "abc", "ab", "def", "abcd") - val byLength = words.groupBy { it.length } - - assertPrints(byLength.keys, "[1, 3, 2, 4]") - assertPrints(byLength.values, "[[a], [abc, def], [ab], [abcd]]") - - val mutableByLength: MutableMap> = words.groupByTo(mutableMapOf()) { it.length } - // same content as in byLength map, but the map is mutable - assertTrue(mutableByLength == byLength) -} - - -/** - * @sample groupBySample - */ -fun foo() { - -} \ No newline at end of file diff --git a/core/testdata/format/website-html/overloadGroup.html b/core/testdata/format/website-html/overloadGroup.html deleted file mode 100644 index 808cd606..00000000 --- a/core/testdata/format/website-html/overloadGroup.html +++ /dev/null @@ -1,22 +0,0 @@ - -

magic

-
-
-
- -
fun magic(spell: String): Int
-

Parameters

-

-spell - The text of spell, often distributed on scrolls

-

Return Spell ID for future casts

-
-
-
-
- -
fun magic(spell: Int): Int
-

Parameters

-

-spell - Spell ID of previously casted spell

-

Return Spell ID for future casts

-
diff --git a/core/testdata/format/website-html/overloadGroup.kt b/core/testdata/format/website-html/overloadGroup.kt deleted file mode 100644 index 5bc98e3d..00000000 --- a/core/testdata/format/website-html/overloadGroup.kt +++ /dev/null @@ -1,15 +0,0 @@ -/** - * @param spell The text of spell, often distributed on scrolls - * @return Spell ID for future casts - */ -fun magic(spell: String): Int { - -} - -/** - * @param spell Spell ID of previously casted spell - * @return Spell ID for future casts - */ -fun magic(spell: Int): Int { - -} \ No newline at end of file diff --git a/core/testdata/format/website-html/returnTag.html b/core/testdata/format/website-html/returnTag.html deleted file mode 100644 index 2e761527..00000000 --- a/core/testdata/format/website-html/returnTag.html +++ /dev/null @@ -1,13 +0,0 @@ - -

indexOf

-
-
-
- -
fun Foo.indexOf(
    char: Char,
    startIndex: Int = 0,
    ignoreCase: Boolean = false
): Int
-

Returns the index within this string of the first occurrence of the specified character, starting from the specified startIndex.

-

Parameters

-

-ignoreCase - true to ignore character case when matching a character. By default false.

-

Returns An index of the first occurrence of char or -1 if none is found.

-
diff --git a/core/testdata/format/website-html/returnTag.kt b/core/testdata/format/website-html/returnTag.kt deleted file mode 100644 index 669c14f9..00000000 --- a/core/testdata/format/website-html/returnTag.kt +++ /dev/null @@ -1,11 +0,0 @@ -class Foo - -/** - * Returns the index within this string of the first occurrence of the specified character, starting from the specified [startIndex]. - * - * @param ignoreCase `true` to ignore character case when matching a character. By default `false`. - * @returns An index of the first occurrence of [char] or -1 if none is found. - */ -fun Foo.indexOf(char: Char, startIndex: Int = 0, ignoreCase: Boolean = false): Int { - return -1 -} diff --git a/core/testdata/format/website-html/sample.html b/core/testdata/format/website-html/sample.html deleted file mode 100644 index 479af45c..00000000 --- a/core/testdata/format/website-html/sample.html +++ /dev/null @@ -1,25 +0,0 @@ - -

foo

-
-
-
- -
fun foo(): Int
-

Groups elements of the original sequence by the key returned by the given keySelector function -applied to each element and returns a map where each group key is associated with a list of corresponding elements.

-

-
-fun main(args: Array<String>) {
-//sampleStart
-if (true) {
-    println(property)
-}
-//sampleEnd
-}
-
-
-
-
- -
fun foo(i: Int): Int
-
diff --git a/core/testdata/format/website-html/sample.kt b/core/testdata/format/website-html/sample.kt deleted file mode 100644 index a664c2f5..00000000 --- a/core/testdata/format/website-html/sample.kt +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Groups elements of the original sequence by the key returned by the given [keySelector] function - * applied to each element and returns a map where each group key is associated with a list of corresponding elements. - * @sample example1 - */ -fun foo(): Int { - return 0 -} - -fun foo(i: Int): Int { - return 1 -} - -fun example1(node: String) = if (true) { - println(property) -} diff --git a/core/testdata/format/website-html/sampleWithAsserts.html b/core/testdata/format/website-html/sampleWithAsserts.html deleted file mode 100644 index 3febe91e..00000000 --- a/core/testdata/format/website-html/sampleWithAsserts.html +++ /dev/null @@ -1,28 +0,0 @@ - -

a

-
-
-
- -
fun a(): String
-
import java.io.FileNotFoundException
-import java.io.File
-
-fun main(args: Array<String>) {
-//sampleStart
-println(a()) // Hello, Work
-println("a() == b() is ${a() == b()}") // true
-// A eq B
-println("a() == b() is ${a() == b()}") // true
-// readSomeFile(File("some.txt")) // reading file now will fail
-// readSomeFile(File("some.txt")) // will fail with FileNotFoundException
-
-// readSomeFile(File("some.txt")) //  will fail
-
-fun indented() {
-    // A neq B
-    println("a() != b() is ${a() != b()}") // false
-}
-//sampleEnd
-}
-
diff --git a/core/testdata/format/website-html/sampleWithAsserts.kt b/core/testdata/format/website-html/sampleWithAsserts.kt deleted file mode 100644 index bb5848e6..00000000 --- a/core/testdata/format/website-html/sampleWithAsserts.kt +++ /dev/null @@ -1,34 +0,0 @@ -import java.io.FileNotFoundException -import java.io.File - -/** - * @sample sample - */ -fun a(): String { - return "Hello, Work" -} - -fun b(): String { - return "Hello, Rest" -} - -/** - * @throws FileNotFoundException every time - */ -fun readSomeFile(f: File) { - throw FileNotFoundException("BOOM") -} - -fun sample() { - assertPrints(a(), "Hello, Work") - assertTrue(a() == b()) - assertTrue(a() == b(), "A eq B") - assertFails("reading file now") { readSomeFile(File("some.txt")) } - assertFailsWith { readSomeFile(File("some.txt")) } - - assertFails { readSomeFile(File("some.txt")) } - - fun indented() { - assertFalse(a() != b(), "A neq B") - } -} \ No newline at end of file -- cgit