]> iEval git - gruntmaster-data.git/blobdiff - t/Gruntmaster-Data.t
Bump version and update Changes
[gruntmaster-data.git] / t / Gruntmaster-Data.t
index 6d381eaecde541ee6ee188c376724f985690717b..0c77a410276fb3e0ce7b2111c08d6cac55a7aabe 100644 (file)
@@ -8,7 +8,7 @@ use Test::More;
 
 BEGIN {
        eval {
-               Gruntmaster::Data::init 'dbi:Pg:dbname=gmtest'; 1;
+               dbinit 'dbi:Pg:dbname=gmtest'; 1;
        } or plan skip_all => 'Cannot connect to test database. Create it by running createdb gmtest before running this test. '. "Error: $@";
        plan tests => 33;
 }
@@ -101,8 +101,13 @@ is_deeply $x->{results}, [], 'job_entry results';
 $x = job_entry 7;
 ok !defined $x->{result}, 'job_entry 7 has NULL result';
 
+open_problem qw/fc fca MGV/, contest_entry('fc')->{start} + 300;
+
 $x = standings 'fc';
+
 is_deeply $x, [
-       {rank => 1, user => 'MGV', user_name => undef, score => 50, scores => [50]},
+       {rank => 1, user => 'MGV', user_name => undef, score => 80, scores => [80]},
        {rank => 2, user => 'nobody', user_name => undef, score => 40, scores => [40]},
 ], 'standings fc';
+
+db->delete('opens', {contest => 'fc', problem => 'fca', owner => 'MGV'});
This page took 0.027194 seconds and 4 git commands to generate.