comparison mde/file/deserialize.d @ 86:79d816b3e2d2

New InitStage system, Screen & Screen.Drawable, separate testing and guiDemo binaries. This (and the previous) commit are the result of several quite significant changes to mde. All the unittests run, but it hasn't had a huge amount of testing so don't be surprised if bugs show up.
author Diggory Hardy <diggory.hardy@gmail.com>
date Fri, 12 Sep 2008 17:36:14 +0100
parents ac1e3fd07275
children 97e6dce08037
comparison
equal deleted inserted replaced
85:56c0ddd90193 86:79d816b3e2d2
523 bool r = false; 523 bool r = false;
524 try { 524 try {
525 dg(); 525 dg();
526 } catch (Exception e) { 526 } catch (Exception e) {
527 r = true; 527 r = true;
528 logger.trace ("Exception caught: "~e.msg);
529 } 528 }
530 return r; 529 return r;
531 } 530 }
532 assert (!throws ({ int i = 5; })); 531 assert (!throws ({ int i = 5; }));
533 assert (throws ({ throw new Exception ("Test - this exception should be caught"); })); 532 assert (throws ({ throw new Exception ("Test - this exception should be caught"); }));