1 ! Copyright (C) 2009 Slava Pestov.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: tools.test math.rectangles math.rectangles.positioning ;
4 IN: math.rectangles.positioning.tests
6 [ T{ rect f { 0 1 } { 30 30 } } ] [
13 [ T{ rect f { 10 21 } { 30 30 } } ] [
14 { 10 20 } { 1 1 } <rect>
20 [ T{ rect f { 10 30 } { 30 30 } } ] [
21 { 10 20 } { 1 10 } <rect>
27 [ T{ rect f { 20 20 } { 80 30 } } ] [
28 { 40 10 } { 1 10 } <rect>
34 [ T{ rect f { 50 20 } { 50 50 } } ] [
35 { 50 70 } { 0 0 } <rect>
41 [ T{ rect f { 0 20 } { 50 50 } } ] [
42 { -50 70 } { 0 0 } <rect>
48 [ T{ rect f { 0 50 } { 50 50 } } ] [
49 { 0 50 } { 0 0 } <rect>