Skip to content

Commit

Permalink
retry CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
breandan committed Apr 29, 2024
1 parent 3ef236a commit f7e86e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ jobs:
with:
java-version: 17
- name: Build with Gradle
run: ./gradlew -Dorg.gradle.jvmargs=-XX:+UseContainerSupport -PleaseExcludeBenchmarks allTests --stacktrace --no-daemon
run: ./gradlew -Dorg.gradle.jvmargs=-XX:+UseContainerSupport -PleaseExcludeBenchmarks allTests --stacktrace
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ class WFSATest {
@Test
fun testLBHRepair() {
val toRepair = "NAME : NEWLINE NAME = STRING NEWLINE NAME = NAME . NAME ( STRING ) NEWLINE"
val pt = Grammars.seq2parsePythonCFG.makeLevPTree(toRepair, 1)
val radius = 1
val pt = Grammars.seq2parsePythonCFG.makeLevPTree(toRepair, radius)
measureTimedValue {
pt.propagator<Automaton<String, Double>>(
both = { a, b -> if (a == null) b else if (b == null) a else Concatenation(a, b) },
Expand All @@ -55,6 +56,7 @@ class WFSATest {
}.also {
it.value.forEach {
println(levenshteinAlign(toRepair, it).paintANSIColors())
assertTrue(levenshtein(toRepair, it) <= radius)
assertTrue(it in Grammars.seq2parsePythonCFG.language)
}
}.also { println("Decoding ${it.value.size} repairs took ${it.duration}") }
Expand Down

0 comments on commit f7e86e7

Please sign in to comment.