Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'progtest')
-rw-r--r--progtest/bin/runner.js3
-rw-r--r--progtest/src/env.js4
2 files changed, 4 insertions, 3 deletions
diff --git a/progtest/bin/runner.js b/progtest/bin/runner.js
index 1124867..8895992 100644
--- a/progtest/bin/runner.js
+++ b/progtest/bin/runner.js
@@ -32,8 +32,5 @@ const runner = require( '../src/env' ).console(
program, process.stdout
);
-// XXX: work around issue with consts not being initialized ahead of time
-program.rater( {} );
-
runner( case_yaml )
.catch( e => console.error( e ) );
diff --git a/progtest/src/env.js b/progtest/src/env.js
index 8eeb837..7e85854 100644
--- a/progtest/src/env.js
+++ b/progtest/src/env.js
@@ -52,6 +52,10 @@ module.exports = {
.use( ConstResolver( program ) )
( yaml_reader, TestCase );
+ // XXX: work around issue with consts not being initialized ahead of
+ // time (initialized during actual rating...!)
+ program.rater( {} );
+
return yaml => new Promise( ( resolve, reject ) =>
{
try