3 #include "../document.h"
10 unsigned test_objects = 4;
12 int main(int argc, char ** argv)
16 for (unsigned id = 0; id < test_objects; ++id)
18 doc.Add((ObjectType)(rand() % 2), Rect(Random(), Random(), Random(), Random()));
20 doc.Save("test.ipdf");
22 Document equ("test.ipdf");
23 //doc.Add(Random(), Random(), Random(), Random());
24 if (doc != equ || equ != doc)
26 Error("Loaded document is not equivelant to saved document!");
27 doc.DebugDumpObjects();
28 equ.DebugDumpObjects();
35 while (scr.PumpEvents())