projects
/
gruntmaster-data.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
096c733
)
Add gm -p show test
author
Marius Gavrilescu
<marius@ieval.ro>
Sun, 12 Apr 2015 20:11:59 +0000
(23:11 +0300)
committer
Marius Gavrilescu
<marius@ieval.ro>
Sun, 12 Apr 2015 20:12:40 +0000
(23:12 +0300)
t/tools.t
patch
|
blob
|
blame
|
history
diff --git
a/t/tools.t
b/t/tools.t
index 45c0e8f994e5543b9a1c20fcf77b7ff8e5020f4e..f871ad07c39a7a221c7062a33b0ed85dbdd4b699 100644
(file)
--- a/
t/tools.t
+++ b/
t/tools.t
@@
-10,7
+10,7
@@
BEGIN {
eval {
Gruntmaster::Data::init 'dbi:Pg:dbname=gmtest'; 1;
} or plan skip_all => 'Cannot connect to test database. Create it by running make_test_db.sh before running this test. '. "Error: $@";
eval {
Gruntmaster::Data::init 'dbi:Pg:dbname=gmtest'; 1;
} or plan skip_all => 'Cannot connect to test database. Create it by running make_test_db.sh before running this test. '. "Error: $@";
- plan tests =>
29
;
+ plan tests =>
30
;
}
sub fakein {
}
sub fakein {
@@
-78,6
+78,11
@@
EOF
ta [qw/-p add pb/];
ta [qw/-p add pb/];
+{
+ my $out = ta([qw/-p show pb/])->output;
+ like $out, qr/Value \(points\): 250/, 'gm -p show pb contains Value'
+}
+
subtest 'gruntmaster-problem add' => sub {
plan tests => 10;
my $pb = problem_entry 'pb';
subtest 'gruntmaster-problem add' => sub {
plan tests => 10;
my $pb = problem_entry 'pb';
This page took
0.011672 seconds
and
4
git commands to generate.