]> iEval git - gruntmaster-daemon.git/blame - lib/Gruntmaster/Daemon/Judge/Absolute.pm
Do not pass -n to fpc
[gruntmaster-daemon.git] / lib / Gruntmaster / Daemon / Judge / Absolute.pm
CommitLineData
5c5cd38a
MG
1package Gruntmaster::Daemon::Judge::Absolute;
2
3use 5.014000;
4use strict;
5use warnings;
6
7use Gruntmaster::Daemon::Constants qw/AC/;
8
a5522656 9our $VERSION = '5999.000_001';
5c5cd38a
MG
10
11##################################################
12
13sub judge{
9d3e429a
MG
14 my $result = pop;
15 ref $result ? (result => $result->[0], result_text => $result->[1]) : (result => AC, result_text => 'Accepted')
5c5cd38a
MG
16}
17
181;
19__END__
8aec2ffe
MG
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.030664 seconds and 4 git commands to generate.