comparison doodle/tk/test/test1.d @ 48:1b4c9ba58673

Stylistic overhaul.
author daveb
date Tue, 03 Aug 2010 17:37:21 +0930
parents 157b4ad5615d
children a274d16ab6ce
comparison
equal deleted inserted replaced
47:14f1c051c35b 48:1b4c9ba58673
19 Vector v3 = Vector(3.0, 5.0); 19 Vector v3 = Vector(3.0, 5.0);
20 assert(p3 - v3 == Point.DEFAULT); // subtraction (point minus vector) 20 assert(p3 - v3 == Point.DEFAULT); // subtraction (point minus vector)
21 21
22 Point p4 = Point(1.0, 10.0); 22 Point p4 = Point(1.0, 10.0);
23 Point p5 = Point(10.0, 1.0); 23 Point p5 = Point(10.0, 1.0);
24 assert(min_extents(p4, p5) == Point(1.0, 1.0)); // min extents 24 assert(minExtents(p4, p5) == Point(1.0, 1.0)); // min extents
25 assert(max_extents(p4, p5) == Point(10.0, 10.0)); // max extents 25 assert(maxExtents(p4, p5) == Point(10.0, 10.0)); // max extents
26 26
27 writefln("p1: %s", p1); // toString 27 writefln("p1: %s", p1); // toString
28 } 28 }
29 29
30 void test2() { 30 void test2() {