chrisdickinson/aabb-2d

2013-01-12 21:31:30
✓10.0
✓20.0
✓23.0
✓canary
13.0
✓15.0
✓16.0
✓17.0
✓nightly
14.0
6.0
✓12.0
✓next
TAP version 13 # perimeter works ok 1 perimeter should equal 2 * (w + h) ok 2 intperimeter should equal 2 * (~~w + ~~h) # dimensions works ok 3 width() === w ok 4 height() === h ok 5 x0() === x ok 6 y0() === y ok 7 x1() === x + w ok 8 y1() === y + h # translate works ok 9 x0 == 0 ok 10 y0 == 0 ok 11 x1 == w ok 12 y1 == h ok 13 x0 == tx ok 14 x1 == tx + w ok 15 y0 == ty ok 16 y1 == ty + h # expand works ok 17 outer y bound is 10 ok 18 outer x bound is 10 ok 19 inner x bound is -5 ok 20 inner y bound is -5 # intersects works ok 21 should not intersect (either axis) ok 22 should not intersect (x intersects) ok 23 should not intersect (y intersects) ok 24 should not intersect (y intersects base) ok 25 should not intersect (x intersects base) ok 26 should intersect (b0 touches b1) ok 27 should intersect (b0 contains b1) # union works ok 28 should not union (either axis) ok 29 should not union (x intersects) ok 30 should not union (y intersects) ok 31 should not union (y intersects base) ok 32 should not union (x intersects base) ok 33 x0 === 20 ok 34 y0 === 20 ok 35 x1 === 20 ok 36 y1 === 20 ok 37 x0 === 12 ok 38 y0 === 12 ok 39 x1 === 16 ok 40 y1 === 16 1..40 # tests 40 # pass 40 # ok
TAP version 13 # perimeter works ok 1 perimeter should equal 2 * (w + h) ok 2 intperimeter should equal 2 * (~~w + ~~h) # dimensions works ok 3 width() === w ok 4 height() === h ok 5 x0() === x ok 6 y0() === y ok 7 x1() === x + w ok 8 y1() === y + h # translate works ok 9 x0 == 0 ok 10 y0 == 0 ok 11 x1 == w ok 12 y1 == h ok 13 x0 == tx ok 14 x1 == tx + w ok 15 y0 == ty ok 16 y1 == ty + h # expand works ok 17 outer y bound is 10 ok 18 outer x bound is 10 ok 19 inner x bound is -5 ok 20 inner y bound is -5 # intersects works ok 21 should not intersect (either axis) ok 22 should not intersect (x intersects) ok 23 should not intersect (y intersects) ok 24 should not intersect (y intersects base) ok 25 should not intersect (x intersects base) ok 26 should intersect (b0 touches b1) ok 27 should intersect (b0 contains b1) # union works ok 28 should not union (either axis) ok 29 should not union (x intersects) ok 30 should not union (y intersects) ok 31 should not union (y intersects base) ok 32 should not union (x intersects base) ok 33 x0 === 20 ok 34 y0 === 20 ok 35 x1 === 20 ok 36 y1 === 20 ok 37 x0 === 12 ok 38 y0 === 12 ok 39 x1 === 16 ok 40 y1 === 16 1..40 # tests 40 # pass 40 # ok
TAP version 13 # perimeter works ok 1 perimeter should equal 2 * (w + h) ok 2 intperimeter should equal 2 * (~~w + ~~h) # dimensions works ok 3 width() === w ok 4 height() === h ok 5 x0() === x ok 6 y0() === y ok 7 x1() === x + w ok 8 y1() === y + h # translate works ok 9 x0 == 0 ok 10 y0 == 0 ok 11 x1 == w ok 12 y1 == h ok 13 x0 == tx ok 14 x1 == tx + w ok 15 y0 == ty ok 16 y1 == ty + h # expand works ok 17 outer y bound is 10 ok 18 outer x bound is 10 ok 19 inner x bound is -5 ok 20 inner y bound is -5 # intersects works ok 21 should not intersect (either axis) ok 22 should not intersect (x intersects) ok 23 should not intersect (y intersects) ok 24 should not intersect (y intersects base) ok 25 should not intersect (x intersects base) ok 26 should intersect (b0 touches b1) ok 27 should intersect (b0 contains b1) # union works ok 28 should not union (either axis) ok 29 should not union (x intersects) ok 30 should not union (y intersects) ok 31 should not union (y intersects base) ok 32 should not union (x intersects base) ok 33 x0 === 20 ok 34 y0 === 20 ok 35 x1 === 20 ok 36 y1 === 20 ok 37 x0 === 12 ok 38 y0 === 12 ok 39 x1 === 16 ok 40 y1 === 16 1..40 # tests 40 # pass 40 # ok
TAP version 13 # perimeter works ok 1 perimeter should equal 2 * (w + h) ok 2 intperimeter should equal 2 * (~~w + ~~h) # dimensions works ok 3 width() === w ok 4 height() === h ok 5 x0() === x ok 6 y0() === y ok 7 x1() === x + w ok 8 y1() === y + h # translate works ok 9 x0 == 0 ok 10 y0 == 0 ok 11 x1 == w ok 12 y1 == h ok 13 x0 == tx ok 14 x1 == tx + w ok 15 y0 == ty ok 16 y1 == ty + h # expand works ok 17 outer y bound is 10 ok 18 outer x bound is 10 ok 19 inner x bound is -5 ok 20 inner y bound is -5 # intersects works ok 21 should not intersect (either axis) ok 22 should not intersect (x intersects) ok 23 should not intersect (y intersects) ok 24 should not intersect (y intersects base) ok 25 should not intersect (x intersects base) ok 26 should intersect (b0 touches b1) ok 27 should intersect (b0 contains b1) # union works ok 28 should not union (either axis) ok 29 should not union (x intersects) ok 30 should not union (y intersects) ok 31 should not union (y intersects base) ok 32 should not union (x intersects base) ok 33 x0 === 20 ok 34 y0 === 20 ok 35 x1 === 20 ok 36 y1 === 20 ok 37 x0 === 12 ok 38 y0 === 12 ok 39 x1 === 16 ok 40 y1 === 16 1..40 # tests 40 # pass 40 # ok
TAP version 13 # perimeter works ok 1 perimeter should equal 2 * (w + h) ok 2 intperimeter should equal 2 * (~~w + ~~h) # dimensions works ok 3 width() === w ok 4 height() === h ok 5 x0() === x ok 6 y0() === y ok 7 x1() === x + w ok 8 y1() === y + h # translate works ok 9 x0 == 0 ok 10 y0 == 0 ok 11 x1 == w ok 12 y1 == h ok 13 x0 == tx ok 14 x1 == tx + w ok 15 y0 == ty ok 16 y1 == ty + h # expand works ok 17 outer y bound is 10 ok 18 outer x bound is 10 ok 19 inner x bound is -5 ok 20 inner y bound is -5 # intersects works ok 21 should not intersect (either axis) ok 22 should not intersect (x intersects) ok 23 should not intersect (y intersects) ok 24 should not intersect (y intersects base) ok 25 should not intersect (x intersects base) ok 26 should intersect (b0 touches b1) ok 27 should intersect (b0 contains b1) # union works ok 28 should not union (either axis) ok 29 should not union (x intersects) ok 30 should not union (y intersects) ok 31 should not union (y intersects base) ok 32 should not union (x intersects base) ok 33 x0 === 20 ok 34 y0 === 20 ok 35 x1 === 20 ok 36 y1 === 20 ok 37 x0 === 12 ok 38 y0 === 12 ok 39 x1 === 16 ok 40 y1 === 16 1..40 # tests 40 # pass 40 # ok
firefox/nightly
TAP version 13 # perimeter works ok 1 perimeter should equal 2 * (w + h) ok 2 intperimeter should equal 2 * (~~w + ~~h) # dimensions works ok 3 width() === w ok 4 height() === h ok 5 x0() === x ok 6 y0() === y ok 7 x1() === x + w ok 8 y1() === y + h # translate works ok 9 x0 == 0 ok 10 y0 == 0 ok 11 x1 == w ok 12 y1 == h ok 13 x0 == tx ok 14 x1 == tx + w ok 15 y0 == ty ok 16 y1 == ty + h # expand works ok 17 outer y bound is 10 ok 18 outer x bound is 10 ok 19 inner x bound is -5 ok 20 inner y bound is -5 # intersects works ok 21 should not intersect (either axis) ok 22 should not intersect (x intersects) ok 23 should not intersect (y intersects) ok 24 should not intersect (y intersects base) ok 25 should not intersect (x intersects base) ok 26 should intersect (b0 touches b1) ok 27 should intersect (b0 contains b1) # union works ok 28 should not union (either axis) ok 29 should not union (x intersects) ok 30 should not union (y intersects) ok 31 should not union (y intersects base) ok 32 should not union (x intersects base) ok 33 x0 === 20 ok 34 y0 === 20 ok 35 x1 === 20 ok 36 y1 === 20 ok 37 x0 === 12 ok 38 y0 === 12 ok 39 x1 === 16 ok 40 y1 === 16 1..40 # tests 40 # pass 40 # ok
TAP version 13 # perimeter works ok 1 perimeter should equal 2 * (w + h) ok 2 intperimeter should equal 2 * (~~w + ~~h) # dimensions works ok 3 width() === w ok 4 height() === h ok 5 x0() === x ok 6 y0() === y ok 7 x1() === x + w ok 8 y1() === y + h # translate works ok 9 x0 == 0 ok 10 y0 == 0 ok 11 x1 == w ok 12 y1 == h ok 13 x0 == tx ok 14 x1 == tx + w ok 15 y0 == ty ok 16 y1 == ty + h # expand works ok 17 outer y bound is 10 ok 18 outer x bound is 10 ok 19 inner x bound is -5 ok 20 inner y bound is -5 # intersects works ok 21 should not intersect (either axis) ok 22 should not intersect (x intersects) ok 23 should not intersect (y intersects) ok 24 should not intersect (y intersects base) ok 25 should not intersect (x intersects base) ok 26 should intersect (b0 touches b1) ok 27 should intersect (b0 contains b1) # union works ok 28 should not union (either axis) ok 29 should not union (x intersects) ok 30 should not union (y intersects) ok 31 should not union (y intersects base) ok 32 should not union (x intersects base) ok 33 x0 === 20 ok 34 y0 === 20 ok 35 x1 === 20 ok 36 y1 === 20 ok 37 x0 === 12 ok 38 y0 === 12 ok 39 x1 === 16 ok 40 y1 === 16 1..40 # tests 40 # pass 40 # ok
TAP version 13 # perimeter works ok 1 perimeter should equal 2 * (w + h) ok 2 intperimeter should equal 2 * (~~w + ~~h) # dimensions works ok 3 width() === w ok 4 height() === h ok 5 x0() === x ok 6 y0() === y ok 7 x1() === x + w ok 8 y1() === y + h # translate works ok 9 x0 == 0 ok 10 y0 == 0 ok 11 x1 == w ok 12 y1 == h ok 13 x0 == tx ok 14 x1 == tx + w ok 15 y0 == ty ok 16 y1 == ty + h # expand works ok 17 outer y bound is 10 ok 18 outer x bound is 10 ok 19 inner x bound is -5 ok 20 inner y bound is -5 # intersects works ok 21 should not intersect (either axis) ok 22 should not intersect (x intersects) ok 23 should not intersect (y intersects) ok 24 should not intersect (y intersects base) ok 25 should not intersect (x intersects base) ok 26 should intersect (b0 touches b1) ok 27 should intersect (b0 contains b1) # union works ok 28 should not union (either axis) ok 29 should not union (x intersects) ok 30 should not union (y intersects) ok 31 should not union (y intersects base) ok 32 should not union (x intersects base) ok 33 x0 === 20 ok 34 y0 === 20 ok 35 x1 === 20 ok 36 y1 === 20 ok 37 x0 === 12 ok 38 y0 === 12 ok 39 x1 === 16 ok 40 y1 === 16 1..40 # tests 40 # pass 40 # ok
TAP version 13 # perimeter works ok 1 perimeter should equal 2 * (w + h) ok 2 intperimeter should equal 2 * (~~w + ~~h) # dimensions works ok 3 width() === w ok 4 height() === h ok 5 x0() === x ok 6 y0() === y ok 7 x1() === x + w ok 8 y1() === y + h # translate works ok 9 x0 == 0 ok 10 y0 == 0 ok 11 x1 == w ok 12 y1 == h ok 13 x0 == tx ok 14 x1 == tx + w ok 15 y0 == ty ok 16 y1 == ty + h # expand works ok 17 outer y bound is 10 ok 18 outer x bound is 10 ok 19 inner x bound is -5 ok 20 inner y bound is -5 # intersects works ok 21 should not intersect (either axis) ok 22 should not intersect (x intersects) ok 23 should not intersect (y intersects) ok 24 should not intersect (y intersects base) ok 25 should not intersect (x intersects base) ok 26 should intersect (b0 touches b1) ok 27 should intersect (b0 contains b1) # union works ok 28 should not union (either axis) ok 29 should not union (x intersects) ok 30 should not union (y intersects) ok 31 should not union (y intersects base) ok 32 should not union (x intersects base) ok 33 x0 === 20 ok 34 y0 === 20 ok 35 x1 === 20 ok 36 y1 === 20 ok 37 x0 === 12 ok 38 y0 === 12 ok 39 x1 === 16 ok 40 y1 === 16 1..40 # tests 40 # pass 40 # ok
TAP version 13 # perimeter works ok 1 perimeter should equal 2 * (w + h) ok 2 intperimeter should equal 2 * (~~w + ~~h) # dimensions works ok 3 width() === w ok 4 height() === h ok 5 x0() === x ok 6 y0() === y ok 7 x1() === x + w ok 8 y1() === y + h # translate works ok 9 x0 == 0 ok 10 y0 == 0 ok 11 x1 == w ok 12 y1 == h ok 13 x0 == tx ok 14 x1 == tx + w ok 15 y0 == ty ok 16 y1 == ty + h # expand works ok 17 outer y bound is 10 ok 18 outer x bound is 10 ok 19 inner x bound is -5 ok 20 inner y bound is -5 # intersects works ok 21 should not intersect (either axis) ok 22 should not intersect (x intersects) ok 23 should not intersect (y intersects) ok 24 should not intersect (y intersects base) ok 25 should not intersect (x intersects base) ok 26 should intersect (b0 touches b1) ok 27 should intersect (b0 contains b1) # union works ok 28 should not union (either axis) ok 29 should not union (x intersects) ok 30 should not union (y intersects) ok 31 should not union (y intersects base) ok 32 should not union (x intersects base) ok 33 x0 === 20 ok 34 y0 === 20 ok 35 x1 === 20 ok 36 y1 === 20 ok 37 x0 === 12 ok 38 y0 === 12 ok 39 x1 === 16 ok 40 y1 === 16
TAP version 13 # perimeter works ok 1 perimeter should equal 2 * (w + h) ok 2 intperimeter should equal 2 * (~~w + ~~h) # dimensions works ok 3 width() === w ok 4 height() === h ok 5 x0() === x ok 6 y0() === y ok 7 x1() === x + w ok 8 y1() === y + h # translate works ok 9 x0 == 0 ok 10 y0 == 0 ok 11 x1 == w ok 12 y1 == h ok 13 x0 == tx ok 14 x1 == tx + w ok 15 y0 == ty ok 16 y1 == ty + h # expand works ok 17 outer y bound is 10 ok 18 outer x bound is 10 ok 19 inner x bound is -5 ok 20 inner y bound is -5 # intersects works ok 21 should not intersect (either axis) ok 22 should not intersect (x intersects) ok 23 should not intersect (y intersects) ok 24 should not intersect (y intersects base) ok 25 should not intersect (x intersects base) ok 26 should intersect (b0 touches b1) ok 27 should intersect (b0 contains b1) # union works ok 28 should not union (either axis) ok 29 should not union (x intersects) ok 30 should not union (y intersects) ok 31 should not union (y intersects base) ok 32 should not union (x intersects base) ok 33 x0 === 20 ok 34 y0 === 20 ok 35 x1 === 20 ok 36 y1 === 20 ok 37 x0 === 12 ok 38 y0 === 12 ok 39 x1 === 16 ok 40 y1 === 16 1..40 # tests 40 # pass 40 # ok
2013-01-12 21:30:25
✓10.0
✓canary
20.0
23.0
✓13.0
✓14.0
✓15.0
✓16.0
✓17.0
✓nightly
6.0
✓12.0
✓next
TAP version 13 # perimeter works ok 1 perimeter should equal 2 * (w + h) ok 2 intperimeter should equal 2 * (~~w + ~~h) # dimensions works ok 3 width() === w ok 4 height() === h ok 5 x0() === x ok 6 y0() === y ok 7 x1() === x + w ok 8 y1() === y + h # translate works ok 9 x0 == 0 ok 10 y0 == 0 ok 11 x1 == w ok 12 y1 == h ok 13 x0 == tx ok 14 x1 == tx + w ok 15 y0 == ty ok 16 y1 == ty + h # expand works ok 17 outer y bound is 10 ok 18 outer x bound is 10 ok 19 inner x bound is -5 ok 20 inner y bound is -5 # intersects works ok 21 should not intersect (either axis) ok 22 should not intersect (x intersects) ok 23 should not intersect (y intersects) ok 24 should not intersect (y intersects base) ok 25 should not intersect (x intersects base) ok 26 should intersect (b0 touches b1) ok 27 should intersect (b0 contains b1) # union works ok 28 should not union (either axis) ok 29 should not union (x intersects) ok 30 should not union (y intersects) ok 31 should not union (y intersects base) ok 32 should not union (x intersects base) ok 33 x0 === 20 ok 34 y0 === 20 ok 35 x1 === 20 ok 36 y1 === 20 ok 37 x0 === 12 ok 38 y0 === 12 ok 39 x1 === 16 ok 40 y1 === 16 1..40 # tests 40 # pass 40 # ok
TAP version 13 # perimeter works ok 1 perimeter should equal 2 * (w + h) ok 2 intperimeter should equal 2 * (~~w + ~~h) # dimensions works ok 3 width() === w ok 4 height() === h ok 5 x0() === x ok 6 y0() === y ok 7 x1() === x + w ok 8 y1() === y + h # translate works ok 9 x0 == 0 ok 10 y0 == 0 ok 11 x1 == w ok 12 y1 == h ok 13 x0 == tx ok 14 x1 == tx + w ok 15 y0 == ty ok 16 y1 == ty + h # expand works ok 17 outer y bound is 10 ok 18 outer x bound is 10 ok 19 inner x bound is -5 ok 20 inner y bound is -5 # intersects works ok 21 should not intersect (either axis) ok 22 should not intersect (x intersects) ok 23 should not intersect (y intersects) ok 24 should not intersect (y intersects base) ok 25 should not intersect (x intersects base) ok 26 should intersect (b0 touches b1) ok 27 should intersect (b0 contains b1) # union works ok 28 should not union (either axis) ok 29 should not union (x intersects) ok 30 should not union (y intersects) ok 31 should not union (y intersects base) ok 32 should not union (x intersects base) ok 33 x0 === 20 ok 34 y0 === 20 ok 35 x1 === 20 ok 36 y1 === 20 ok 37 x0 === 12 ok 38 y0 === 12 ok 39 x1 === 16 ok 40 y1 === 16 1..40 # tests 40 # pass 40 # ok
TAP version 13 # perimeter works ok 1 perimeter should equal 2 * (w + h) ok 2 intperimeter should equal 2 * (~~w + ~~h) # dimensions works ok 3 width() === w ok 4 height() === h ok 5 x0() === x ok 6 y0() === y ok 7 x1() === x + w ok 8 y1() === y + h # translate works ok 9 x0 == 0 ok 10 y0 == 0 ok 11 x1 == w ok 12 y1 == h ok 13 x0 == tx ok 14 x1 == tx + w ok 15 y0 == ty ok 16 y1 == ty + h # expand works ok 17 outer y bound is 10 ok 18 outer x bound is 10 ok 19 inner x bound is -5 ok 20 inner y bound is -5 # intersects works ok 21 should not intersect (either axis) ok 22 should not intersect (x intersects) ok 23 should not intersect (y intersects) ok 24 should not intersect (y intersects base) ok 25 should not intersect (x intersects base) ok 26 should intersect (b0 touches b1) ok 27 should intersect (b0 contains b1) # union works ok 28 should not union (either axis) ok 29 should not union (x intersects) ok 30 should not union (y intersects) ok 31 should not union (y intersects base) ok 32 should not union (x intersects base) ok 33 x0 === 20 ok 34 y0 === 20 ok 35 x1 === 20 ok 36 y1 === 20 ok 37 x0 === 12 ok 38 y0 === 12 ok 39 x1 === 16 ok 40 y1 === 16 1..40 # tests 40 # pass 40 # ok
firefox/nightly
TAP version 13 # perimeter works ok 1 perimeter should equal 2 * (w + h) ok 2 intperimeter should equal 2 * (~~w + ~~h) # dimensions works ok 3 width() === w ok 4 height() === h ok 5 x0() === x ok 6 y0() === y ok 7 x1() === x + w ok 8 y1() === y + h # translate works ok 9 x0 == 0 ok 10 y0 == 0 ok 11 x1 == w ok 12 y1 == h ok 13 x0 == tx ok 14 x1 == tx + w ok 15 y0 == ty ok 16 y1 == ty + h # expand works ok 17 outer y bound is 10 ok 18 outer x bound is 10 ok 19 inner x bound is -5 ok 20 inner y bound is -5 # intersects works ok 21 should not intersect (either axis) ok 22 should not intersect (x intersects) ok 23 should not intersect (y intersects) ok 24 should not intersect (y intersects base) ok 25 should not intersect (x intersects base) ok 26 should intersect (b0 touches b1) ok 27 should intersect (b0 contains b1) # union works ok 28 should not union (either axis) ok 29 should not union (x intersects) ok 30 should not union (y intersects) ok 31 should not union (y intersects base) ok 32 should not union (x intersects base) ok 33 x0 === 20 ok 34 y0 === 20 ok 35 x1 === 20 ok 36 y1 === 20 ok 37 x0 === 12 ok 38 y0 === 12 ok 39 x1 === 16 ok 40 y1 === 16 1..40 # tests 40 # pass 40 # ok
TAP version 13 # perimeter works ok 1 perimeter should equal 2 * (w + h) ok 2 intperimeter should equal 2 * (~~w + ~~h) # dimensions works ok 3 width() === w ok 4 height() === h ok 5 x0() === x ok 6 y0() === y ok 7 x1() === x + w ok 8 y1() === y + h # translate works ok 9 x0 == 0 ok 10 y0 == 0 ok 11 x1 == w ok 12 y1 == h ok 13 x0 == tx ok 14 x1 == tx + w ok 15 y0 == ty ok 16 y1 == ty + h # expand works ok 17 outer y bound is 10 ok 18 outer x bound is 10 ok 19 inner x bound is -5 ok 20 inner y bound is -5 # intersects works ok 21 should not intersect (either axis) ok 22 should not intersect (x intersects) ok 23 should not intersect (y intersects) ok 24 should not intersect (y intersects base) ok 25 should not intersect (x intersects base) ok 26 should intersect (b0 touches b1) ok 27 should intersect (b0 contains b1) # union works ok 28 should not union (either axis) ok 29 should not union (x intersects) ok 30 should not union (y intersects) ok 31 should not union (y intersects base) ok 32 should not union (x intersects base) ok 33 x0 === 20 ok 34 y0 === 20 ok 35 x1 === 20 ok 36 y1 === 20 ok 37 x0 === 12 ok 38 y0 === 12 ok 39 x1 === 16 ok 40 y1 === 16 1..40 # tests 40 # pass 40 # ok
TAP version 13 # perimeter works ok 1 perimeter should equal 2 * (w + h) ok 2 intperimeter should equal 2 * (~~w + ~~h) # dimensions works ok 3 width() === w ok 4 height() === h ok 5 x0() === x ok 6 y0() === y ok 7 x1() === x + w ok 8 y1() === y + h # translate works ok 9 x0 == 0 ok 10 y0 == 0 ok 11 x1 == w ok 12 y1 == h ok 13 x0 == tx ok 14 x1 == tx + w ok 15 y0 == ty ok 16 y1 == ty + h # expand works ok 17 outer y bound is 10 ok 18 outer x bound is 10 ok 19 inner x bound is -5 ok 20 inner y bound is -5 # intersects works ok 21 should not intersect (either axis) ok 22 should not intersect (x intersects) ok 23 should not intersect (y intersects) ok 24 should not intersect (y intersects base) ok 25 should not intersect (x intersects base) ok 26 should intersect (b0 touches b1) ok 27 should intersect (b0 contains b1) # union works ok 28 should not union (either axis) ok 29 should not union (x intersects) ok 30 should not union (y intersects) ok 31 should not union (y intersects base) ok 32 should not union (x intersects base) ok 33 x0 === 20 ok 34 y0 === 20 ok 35 x1 === 20 ok 36 y1 === 20 ok 37 x0 === 12 ok 38 y0 === 12 ok 39 x1 === 16 ok 40 y1 === 16 1..40 # tests 40 # pass 40 # ok
TAP version 13 # perimeter works ok 1 perimeter should equal 2 * (w + h) ok 2 intperimeter should equal 2 * (~~w + ~~h) # dimensions works ok 3 width() === w ok 4 height() === h ok 5 x0() === x ok 6 y0() === y ok 7 x1() === x + w ok 8 y1() === y + h # translate works ok 9 x0 == 0 ok 10 y0 == 0 ok 11 x1 == w ok 12 y1 == h ok 13 x0 == tx ok 14 x1 == tx + w ok 15 y0 == ty ok 16 y1 == ty + h # expand works ok 17 outer y bound is 10 ok 18 outer x bound is 10 ok 19 inner x bound is -5 ok 20 inner y bound is -5 # intersects works ok 21 should not intersect (either axis) ok 22 should not intersect (x intersects) ok 23 should not intersect (y intersects) ok 24 should not intersect (y intersects base) ok 25 should not intersect (x intersects base) ok 26 should intersect (b0 touches b1) ok 27 should intersect (b0 contains b1) # union works ok 28 should not union (either axis) ok 29 should not union (x intersects) ok 30 should not union (y intersects) ok 31 should not union (y intersects base) ok 32 should not union (x intersects base) ok 33 x0 === 20 ok 34 y0 === 20 ok 35 x1 === 20 ok 36 y1 === 20 ok 37 x0 === 12 ok 38 y0 === 12 ok 39 x1 === 16 ok 40 y1 === 16 1..40 # tests 40 # pass 40 # ok
TAP version 13 # perimeter works ok 1 perimeter should equal 2 * (w + h) ok 2 intperimeter should equal 2 * (~~w + ~~h) # dimensions works ok 3 width() === w ok 4 height() === h ok 5 x0() === x ok 6 y0() === y ok 7 x1() === x + w ok 8 y1() === y + h # translate works ok 9 x0 == 0 ok 10 y0 == 0 ok 11 x1 == w ok 12 y1 == h ok 13 x0 == tx ok 14 x1 == tx + w ok 15 y0 == ty ok 16 y1 == ty + h # expand works ok 17 outer y bound is 10 ok 18 outer x bound is 10 ok 19 inner x bound is -5 ok 20 inner y bound is -5 # intersects works ok 21 should not intersect (either axis) ok 22 should not intersect (x intersects) ok 23 should not intersect (y intersects) ok 24 should not intersect (y intersects base) ok 25 should not intersect (x intersects base) ok 26 should intersect (b0 touches b1) ok 27 should intersect (b0 contains b1) # union works ok 28 should not union (either axis) ok 29 should not union (x intersects) ok 30 should not union (y intersects) ok 31 should not union (y intersects base) ok 32 should not union (x intersects base) ok 33 x0 === 20 ok 34 y0 === 20 ok 35 x1 === 20 ok 36 y1 === 20 ok 37 x0 === 12 ok 38 y0 === 12 ok 39 x1 === 16 ok 40 y1 === 16 1..40 # tests 40 # pass 40 # ok
TAP version 13 # perimeter works ok 1 perimeter should equal 2 * (w + h) ok 2 intperimeter should equal 2 * (~~w + ~~h) # dimensions works ok 3 width() === w ok 4 height() === h ok 5 x0() === x ok 6 y0() === y ok 7 x1() === x + w ok 8 y1() === y + h # translate works ok 9 x0 == 0 ok 10 y0 == 0 ok 11 x1 == w ok 12 y1 == h ok 13 x0 == tx ok 14 x1 == tx + w ok 15 y0 == ty ok 16 y1 == ty + h # expand works ok 17 outer y bound is 10 ok 18 outer x bound is 10 ok 19 inner x bound is -5 ok 20 inner y bound is -5 # intersects works ok 21 should not intersect (either axis) ok 22 should not intersect (x intersects) ok 23 should not intersect (y intersects) ok 24 should not intersect (y intersects base) ok 25 should not intersect (x intersects base) ok 26 should intersect (b0 touches b1) ok 27 should intersect (b0 contains b1) # union works ok 28 should not union (either axis) ok 29 should not union (x intersects) ok 30 should not union (y intersects) ok 31 should not union (y intersects base) ok 32 should not union (x intersects base) ok 33 x0 === 20 ok 34 y0 === 20 ok 35 x1 === 20 ok 36 y1 === 20 ok 37 x0 === 12 ok 38 y0 === 12 ok 39 x1 === 16 ok 40 y1 === 16 1..40 # tests 40 # pass 40 # ok
TAP version 13 # perimeter works ok 1 perimeter should equal 2 * (w + h) ok 2 intperimeter should equal 2 * (~~w + ~~h) # dimensions works ok 3 width() === w ok 4 height() === h ok 5 x0() === x ok 6 y0() === y ok 7 x1() === x + w ok 8 y1() === y + h # translate works ok 9 x0 == 0 ok 10 y0 == 0 ok 11 x1 == w ok 12 y1 == h ok 13 x0 == tx ok 14 x1 == tx + w ok 15 y0 == ty ok 16 y1 == ty + h # expand works ok 17 outer y bound is 10 ok 18 outer x bound is 10 ok 19 inner x bound is -5 ok 20 inner y bound is -5 # intersects works ok 21 should not intersect (either axis) ok 22 should not intersect (x intersects) ok 23 should not intersect (y intersects) ok 24 should not intersect (y intersects base) ok 25 should not intersect (x intersects base) ok 26 should intersect (b0 touches b1) ok 27 should intersect (b0 contains b1) # union works ok 28 should not union (either axis) ok 29 should not union (x intersects) ok 30 should not union (y intersects) ok 31 should not union (y intersects base) ok 32 should not union (x intersects base) ok 33 x0 === 20 ok 34 y0 === 20 ok 35 x1 === 20 ok 36 y1 === 20 ok 37 x0 === 12 ok 38 y0 === 12 ok 39 x1 === 16 ok 40 y1 === 16 1..40 # tests 40 # pass 40 # ok