Permalink
Browse files

Add spectest for clause: unknown clause

  • Loading branch information...
1 parent d8b7c01 commit a2c2633df3f2bbfb2744fff89bdd82fb305630d7 Steven Haryanto (on Asus Zenbook) committed Jan 11, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 devscripts/gen-type-spectest
@@ -127,6 +127,12 @@ sub gen_BaseType_tests {
# clause
push @res, {
+ name => "clause (nok, unknown clause)",
+ input => $args{value},
+ schema => ["$Type*", clause=>"foo"],
+ dies => 1,
+ };
+ push @res, {
name => "clause (ok)",
input => $args{value},
schema => ["$Type*", clause=>$args{ok_clauses}[0]],

0 comments on commit a2c2633

Please sign in to comment.