PageRenderTime 24ms CodeModel.GetById 12ms app.highlight 10ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/octave/default_constructor_runme.m

#
Objective C | 111 lines | 78 code | 33 blank | 0 comment | 0 complexity | 31adf26515b1f1f2a059e068fca0e72b MD5 | raw file
  1default_constructor
  2
  3dc = default_constructor;
  4
  5a = dc.new_A();
  6dc.delete_A(a);
  7
  8aa = dc.new_AA();
  9dc.delete_AA(aa);
 10
 11try
 12    b = dc.new_B();
 13    error("Whoa. new_BB created.")
 14catch
 15end_try_catch
 16
 17del_b = dc.delete_B;
 18
 19try
 20    bb = dc.new_BB();
 21    error("Whoa. new_BB created.")
 22catch
 23end_try_catch
 24
 25del_bb = dc.delete_BB;
 26
 27try
 28    c = dc.new_C();
 29    error("Whoa. new_C created.")
 30catch
 31end_try_catch
 32
 33del_c = dc.delete_C;
 34
 35cc = dc.new_CC();
 36dc.delete_CC(cc);
 37
 38try
 39    d = dc.new_D();
 40    error("Whoa. new_D created")
 41catch
 42end_try_catch
 43
 44del_d = dc.delete_D;
 45
 46try
 47    dd = dc.new_DD();
 48    error("Whoa. new_DD created")
 49catch
 50end_try_catch
 51
 52dd = dc.delete_DD;
 53
 54try
 55    ad = dc.new_AD();
 56    error("Whoa. new_AD created")
 57catch
 58end_try_catch
 59
 60del_ad = dc.delete_AD;
 61
 62e = dc.new_E();
 63dc.delete_E(e);
 64
 65ee = dc.new_EE();
 66dc.delete_EE(ee);
 67
 68try
 69    eb = dc.new_EB();
 70    error("Whoa. new_EB created")
 71catch
 72end_try_catch
 73
 74del_eb = dc.delete_EB;
 75
 76f = dc.new_F();
 77
 78try
 79    del_f = dc.delete_F;
 80    error("Whoa. delete_F created")
 81catch
 82end_try_catch
 83
 84dc.F_destroy(f);
 85
 86ff = dc.new_FFF();
 87try
 88    del_ff = dc.delete_FFF;
 89    error("Whoa. delete_FFF created")
 90catch
 91end_try_catch
 92
 93dc.F_destroy(ff);
 94
 95g = dc.new_G();
 96
 97try
 98    del_g = dc.delete_G;
 99    error("Whoa. delete_G created")
100catch
101end_try_catch
102
103dc.G_destroy(g);
104
105gg = dc.new_GG();
106dc.delete_GG(gg);
107
108
109hh = default_constructor.HH(1,1);
110
111