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 } } ] [
7 T{ rect f { 0 0 } { 1 1 } }
13 [ T{ rect f { 10 21 } { 30 30 } } ] [
14 T{ rect f { 10 20 } { 1 1 } }
20 [ T{ rect f { 10 30 } { 30 30 } } ] [
21 T{ rect f { 10 20 } { 1 10 } }
27 [ T{ rect f { 20 20 } { 80 30 } } ] [
28 T{ rect f { 40 10 } { 1 10 } }
34 [ T{ rect f { 50 20 } { 50 50 } } ] [
35 T{ rect f { 50 70 } { 0 0 } }
41 [ T{ rect f { 0 20 } { 50 50 } } ] [
42 T{ rect f { -50 70 } { 0 0 } }
48 [ T{ rect f { 0 50 } { 50 50 } } ] [
49 T{ rect f { 0 50 } { 0 0 } }
55 [ T{ rect f { 0 90 } { 10 10 } } ] [
56 T{ rect f { 0 1000 } { 0 0 } }