Skip to content

Commit

Permalink
spectest: Test str clause: is_re
Browse files Browse the repository at this point in the history
  • Loading branch information
sharyanto committed Nov 1, 2012
1 parent 8a6bb6d commit dafd88d
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion devscripts/gen-type-spectest
Expand Up @@ -843,7 +843,31 @@ sub gen_str_tests {
dies => 1,
},

# XXX is_re
{
name => 'is_re: 1 (ok)',
input => "a",
schema => [str => is_re => 1],
valid => 1,
},
{
name => 'is_re: 1 (nok)',
input => "a(",
schema => [str => is_re => 1],
valid => 0,
},
{
name => 'is_re: 0 (ok)',
input => "a(",
schema => [str => is_re => 0],
valid => 1,
},
{
name => 'is_re: 0 (nok)',
input => "a",
schema => [str => is_re => 0],
valid => 0,
},

);
}

Expand Down

0 comments on commit dafd88d

Please sign in to comment.