[svn:parrot] r45993 - trunk/t/oo
dukeleto at svn.parrot.org
dukeleto at svn.parrot.org
Sat Apr 24 18:46:46 UTC 2010
Author: dukeleto
Date: Sat Apr 24 18:46:45 2010
New Revision: 45993
URL: https://trac.parrot.org/parrot/changeset/45993
Log:
[TT #992] Committing a test for invalid :vtable methods that now passes since the TT was reported
Modified:
trunk/t/oo/vtableoverride.t
Modified: trunk/t/oo/vtableoverride.t
==============================================================================
--- trunk/t/oo/vtableoverride.t Sat Apr 24 18:22:26 2010 (r45992)
+++ trunk/t/oo/vtableoverride.t Sat Apr 24 18:46:45 2010 (r45993)
@@ -18,12 +18,23 @@
.sub main :main
.include 'test_more.pir'
- plan(13)
+ plan(14)
newclass_tests()
subclass_tests()
vtable_implies_self_tests()
anon_vtable_tests()
+ invalid_vtable()
+.end
+
+.sub invalid_vtable
+ throws_like(<<'CODE',':s but was used with \:vtable', 'invalid :vtable throws an exception')
+ .namespace [ "Test" ]
+ .sub monkey :method :vtable("not_in_the_vtable")
+ .param int key
+ .return("monkey")
+ .end
+CODE
.end
.sub 'newclass_tests'
More information about the parrot-commits
mailing list