diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/03-test-clipping.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/03-test-clipping.js b/test/03-test-clipping.js new file mode 100644 index 0000000..1668bd1 --- /dev/null +++ b/test/03-test-clipping.js @@ -0,0 +1,21 @@ +var assert = require("assert") +var vec2 = require("../public/assets/javascripts/rectangles/models/vec2.js") +var Rect = require("../public/assets/javascripts/rectangles/models/rect.js") +var Room = require("../public/assets/javascripts/rectangles/models/room.js") +var Rooms = require("../public/assets/javascripts/rectangles/engine/rooms/_rooms.js") +var Clipper = require("../public/assets/javascripts/rectangles/engine/rooms/clipper.js") +var FRONT = 0x1, BACK = 0x2, LEFT = 0x4, RIGHT = 0x8, FLOOR = 0x10, CEILING = 0x20 +var ALL = FRONT | BACK | LEFT | RIGHT + +describe('clipper', function(){ + describe('#intersects()', function(){ + // var rect = new Rect(0, 0, 10, 10) + + /* + it('intersects itself', function(){ + assert.equal(true, rect.intersects( new Rect(0, 0, 10, 10) )); + }) + */ + + }) +}) |
