Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Commit

Permalink
Fix return issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
gchallen committed Jan 24, 2022
1 parent 0bc4e06 commit a5473d6
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
}
subprojects {
group = "com.github.cs125-illinois.questioner"
version = "2022.1.0"
version = "2022.1.1"
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_16.toString()
Expand Down
2 changes: 1 addition & 1 deletion lib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dependencies {
implementation("com.squareup.moshi:moshi-kotlin:1.13.0")
implementation("org.apache.commons:commons-text:1.9")

api("com.github.cs125-illinois.jeed:core:2022.1.0")
api("com.github.cs125-illinois.jeed:core:2022.1.1")
api("com.github.cs125-illinois:jenisol:2022.1.1")
api("io.kotest:kotest-runner-junit5:4.6.3")
api("com.google.truth:truth:1.1.3")
Expand Down
5 changes: 5 additions & 0 deletions lib/src/main/kotlin/TestQuestion.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import edu.illinois.cs.cs125.jeed.core.LineLimitExceeded
import edu.illinois.cs.cs125.jeed.core.LineTrace
import edu.illinois.cs.cs125.jeed.core.LineTraceArguments
import edu.illinois.cs.cs125.jeed.core.Sandbox
import edu.illinois.cs.cs125.jeed.core.SnippetTransformationFailed
import edu.illinois.cs.cs125.jeed.core.TemplatingFailed
import edu.illinois.cs.cs125.jenisol.core.Settings
import edu.illinois.cs.cs125.jenisol.core.SubmissionDesignError
Expand Down Expand Up @@ -62,6 +63,10 @@ suspend fun Question.test(
try {
results.complete.complexity = computeComplexity(contents, language)
results.completedSteps.add(TestResults.Step.complexity)
} catch (e: SnippetTransformationFailed) {
// Special case when snippet transformation fails
results.failed.checkCompiledSubmission = "Do not use return statements for this problem"
results.failedSteps.add(TestResults.Step.checkCompiledSubmission)
} catch (e: ComplexityFailed) {
results.failed.complexity = e
results.failedSteps.add(TestResults.Step.complexity)
Expand Down
2 changes: 1 addition & 1 deletion server/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dependencies {
implementation("com.github.slugify:slugify:2.5")
implementation("org.mongodb:mongodb-driver:3.12.10")

implementation("org.slf4j:slf4j-api:1.7.32")
implementation("org.slf4j:slf4j-api:1.7.33")
implementation("ch.qos.logback:logback-classic:1.2.10")
implementation("io.github.microutils:kotlin-logging:2.1.21")
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=2022.1.0
version=2022.1.1

0 comments on commit a5473d6

Please sign in to comment.