Skip to content

Commit

Permalink
Minor fix on the return type of Checker
Browse files Browse the repository at this point in the history
  • Loading branch information
Maokami committed Feb 23, 2024
1 parent fafe8e4 commit 7464ab9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ lib/

*/Makefile
tmp/
log/
log/
logs/
2 changes: 1 addition & 1 deletion src/main/scala/fhetest/Command.scala
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ case object CmdTest extends Command("test") {
val outputs = Check(programs, backendList, encParams)
for (program, output) <- outputs do {
println("=" * 80)
println("Program : " + program)
println("Program : " + program.content)
println("-" * 80)
println(output)
println("=" * 80)
Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/fhetest/Phase/Check.scala
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ case object Check {
programs: LazyList[T2Program],
backends: List[Backend],
encParams: EncParams,
): LazyList[(String, CheckResult)] = {
): LazyList[(T2Program, CheckResult)] = {
setTestDir()
var i = 0
val checkResults = for {
program <- programs
} yield {
val checkResult = getAndWriteResult(i, program, backends, encParams)
i = i + 1
(program.content, checkResult)
(program, checkResult)
}
checkResults
}
Expand Down

0 comments on commit 7464ab9

Please sign in to comment.