| 22 | | eval_is 'Backend1.new.hi', 42, "basic sanity (1)", :todo<feature>; |
| 23 | | eval_is 'Backend2.new.hi', 23, "basic sanity (2)", :todo<feature>; |
| | 23 | is eval('Backend1.new.hi'), 42, "basic sanity (1)", :todo<feature>; |
| | 24 | is eval('Backend2.new.hi'), 23, "basic sanity (2)", :todo<feature>; |
| 27 | | eval_ok '$a = Frontend.new', "basic instantiation worked (1)", :todo<feature>; |
| 28 | | eval_ok '!try { $a.hi }', "calling a method on no object didn't succeed (1)"; |
| 29 | | eval_ok '$a.backend = Backend1.new()', "setting a handler object (1)", :todo<feature>; |
| 30 | | eval_ok '!$a ~~ Backend1', "object wasn't isa()ed (1)", :todo<feature>; |
| 31 | | eval_is '$a.hi', 42, "method was successfully handled by backend object (1)", :todo<feature>; |
| | 28 | ok eval('$a = Frontend.new'), "basic instantiation worked (1)", :todo<feature>; |
| | 29 | ok eval('!try { $a.hi }'), "calling a method on no object didn't succeed (1)"; |
| | 30 | ok eval('$a.backend = Backend1.new()'), "setting a handler object (1)", :todo<feature>; |
| | 31 | ok eval('!$a ~~ Backend1'), "object wasn't isa()ed (1)", :todo<feature>; |
| | 32 | is eval('$a.hi'), 42, "method was successfully handled by backend object (1)", :todo<feature>; |
| 36 | | eval_ok '$a = Frontend.new', "basic instantiation worked (2)", :todo<feature>; |
| 37 | | eval_ok '!try { $a.hi }', "calling a method on no object didn't succeed (2)"; |
| 38 | | eval_ok '$a.backend = Backend2.new()', "setting a handler object (2)", :todo<feature>; |
| 39 | | eval_ok '!$a ~~ Backend2', "object wasn't isa()ed (2)", :todo<feature>; |
| 40 | | eval_is '$a.hi', 23, "method was successfully handled by backend object (2)", :todo<feature>; |
| | 37 | ok eval('$a = Frontend.new'), "basic instantiation worked (2)", :todo<feature>; |
| | 38 | ok eval('!try { $a.hi }'), "calling a method on no object didn't succeed (2)"; |
| | 39 | ok eval('$a.backend = Backend2.new()'), "setting a handler object (2)", :todo<feature>; |
| | 40 | ok eval('!$a ~~ Backend2'), "object wasn't isa()ed (2)", :todo<feature>; |
| | 41 | is eval('$a.hi'), 23, "method was successfully handled by backend object (2)", :todo<feature>; |
| 49 | | eval_ok '$a = ReFrontend.new', "basic instantiation worked (3)", :todo<feature>; |
| 50 | | eval_ok '!try { $a.hi }', "calling a method on no object didn't succeed (3)"; |
| 51 | | eval_ok '$a.backend = Backend1.new()', "setting a handler object (3)", :todo<feature>; |
| 52 | | eval_ok '!$a ~~ Backend1', "object wasn't isa()ed (3)", :todo<feature>; |
| 53 | | eval_is '$a.hi', 42, "method was successfully handled by backend object (3)", :todo<feature>; |
| | 50 | ok eval('$a = ReFrontend.new'), "basic instantiation worked (3)", :todo<feature>; |
| | 51 | ok eval('!try { $a.hi }'), "calling a method on no object didn't succeed (3)"; |
| | 52 | ok eval('$a.backend = Backend1.new()'), "setting a handler object (3)", :todo<feature>; |
| | 53 | ok eval('!$a ~~ Backend1'), "object wasn't isa()ed (3)", :todo<feature>; |
| | 54 | is eval('$a.hi'), 42, "method was successfully handled by backend object (3)", :todo<feature>; |
| 62 | | eval_ok '$a = ClassFrontend.new', "basic instantiation worked (4)", :todo<feature>; |
| 63 | | eval_ok '!try { $a.hi }', "calling a method on no object didn't succeed (4)"; |
| 64 | | eval_ok '$a.backend = Backend1.new()', "setting a handler object (4)", :todo<feature>; |
| 65 | | eval_ok '!$a ~~ Backend1', "object wasn't isa()ed (4-1)", :todo<feature>; |
| 66 | | eval_ok '!$a ~~ Backend2', "object wasn't isa()ed (4-2)", :todo<feature>; |
| 67 | | eval_is '$a.hi', 42, "method was successfully handled by backend object (4)", :todo<feature>; |
| | 63 | ok eval('$a = ClassFrontend.new'), "basic instantiation worked (4)", :todo<feature>; |
| | 64 | ok eval('!try { $a.hi }'), "calling a method on no object didn't succeed (4)"; |
| | 65 | ok eval('$a.backend = Backend1.new()'), "setting a handler object (4)", :todo<feature>; |
| | 66 | ok eval('!$a ~~ Backend1'), "object wasn't isa()ed (4-1)", :todo<feature>; |
| | 67 | ok eval('!$a ~~ Backend2'), "object wasn't isa()ed (4-2)", :todo<feature>; |
| | 68 | is eval('$a.hi'), 42, "method was successfully handled by backend object (4)", :todo<feature>; |
| 76 | | eval_ok '$a = MultiFrontend.new', "basic instantiation worked (5)", :todo<feature>; |
| 77 | | eval_ok '!try { $a.hi }', "calling a method on no object didn't succeed (5-1)"; |
| 78 | | eval_ok '!try { $a.cool }', "calling a method on no object didn't succeed (5-2)"; |
| 79 | | eval_ok '$a.backend = Backend1.new()', "setting a handler object (5)", :todo<feature>; |
| 80 | | eval_ok '!$a ~~ Backend1', "object wasn't isa()ed (5)", :todo<feature>; |
| 81 | | eval_is '$a.hi', 42, "method was successfully handled by backend object (5-1)", :todo<feature>; |
| 82 | | eval_is '$a.cool', 1337, "method was successfully handled by backend object (5-2)", :todo<feature>; |
| | 77 | ok eval('$a = MultiFrontend.new'), "basic instantiation worked (5)", :todo<feature>; |
| | 78 | ok eval('!try { $a.hi }'), "calling a method on no object didn't succeed (5-1)"; |
| | 79 | ok eval('!try { $a.cool }'), "calling a method on no object didn't succeed (5-2)"; |
| | 80 | ok eval('$a.backend = Backend1.new()'), "setting a handler object (5)", :todo<feature>; |
| | 81 | ok eval('!$a ~~ Backend1'), "object wasn't isa()ed (5)", :todo<feature>; |
| | 82 | is eval('$a.hi'), 42, "method was successfully handled by backend object (5-1)", :todo<feature>; |
| | 83 | is eval('$a.cool'), 1337, "method was successfully handled by backend object (5-2)", :todo<feature>; |