Skip to content

Commit

Permalink
fix-i778: more detailed message on assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
aslesarenko committed Apr 20, 2022
1 parent ae06ce8 commit af1c323
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion core/src/main/scala/scalan/Base.scala
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,14 @@ abstract class Base { scalan: Scalan =>
cfor(0)(_ < delta, _ + 1) { _ => tab.append(null) }
val sym = if (s == null) new SingleRef(d) else s
tab += sym
assert(tab.length == id + 1)
assert(tab.length == id + 1,
s"""tab.length == id + 1:
|tab.length = ${tab.length}
|id = $id
|s = $s
|d = $d
|sym = $sym
|""".stripMargin)
sym
}
}
Expand Down

0 comments on commit af1c323

Please sign in to comment.