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-samples/dropImport.kt | 12 ------- core/testdata/format/website-samples/dropImport.md | 23 ------------- .../format/website-samples/newLinesInImportList.kt | 12 ------- .../format/website-samples/newLinesInImportList.md | 24 ------------- .../format/website-samples/newLinesInSamples.kt | 19 ----------- .../format/website-samples/newLinesInSamples.md | 31 ----------------- core/testdata/format/website-samples/sample.kt | 16 --------- core/testdata/format/website-samples/sample.md | 39 ---------------------- .../format/website-samples/sampleWithAsserts.kt | 15 --------- .../format/website-samples/sampleWithAsserts.md | 24 ------------- 10 files changed, 215 deletions(-) delete mode 100644 core/testdata/format/website-samples/dropImport.kt delete mode 100644 core/testdata/format/website-samples/dropImport.md delete mode 100644 core/testdata/format/website-samples/newLinesInImportList.kt delete mode 100644 core/testdata/format/website-samples/newLinesInImportList.md delete mode 100644 core/testdata/format/website-samples/newLinesInSamples.kt delete mode 100644 core/testdata/format/website-samples/newLinesInSamples.md delete mode 100644 core/testdata/format/website-samples/sample.kt delete mode 100644 core/testdata/format/website-samples/sample.md delete mode 100644 core/testdata/format/website-samples/sampleWithAsserts.kt delete mode 100644 core/testdata/format/website-samples/sampleWithAsserts.md (limited to 'core/testdata/format/website-samples') diff --git a/core/testdata/format/website-samples/dropImport.kt b/core/testdata/format/website-samples/dropImport.kt deleted file mode 100644 index 7b8d9f4e..00000000 --- a/core/testdata/format/website-samples/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-samples/dropImport.md b/core/testdata/format/website-samples/dropImport.md deleted file mode 100644 index 1e05678b..00000000 --- a/core/testdata/format/website-samples/dropImport.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -title: foo - test -layout: api ---- - -
test / foo
- -# foo - -
fun foo(): Unit
-
- -``` kotlin -import some.* - -fun main(args: Array) { -//sampleStart - -//sampleEnd -} -``` - -
diff --git a/core/testdata/format/website-samples/newLinesInImportList.kt b/core/testdata/format/website-samples/newLinesInImportList.kt deleted file mode 100644 index 836d9f6f..00000000 --- a/core/testdata/format/website-samples/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-samples/newLinesInImportList.md b/core/testdata/format/website-samples/newLinesInImportList.md deleted file mode 100644 index 27d796f8..00000000 --- a/core/testdata/format/website-samples/newLinesInImportList.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -title: foo - test -layout: api ---- - -
test / foo
- -# foo - -
fun foo(): Unit
-
- -``` kotlin -import same.* -import some.* - -fun main(args: Array) { -//sampleStart - -//sampleEnd -} -``` - -
diff --git a/core/testdata/format/website-samples/newLinesInSamples.kt b/core/testdata/format/website-samples/newLinesInSamples.kt deleted file mode 100644 index ee49aefc..00000000 --- a/core/testdata/format/website-samples/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-samples/newLinesInSamples.md b/core/testdata/format/website-samples/newLinesInSamples.md deleted file mode 100644 index 5344b983..00000000 --- a/core/testdata/format/website-samples/newLinesInSamples.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -title: foo - test -layout: api ---- - - - -# foo - -
fun foo(): Unit
-
- -``` kotlin - - -fun main(args: Array) { -//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> = 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-samples/sample.kt b/core/testdata/format/website-samples/sample.kt deleted file mode 100644 index a664c2f5..00000000 --- a/core/testdata/format/website-samples/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-samples/sample.md b/core/testdata/format/website-samples/sample.md deleted file mode 100644 index b29075a7..00000000 --- a/core/testdata/format/website-samples/sample.md +++ /dev/null @@ -1,39 +0,0 @@ ---- -title: foo - test -layout: api ---- - - - -# 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. - -
- -``` kotlin - - -fun main(args: Array) { -//sampleStart -if (true) { - println(property) -} -//sampleEnd -} -``` - -
- -
- -
- -
fun foo(i: Int): Int
- -
diff --git a/core/testdata/format/website-samples/sampleWithAsserts.kt b/core/testdata/format/website-samples/sampleWithAsserts.kt deleted file mode 100644 index bb9732d5..00000000 --- a/core/testdata/format/website-samples/sampleWithAsserts.kt +++ /dev/null @@ -1,15 +0,0 @@ -/** - * @sample sample - */ -fun a(): String { - return "Hello, Work" -} - -fun b(): String { - return "Hello, Rest" -} - -fun sample() { - assertPrints(a(), "Hello, Work") - assertTrue(a() == b()) -} \ No newline at end of file diff --git a/core/testdata/format/website-samples/sampleWithAsserts.md b/core/testdata/format/website-samples/sampleWithAsserts.md deleted file mode 100644 index c114468a..00000000 --- a/core/testdata/format/website-samples/sampleWithAsserts.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -title: a - test -layout: api ---- - - - -# a - -
fun a(): String
-
- -``` kotlin - - -fun main(args: Array) { -//sampleStart -println(a()) // Hello, Work -println("a() == b() is ${a() == b()}") // true -//sampleEnd -} -``` - -
-- cgit