Skip to content
Snippets Groups Projects
Commit 10e90065 authored by Eugen Ciur's avatar Eugen Ciur
Browse files

add negative for point class inaquality

parent 08280e97
No related branches found
No related tags found
Loading
......@@ -3,12 +3,20 @@ import Point from 'papermerge/utils/point';
module('Unit | Point', function () {
test('basic', function (assert) {
test('basic equality positive', function (assert) {
let p1 = new Point(1, 1), p2 = new Point(1, 1);
assert.true(
p1.isEqual(p2)
);
});
test('basic equality negative', function (assert) {
let p1 = new Point(1, 1), p2 = new Point(1, 2);
assert.false(
p1.isEqual(p2)
);
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment