diff options
author | Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> | 2024-09-07 19:59:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-07 19:59:58 +0200 |
commit | 83d48c6aeee1656c5a6966839a1951e67fccbc53 (patch) | |
tree | a2c94427ba09763f36cb495ea91ffc4111ab322b /src/test/java/at/hannibal2/skyhanni | |
parent | 4663ebc4c9d5ef6ed890eced49d90dd8e3589fb5 (diff) | |
download | skyhanni-83d48c6aeee1656c5a6966839a1951e67fccbc53.tar.gz skyhanni-83d48c6aeee1656c5a6966839a1951e67fccbc53.tar.bz2 skyhanni-83d48c6aeee1656c5a6966839a1951e67fccbc53.zip |
Feature: Display Tab Widgets (#1276)
Co-authored-by: Cal <cwolfson58@gmail.com>
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/test/java/at/hannibal2/skyhanni')
-rw-r--r-- | src/test/java/at/hannibal2/skyhanni/test/RepoPatternTest.kt | 60 |
1 files changed, 29 insertions, 31 deletions
diff --git a/src/test/java/at/hannibal2/skyhanni/test/RepoPatternTest.kt b/src/test/java/at/hannibal2/skyhanni/test/RepoPatternTest.kt index f46a4f34b..73ef1bcb7 100644 --- a/src/test/java/at/hannibal2/skyhanni/test/RepoPatternTest.kt +++ b/src/test/java/at/hannibal2/skyhanni/test/RepoPatternTest.kt @@ -35,9 +35,9 @@ object RepoPatternTest { RepoPatternManager.loadPatternsFromDump( RepoPatternDump( regexes = mapOf( - simpleRepoPattern.key to remoteValue - ) - ) + simpleRepoPattern.key to remoteValue, + ), + ), ) val isRemoteWorking = simplePattern.pattern() == remoteValue @@ -67,9 +67,9 @@ object RepoPatternTest { RepoPatternDump( regexes = mapOf( listPatterns.key + ".1" to remoteValue1, - listPatterns.key + ".2" to remoteValue2 - ) - ) + listPatterns.key + ".2" to remoteValue2, + ), + ), ) val isRemoteWorking = list[0].pattern() == remoteValue1 && list[1].pattern() == remoteValue2 @@ -80,8 +80,8 @@ object RepoPatternTest { RepoPatternDump( regexes = mapOf( listPatterns.key + ".1" to remoteValue3, - ) - ) + ), + ), ) val isRemoteSingleWorking = list[0].pattern() == remoteValue3 && list.size == 1 @@ -92,8 +92,8 @@ object RepoPatternTest { RepoPatternDump( regexes = mapOf( listPatterns.key to remoteValue4, - ) - ) + ), + ), ) val isRemoteListToSingleWorking = list.isEmpty() @@ -116,8 +116,8 @@ object RepoPatternTest { val remoteValue3 = "I'm remote 3." val remoteValue4 = "I'm remote 4." - val isLocalWorking = group.getUnusedPatterns() - .isEmpty() && pattern1.pattern() == simpleLocalePattern1 && pattern2.pattern() == simpleLocalePattern2 + val isLocalWorking = + group.getUnusedPatterns().isEmpty() && pattern1.pattern() == simpleLocalePattern1 && pattern2.pattern() == simpleLocalePattern2 assert(isLocalWorking) @@ -125,13 +125,13 @@ object RepoPatternTest { RepoPatternDump( regexes = mapOf( groupInfo.prefix + ".a" to remoteValue1, - groupInfo.prefix + ".b" to remoteValue2 - ) - ) + groupInfo.prefix + ".b" to remoteValue2, + ), + ), ) - val isRemoteWorking = group.getUnusedPatterns() - .isEmpty() && pattern1.pattern() == remoteValue1 && pattern2.pattern() == remoteValue2 + val isRemoteWorking = + group.getUnusedPatterns().isEmpty() && pattern1.pattern() == remoteValue1 && pattern2.pattern() == remoteValue2 assert(isRemoteWorking) @@ -140,9 +140,9 @@ object RepoPatternTest { regexes = mapOf( groupInfo.prefix + ".a" to remoteValue3, groupInfo.prefix + ".b" to remoteValue2, - groupInfo.prefix + ".c" to remoteValue4 - ) - ) + groupInfo.prefix + ".c" to remoteValue4, + ), + ), ) val unused = group.getUnusedPatterns() @@ -166,8 +166,8 @@ object RepoPatternTest { val remoteValue3 = "I'm remote 3." val remoteValue4 = "I'm remote 4." - val isLocalWorking = group.getUnusedPatterns() - .isEmpty() && list[0].pattern() == simpleLocalePattern1 && list[1].pattern() == simpleLocalePattern2 + val isLocalWorking = + group.getUnusedPatterns().isEmpty() && list[0].pattern() == simpleLocalePattern1 && list[1].pattern() == simpleLocalePattern2 assert(isLocalWorking) @@ -175,14 +175,12 @@ object RepoPatternTest { RepoPatternDump( regexes = mapOf( groupInfo.prefix + ".a.1" to remoteValue1, - groupInfo.prefix + ".a.2" to remoteValue2 - ) - ) + groupInfo.prefix + ".a.2" to remoteValue2, + ), + ), ) - val unused0 = group.getUnusedPatterns() - val isRemoteWorking = group.getUnusedPatterns() - .isEmpty() && list[0].pattern() == remoteValue1 && list[1].pattern() == remoteValue2 + val isRemoteWorking = group.getUnusedPatterns().isEmpty() && list[0].pattern() == remoteValue1 && list[1].pattern() == remoteValue2 assert(isRemoteWorking) @@ -191,9 +189,9 @@ object RepoPatternTest { regexes = mapOf( groupInfo.prefix + ".a.1" to remoteValue3, groupInfo.prefix + ".a.2" to remoteValue2, - groupInfo.prefix + ".b" to remoteValue4 - ) - ) + groupInfo.prefix + ".b" to remoteValue4, + ), + ), ) val unused = group.getUnusedPatterns() |