Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Man page slightly wrong. It's missing some punctuation. #31

Open
davehodg opened this issue Oct 14, 2020 · 0 comments
Open

Man page slightly wrong. It's missing some punctuation. #31

davehodg opened this issue Oct 14, 2020 · 0 comments

Comments

@davehodg
Copy link

davehodg commented Oct 14, 2020

It should be:

#!/usr/bin/env perl

use strict;
use warnings;

use HTML::Mason::Tests;

my $group = HTML::Mason::Tests->new( name => 'name of group', description => 'tests something' );
$group->add_test( name => 'foo',
description => 'tests foo',
comp_root =>
'/home/daveh/Perforce/code_SaaS/head/portal/WWWDocs/portal/cloud_dashboard/',
component => <<'EOF'
<%args>
$foo => 1
</%args>
<% $foo %>
EOF,
expect => <<'EOF',
1
EOF
);

Also, I think it's well worthwhile mentioning that expect can be a regexp. I only found that by trawling the source code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant