-$e = &validate({}, $v);
-&print_ok($e);
-$e = &validate({user => 1}, $v);
-&print_ok(! $e);
-$e = &validate({user => 1, bar => 1}, $v);
-&print_ok($e);
-$e = &validate({user => 1, bar => 1, foo => 1}, $v);
-&print_ok(! $e);
-
-
-### three groups, some with validate_if's - using arrayref
-$v = '
-- group validate_if: foo
- bar:
- required: 1
-- group validate_if: hem
- haw: { required: 1 }
-- raspberry:
- required: 1
-';
-
-$e = &validate({}, $v);
-&print_ok($e);
-
-$e = &validate({
- raspberry => 'tart',
-}, $v);
-&print_ok(! $e);
-
-$e = &validate({
- foo => 1,
- raspberry => 'tart',
-}, $v);
-&print_ok($e);
-
-$e = &validate({
- foo => 1,
- bar => 1,
- raspberry => 'tart',
-}, $v);
-&print_ok(! $e);
-
-$e = &validate({
- foo => 1,
- bar => 1,
- hem => 1,
- raspberry => 'tart',
-}, $v);
-&print_ok($e);
-
-$e = &validate({
- foo => 1,
- bar => 1,
- hem => 1,
- haw => 1,
- raspberry => 'tart',
-}, $v);
-&print_ok(! $e);
-
-
-### three groups, some with validate_if's - using documents
-$v = '---
-group validate_if: foo
-bar:
- required: 1
----
-group validate_if: hem
-haw: { required: 1 }
----
-raspberry:
- required: 1
-';
-
-$e = &validate({}, $v);
-&print_ok($e);
-
-$e = &validate({
- raspberry => 'tart',
-}, $v);
-&print_ok(! $e);
-
-$e = &validate({
- foo => 1,
- raspberry => 'tart',
-}, $v);
-&print_ok($e);
-
-$e = &validate({
- foo => 1,
- bar => 1,
- raspberry => 'tart',
-}, $v);
-&print_ok(! $e);
-
-$e = &validate({
- foo => 1,
- bar => 1,
- hem => 1,
- raspberry => 'tart',
-}, $v);
-&print_ok($e);
+$e = validate({}, $v);
+ok($e);
+$e = validate({user => 1}, $v);
+ok(! $e);
+$e = validate({user => 1, bar => 1}, $v);
+ok($e);
+$e = validate({user => 1, bar => 1, foo => 1}, $v);
+ok(! $e);