Skip to content

Commit

Permalink
run format
Browse files Browse the repository at this point in the history
  • Loading branch information
jpdias committed Sep 28, 2021
1 parent bee74e8 commit 1ea7573
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions test-pbt/bounded-stack_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,18 @@ function isLessOrEqual(num1, num2) {
}

describe("bounded stack", function () {
jsc.property("max length is never passed", "array number", "nat", function (
arr,
nat
) {
let boundedStack = new BoundedStack(nat);
arr.forEach((element) => {
boundedStack.push(element);
});
return isLessOrEqual(boundedStack.stack.length, nat);
});
jsc.property(
"max length is never passed",
"array number",
"nat",
function (arr, nat) {
let boundedStack = new BoundedStack(nat);
arr.forEach((element) => {
boundedStack.push(element);
});
return isLessOrEqual(boundedStack.stack.length, nat);
}
);

jsc.property(
"peeked element is always the last inserted",
Expand Down

0 comments on commit 1ea7573

Please sign in to comment.