diff options
author | Norbert Preining <norbert@preining.info> | 2020-04-04 03:02:28 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-04-04 03:02:28 +0000 |
commit | 4f71d4ff0d1e7ff4607b58eb7d030bd860e44f3a (patch) | |
tree | d4e56c2a7dc233a34c572829037ac8fb346f14bc /support/arara/source/src/test/kotlin/org/islandoftex/arara/utils/ExtensionTest.kt | |
parent | 6cacb7b2abf477262c442913f467f219649afb26 (diff) |
CTAN sync 202004040302
Diffstat (limited to 'support/arara/source/src/test/kotlin/org/islandoftex/arara/utils/ExtensionTest.kt')
-rw-r--r-- | support/arara/source/src/test/kotlin/org/islandoftex/arara/utils/ExtensionTest.kt | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/support/arara/source/src/test/kotlin/org/islandoftex/arara/utils/ExtensionTest.kt b/support/arara/source/src/test/kotlin/org/islandoftex/arara/utils/ExtensionTest.kt deleted file mode 100644 index cd41545ee9..0000000000 --- a/support/arara/source/src/test/kotlin/org/islandoftex/arara/utils/ExtensionTest.kt +++ /dev/null @@ -1,23 +0,0 @@ -// SPDX-License-Identifier: BSD-3-Clause -package org.islandoftex.arara.utils - -import io.kotlintest.shouldBe -import io.kotlintest.shouldThrow -import io.kotlintest.specs.ShouldSpec - -class ExtensionTest : ShouldSpec({ - should("abbreviate strings correctly") { - "Quack quack".abbreviate(6) shouldBe "Quack…" - "Quack Quack".abbreviate(80) shouldBe "Quack Quack" - shouldThrow<IllegalArgumentException> { "Quack".abbreviate(1) } - } - - should("center strings correctly") { - "Quack".center(3, '-') shouldBe "Quack" - "Quack".center(9, '-') shouldBe "--Quack--" - } - - should("wrap strings correctly") { - "This text should be wrapped".wrap(10) shouldBe "This text\nshould be\nwrapped" - } -}) |