mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2024-12-23 21:22:59 +00:00
test verbosity
This commit is contained in:
parent
dde8f172dc
commit
5752d2b814
2 changed files with 7 additions and 6 deletions
|
@ -6,6 +6,7 @@
|
|||
"serve": "vue-cli-service serve",
|
||||
"build": "vue-cli-service build",
|
||||
"test:unit": "vue-cli-service test:unit",
|
||||
"test:unit-watch": "vue-cli-service test:unit --watch",
|
||||
"lint": "vue-cli-service lint"
|
||||
},
|
||||
"dependencies": {
|
||||
|
@ -38,4 +39,4 @@
|
|||
"sass-loader": "^13.1.0",
|
||||
"typescript": "~4.5.5"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -59,15 +59,15 @@ describe("Rectangle Tests", () => {
|
|||
expect(r1.contains(v1)).true;
|
||||
expect(r1.contains(v2)).true;
|
||||
|
||||
expect(r1.contains(r1.origin)).true;
|
||||
expect(r1.contains(r1.corner)).true;
|
||||
expect(r1.contains(r1.origin)).to.be.true;
|
||||
expect(r1.contains(r1.corner)).to.be.true;
|
||||
|
||||
const vmid = new Vector2D((v1.x + v2.x) / 2, (v1.y + v2.y) / 2);
|
||||
expect(r1.contains(vmid)).true;
|
||||
expect(r1.contains(vmid)).to.be.true;
|
||||
});
|
||||
|
||||
it("should not contain certain points", () => {
|
||||
expect(r1.contains(new Vector2D(0, 0))).false;
|
||||
expect(r1.contains(new Vector2D(100, 100))).false;
|
||||
expect(r1.contains(new Vector2D(0, 0))).to.be.false;
|
||||
expect(r1.contains(new Vector2D(100, 100))).to.be.false;
|
||||
});
|
||||
});
|
Loading…
Reference in a new issue