Skip to content

Commit

Permalink
chore: reformat with ktfmt 0.47
Browse files Browse the repository at this point in the history
  • Loading branch information
msfjarvis committed Jan 18, 2024
1 parent bb033c3 commit 459bc3f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
11 changes: 2 additions & 9 deletions sample/src/commonMain/kotlin/main.kt
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
import com.github.androidpasswordstore.sublimefuzzy.Fuzzy

fun main() {
val simpleMatchData =
mapOf(
("test" to "tests") to true,
("test" to "tset") to false,
)
val simpleMatchData = mapOf(("test" to "tests") to true, ("test" to "tset") to false)
val matchData =
mapOf(
("fot" to "FbxImporter.h") to (true to 105),
("fot" to "kot") to (false to 0),
)
mapOf(("fot" to "FbxImporter.h") to (true to 105), ("fot" to "kot") to (false to 0))
simpleMatchData.forEach { (match, expected) ->
val result = Fuzzy.fuzzyMatchSimple(match.first, match.second)
require(result == expected) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public object Fuzzy {
maxMatches: Int,
nextMatchOut: Int,
recursionCountOut: Int,
recursionLimit: Int
recursionLimit: Int,
): Pair<Boolean, Int> {
var outScore = 0
var strCurIndex = strCurIndexOut
Expand Down Expand Up @@ -88,7 +88,7 @@ public object Fuzzy {
maxMatches,
nextMatch,
recursionCount,
recursionLimit
recursionLimit,
)

if (matched) {
Expand Down Expand Up @@ -194,7 +194,7 @@ public object Fuzzy {
maxMatches,
0,
recursionCount,
recursionLimit
recursionLimit,
)
}
}

0 comments on commit 459bc3f

Please sign in to comment.