X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=t%2Ftools.t;h=3d9f52547d21d91714f1fc23d832141021a88e7a;hb=aaa9eb7d81598848183239016890f3a851082154;hp=5cfdfb971ce7ba91e3e08f6b16e3f529a0d602d7;hpb=efb4be8260d99167d75ea9fc9aaaf281cfd8ba08;p=gruntmaster-data.git diff --git a/t/tools.t b/t/tools.t index 5cfdfb9..3d9f525 100644 --- a/t/tools.t +++ b/t/tools.t @@ -22,7 +22,7 @@ withdb { $db->deploy }; my $pipe; -open $pipe, '|$perl gruntmaster-contest add ct'; +open $pipe, "|$perl gruntmaster-contest add ct"; print $pipe <<''; My cool contest MGV @@ -56,7 +56,7 @@ is_deeply \@list, [ sort @list2 ], 'gruntmaster-contest list'; system $perl, 'gruntmaster-contest', 'rm', 'dummy'; withdb { ok !$db->contest('dummy'), 'gruntmaster-contest rm' }; -open $pipe, '|$perl gruntmaster-problem add pb'; +open $pipe, "|$perl gruntmaster-problem add pb"; print $pipe <<''; Test problem n @@ -102,7 +102,7 @@ is `$perl gruntmaster-problem get pb author`, "Marius Gavrilescu\n", 'gruntmaste system $perl, 'gruntmaster-problem', 'set', 'pb', 'owner', 'nobody'; withdb { is $db->problem('pb')->owner->id, 'nobody', 'gruntmaster-problem set' }; -withdb { $db->problems->create({id => 'dummy', name => 'Dummy', generator => 'Undef', runner => 'File', judge => 'Absolute', level => 'beginner', owner => 'MGV', statement => '...', testcnt => 1, timeout => 1}) }; +withdb { $db->problems->create({id => 'dummy', name => 'Dummy', generator => 'Undef', runner => 'File', judge => 'Absolute', level => 'beginner', value => 100, owner => 'MGV', statement => '...', testcnt => 1, timeout => 1}) }; @list = sort `$perl gruntmaster-problem list`; chomp @list;