Repository: ajalt/mordant (kotlin)

Issue:
Typo in Borders member TOP_BOTTOM (TOM_BOTTOM)
In the `com.github.ajalt.mordant.table.Borders` enum, the member for a top-and-bottom border is called `TOM_BOTTOM` instead of `TOP_BOTTOM`. [Source code](https://github.com/ajalt/mordant/blob/3a344a7ce17e312684e68beb539cb5fe557242d8/mordant/src/commonMain/kotlin/com/github/ajalt/mordant/table/Borders.kt#L14).

Pull request description:
Fixes #100

Patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index be13bb4b4..4c8453f72 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,9 @@
 # Changelog
 
+## Unreleased
+### Changed
+- Fix typo in enum name: renamed `Borders.TOM_BOTTOM` to `Borders.TOP_BOTTOM`. [(#100)](https://github.com/ajalt/mordant/issues/100)
+
 ## 2.0.0-beta13
 ### Added
 - Add `Animation.stop()` to stop an animation without clearing it. [(#95)](https://github.com/ajalt/mordant/issues/95)
diff --git a/mordant/src/commonMain/kotlin/com/github/ajalt/mordant/table/Borders.kt b/mordant/src/commonMain/kotlin/com/github/ajalt/mordant/table/Borders.kt
index 8e795bdf8..cf634ae3f 100644
--- a/mordant/src/commonMain/kotlin/com/github/ajalt/mordant/table/Borders.kt
+++ b/mordant/src/commonMain/kotlin/com/github/ajalt/mordant/table/Borders.kt
@@ -11,7 +11,7 @@ enum class Borders(
     RIGHT(left = false, top = false, right = true, bottom = false),
     BOTTOM_RIGHT(left = false, top = false, right = true, bottom = true),
     TOP(left = false, top = true, right = false, bottom = false),
-    TOM_BOTTOM(left = false, top = true, right = false, bottom = true),
+    TOP_BOTTOM(left = false, top = true, right = false, bottom = true),
     TOP_RIGHT(left = false, top = true, right = true, bottom = false),
     TOP_RIGHT_BOTTOM(left = false, top = true, right = true, bottom = true),
     LEFT(left = true, top = false, right = false, bottom = false),
@@ -22,4 +22,7 @@ enum class Borders(
     LEFT_TOP_BOTTOM(left = true, top = true, right = false, bottom = true),
     LEFT_TOP_RIGHT(left = true, top = true, right = true, bottom = false),
     ALL(left = true, top = true, right = true, bottom = true),
+    @Suppress("unused")
+    @Deprecated("Use TOP_BOTTOM", replaceWith = ReplaceWith("TOP_BOTTOM"))
+    TOM_BOTTOM(left = false, top = true, right = false, bottom = true),
 }
diff --git a/samples/table/src/commonMain/kotlin/com/github/ajalt/mordant/samples/main.kt b/samples/table/src/commonMain/kotlin/com/github/ajalt/mordant/samples/main.kt
index 613cf3ba0..aee1f6f60 100644
--- a/samples/table/src/commonMain/kotlin/com/github/ajalt/mordant/samples/main.kt
+++ b/samples/table/src/commonMain/kotlin/com/github/ajalt/mordant/samples/main.kt
@@ -30,7 +30,7 @@ fun main() {
             row("", "Projected Cost", "Actual Cost", "Difference")
         }
         body {
-            cellBorders = TOM_BOTTOM
+            cellBorders = TOP_BOTTOM
             column(0) {
                 style = TextStyle(bold = true)
                 cellBorders = ALL


Test patch:
diff --git a/mordant/src/commonTest/kotlin/com/github/ajalt/mordant/table/TableBorderTest.kt b/mordant/src/commonTest/kotlin/com/github/ajalt/mordant/table/TableBorderTest.kt
index ee3099a82..25ac5a3c7 100644
--- a/mordant/src/commonTest/kotlin/com/github/ajalt/mordant/table/TableBorderTest.kt
+++ b/mordant/src/commonTest/kotlin/com/github/ajalt/mordant/table/TableBorderTest.kt
@@ -45,7 +45,7 @@ class TableBorderTest : RenderingTest() {
     )
 
     @Test
-    fun TOM_BOTTOM() = doTest(TOM_BOTTOM,
+    fun TOP_BOTTOM() = doTest(TOP_BOTTOM,
         """
         ░───
         ░ ×