Skip to content

Commit

Permalink
Merge pull request #12 from android-password-store/renovate/com.faceb…
Browse files Browse the repository at this point in the history
…ook-ktfmt-0.x

chore(deps): update dependency com.facebook:ktfmt to v0.47
  • Loading branch information
msfjarvis committed Jan 18, 2024
2 parents 462fa1e + 459bc3f commit e97a7cf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ publishing {
}

spotless {
val ktfmtVersion = "0.46"
val ktfmtVersion = "0.47"
kotlin {
ktfmt(ktfmtVersion).googleStyle()
target("**/*.kt")
Expand Down
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 e97a7cf

Please sign in to comment.