]> iEval git - gruntmaster-daemon.git/blame_incremental - lib/Gruntmaster/Daemon/Judge/Absolute.pm
Bump version and update Changes
[gruntmaster-daemon.git] / lib / Gruntmaster / Daemon / Judge / Absolute.pm
... / ...
CommitLineData
1package Gruntmaster::Daemon::Judge::Absolute;
2
3use 5.014000;
4use strict;
5use warnings;
6
7use Gruntmaster::Daemon::Constants qw/AC/;
8
9our $VERSION = '5999.000_004';
10
11##################################################
12
13sub judge{
14 my $result = pop;
15 ref $result ? (result => $result->[0], result_text => $result->[1]) : (result => AC, result_text => 'Accepted')
16}
17
181;
19__END__
20
21=encoding utf-8
22
23=head1 NAME
24
25Gruntmaster::Daemon::Judge::Absolute - All-or-nothing ACM-style judge
26
27=head1 SYNOPSIS
28
29 use Gruntmaster::Daemon::Judge::Absolute;
30 Gruntmaster::Daemon::Judge::Absolute::judge($result1, $result2, $result3, ...);
31
32=head1 DESCRIPTION
33
34Gruntmaster::Daemon::Judge::Absolute is a judge which returns the result of the last test executed. Gruntmaster::Daemon stops running tests if the judge is Gruntmaster::Daemon::Judge::Absolute and a test fails, so the last test result is Accepted if and only if all tests succeeded.
35
36=head1 AUTHOR
37
38Marius Gavrilescu E<lt>marius@ieval.roE<gt>
39
40=head1 COPYRIGHT AND LICENSE
41
42Copyright (C) 2014 by Marius Gavrilescu
43
44This library is free software: you can redistribute it and/or modify
45it under the terms of the GNU Affero General Public License as published by
46the Free Software Foundation, either version 3 of the License, or
47(at your option) any later version.
48
49
50=cut
This page took 0.022416 seconds and 4 git commands to generate.