summaryrefslogtreecommitdiff
path: root/src/main/kotlin/me/kyren223/trident/tests/MappingsExpansionTest.kt
blob: 0b66c4be6d2561dfe069fee6bcfacb2c9b7a8bc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package me.kyren223.trident.tests

import org.junit.Test

class MappingsExpansionTest {
    @Test
    fun testExpand() {
        val mappings = mapOf(
            "\$A" to "A",
            "\$BB" to "B",
            "\$CCC" to "C",
            "\$DDD" to "D",
            "\$EEE" to "E",
            "\$FFFFF" to "F",
            "\$GG" to "G",
            "\$UUU" to "U",
            "\$VVVV" to "V",
            "\$LLLLLL" to "L",
            "\$MM" to "M",
            "\$NN" to "N",
            "\$OOO" to "O",
            "\$PPP" to "P",
            "\$QQQQ" to "Q",
            "\$R" to "R",
            "\$WWW" to "W",
            "\$XX" to "X",
            "\$HI" to "H",
            "\$IJ" to "I",
            "\$JetBrains" to "J",
            "\$Krypton" to "K",
            "\$Soft" to "S",
            "\$Tnt" to "T",
            "\$Ycombinator" to "Y",
            "\$Zig" to "Z",
        ).toList().sortedByDescending { it.first.length }

        mappings.forEach { (key, value) ->
            println("$key -> $value")
        }

    }
}