Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-aws committed Nov 7, 2023
1 parent 1609f60 commit ef3152c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Tests.dfy
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ module Tests {
var k := Helper.Log2Floor(u);
for i := 0 to n {
var l := r.UniformPowerOfTwoSample(u);
expect 0 <= l < Helper.Power(2, k), "sample in the right bound";
expect 0 <= l < Helper.Power(2, k), "sample not in the right bound";
if l in m.Keys {
m := m[l := m[l] + 1];
} else {
Expand All @@ -96,7 +96,7 @@ module Tests {
var item :| item in items;
items := items - {item};
if item.0 < Helper.Power(2, k) {
testBernoulliIsWithin4SigmaOfTrueMean(n, item.1 as real, 1.0 / (u as real), "p(" + natToString(item.0) + ")");
testBernoulliIsWithin4SigmaOfTrueMean(n, item.1 as real, 1.0 / (Helper.Power(2, k) as real), "p(" + natToString(item.0) + ")");
}
}
}
Expand All @@ -110,7 +110,7 @@ module Tests {
var m: map<nat,nat> := map[];
for i := 0 to n {
var l := r.UniformSample(u);
expect 0 <= l < u, "sample in the right bound";
expect 0 <= l < u, "sample not in the right bound";
if l in m.Keys {
m := m[l := m[l] + 1];
} else {
Expand Down

0 comments on commit ef3152c

Please sign in to comment.