Skip to content

Commit ef3152c

Browse files
committed
fix
1 parent 1609f60 commit ef3152c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Tests.dfy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ module Tests {
8181
var k := Helper.Log2Floor(u);
8282
for i := 0 to n {
8383
var l := r.UniformPowerOfTwoSample(u);
84-
expect 0 <= l < Helper.Power(2, k), "sample in the right bound";
84+
expect 0 <= l < Helper.Power(2, k), "sample not in the right bound";
8585
if l in m.Keys {
8686
m := m[l := m[l] + 1];
8787
} else {
@@ -96,7 +96,7 @@ module Tests {
9696
var item :| item in items;
9797
items := items - {item};
9898
if item.0 < Helper.Power(2, k) {
99-
testBernoulliIsWithin4SigmaOfTrueMean(n, item.1 as real, 1.0 / (u as real), "p(" + natToString(item.0) + ")");
99+
testBernoulliIsWithin4SigmaOfTrueMean(n, item.1 as real, 1.0 / (Helper.Power(2, k) as real), "p(" + natToString(item.0) + ")");
100100
}
101101
}
102102
}
@@ -110,7 +110,7 @@ module Tests {
110110
var m: map<nat,nat> := map[];
111111
for i := 0 to n {
112112
var l := r.UniformSample(u);
113-
expect 0 <= l < u, "sample in the right bound";
113+
expect 0 <= l < u, "sample not in the right bound";
114114
if l in m.Keys {
115115
m := m[l := m[l] + 1];
116116
} else {

0 commit comments

Comments
 (0)