comparison mde/file/mergetag/DataSet.d @ 88:01f4f5f1acc9

Changes to init and to allow compiling with gdc. Tweaked init code to allow using circular iterators (disabled until my patch makes it into tango). Changes to allow compiling with gdc. Building is successful and unittests complete, but in my experience a SIGSEGV occurs within SDL.
author Diggory Hardy <diggory.hardy@gmail.com>
date Mon, 29 Sep 2008 12:09:44 +0100
parents ac1e3fd07275
children
comparison
equal deleted inserted replaced
87:2212285f714c 88:01f4f5f1acc9
61 unittest { // Only covers DataSet really. 61 unittest { // Only covers DataSet really.
62 DataSet ds = new DataSet; 62 DataSet ds = new DataSet;
63 ds.sec[cast(ID)"test"] = new DefaultData; 63 ds.sec[cast(ID)"test"] = new DefaultData;
64 assert (ds.getSections!(DefaultData)().length == 1); 64 assert (ds.getSections!(DefaultData)().length == 1);
65 ds.sec[cast(ID)"test"].addTag ("char[]",cast(ID)"T"," \"ut tag 1 \" "); 65 ds.sec[cast(ID)"test"].addTag ("char[]",cast(ID)"T"," \"ut tag 1 \" ");
66 assert (ds.getSections!(DefaultData)()[cast(ID)"test"].Arg!(char[])[cast(ID)"T"] == "ut tag 1 "); 66 assert (ds.getSections!(DefaultData)()[cast(ID)"test"]._charA[cast(ID)"T"] == "ut tag 1 ");
67 67
68 logger.info ("Unittest complete."); 68 logger.info ("Unittest complete.");
69 } 69 }
70 } 70 }