Skip to content

Commit 7464ab9

Browse files
author
Jaeho Choi
committed
Minor fix on the return type of Checker
1 parent fafe8e4 commit 7464ab9

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,5 @@ lib/
3636

3737
*/Makefile
3838
tmp/
39-
log/
39+
log/
40+
logs/

src/main/scala/fhetest/Command.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ case object CmdTest extends Command("test") {
216216
val outputs = Check(programs, backendList, encParams)
217217
for (program, output) <- outputs do {
218218
println("=" * 80)
219-
println("Program : " + program)
219+
println("Program : " + program.content)
220220
println("-" * 80)
221221
println(output)
222222
println("=" * 80)

src/main/scala/fhetest/Phase/Check.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ case object Check {
3434
programs: LazyList[T2Program],
3535
backends: List[Backend],
3636
encParams: EncParams,
37-
): LazyList[(String, CheckResult)] = {
37+
): LazyList[(T2Program, CheckResult)] = {
3838
setTestDir()
3939
var i = 0
4040
val checkResults = for {
4141
program <- programs
4242
} yield {
4343
val checkResult = getAndWriteResult(i, program, backends, encParams)
4444
i = i + 1
45-
(program.content, checkResult)
45+
(program, checkResult)
4646
}
4747
checkResults
4848
}

0 commit comments

Comments
 (0)