diff options
author | Ignat Beresnev <ignat.beresnev@jetbrains.com> | 2023-02-09 03:15:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-09 03:15:52 +0100 |
commit | 7546efb83afa39770be5c7b9df72edc115e59a5b (patch) | |
tree | 0066c2b9e833e7dd7fd8cfafc3a1d05d15f40000 /core/testdata/format/website-samples | |
parent | 683f6bb418bada9c90d2ffbd5040b3968e1c3522 (diff) | |
download | dokka-7546efb83afa39770be5c7b9df72edc115e59a5b.tar.gz dokka-7546efb83afa39770be5c7b9df72edc115e59a5b.tar.bz2 dokka-7546efb83afa39770be5c7b9df72edc115e59a5b.zip |
Remove old test data (#2824)
Diffstat (limited to 'core/testdata/format/website-samples')
10 files changed, 0 insertions, 215 deletions
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 ---- - -<div class='api-docs-breadcrumbs'><a href="test/index">test</a> / <a href="test/foo">foo</a></div> - -# foo - -<div class="signature"><code><span class="keyword">fun </span><span class="identifier">foo</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code></div> -<div class="sample" markdown="1"> - -``` kotlin -import some.* - -fun main(args: Array<String>) { -//sampleStart - -//sampleEnd -} -``` - -</div> 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 ---- - -<div class='api-docs-breadcrumbs'><a href="test/index">test</a> / <a href="test/foo">foo</a></div> - -# foo - -<div class="signature"><code><span class="keyword">fun </span><span class="identifier">foo</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code></div> -<div class="sample" markdown="1"> - -``` kotlin -import same.* -import some.* - -fun main(args: Array<String>) { -//sampleStart - -//sampleEnd -} -``` - -</div> 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<Int, MutableList<String>> = 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 ---- - -<div class='api-docs-breadcrumbs'><a href="test/index">test</a> / <a href="test/foo">foo</a></div> - -# foo - -<div class="signature"><code><span class="keyword">fun </span><span class="identifier">foo</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code></div> -<div class="sample" markdown="1"> - -``` kotlin - - -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 -} -``` - -</div> 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 ---- - -<div class='api-docs-breadcrumbs'><a href="test/index">test</a> / <a href="test/foo">foo</a></div> - -# foo - -<div class="overload-group" markdown="1"> - -<div class="signature"><code><span class="keyword">fun </span><span class="identifier">foo</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Int</span></code></div> - -Groups elements of the original sequence by the key returned by the given <a href="#">keySelector</a> function -applied to each element and returns a map where each group key is associated with a list of corresponding elements. - -<div class="sample" markdown="1"> - -``` kotlin - - -fun main(args: Array<String>) { -//sampleStart -if (true) { - println(property) -} -//sampleEnd -} -``` - -</div> - -</div> - -<div class="overload-group" markdown="1"> - -<div class="signature"><code><span class="keyword">fun </span><span class="identifier">foo</span><span class="symbol">(</span><span class="parameterName" id="$foo(kotlin.Int)/i">i</span><span class="symbol">:</span> <span class="identifier">Int</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Int</span></code></div> - -</div> 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 ---- - -<div class='api-docs-breadcrumbs'><a href="test/index">test</a> / <a href="test/a">a</a></div> - -# a - -<div class="signature"><code><span class="keyword">fun </span><span class="identifier">a</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">String</span></code></div> -<div class="sample" markdown="1"> - -``` kotlin - - -fun main(args: Array<String>) { -//sampleStart -println(a()) // Hello, Work -println("a() == b() is ${a() == b()}") // true -//sampleEnd -} -``` - -</div> |