Skip to content

Commit

Permalink
Restore functional build with test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
reid-spencer committed May 14, 2024
1 parent bfe6e22 commit d2d6792
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ class StatsPassTest extends ValidatingTest {
if statsOutput.messages.nonEmpty then fail(statsOutput.messages.format)
statsOutput.maximum_depth > 0 mustBe true
statsOutput.categories mustNot be(empty)
statsOutput.categories.size mustBe(25)
statsOutput.categories.size mustBe(28)
val ksAll: KindStats = statsOutput.categories("All")
ksAll.count mustBe 24
ksAll.numEmpty mustBe 31
ksAll.numStatements mustBe 3
ksAll.count mustBe 27
ksAll.numEmpty mustBe 33
ksAll.numStatements mustBe 4
succeed
}
}
Expand Down
1 change: 1 addition & 0 deletions language/src/test/input/everything_full.riddl
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ context full is {

projector ProjectIt is {
updates repository StoreIt
record Record is { ??? }
handler projector is {
on init {
tell command ACommand to repository StoreIt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ class PassTest extends AnyWordSpec with Matchers {
val out: PassOutput = Pass.runPass[PassOutput](input, outputs, hp)
val (opens, closes, leaves, values) = hp.processForTest(result.root, mutable.Stack.empty)
opens.mustBe(closes)
opens.mustBe(43)
values.mustBe(18)
leaves.mustBe(21)
opens.mustBe(47)
values.mustBe(19)
leaves.mustBe(22)

}
}
Expand Down

0 comments on commit d2d6792

Please sign in to comment.