diff --git a/progtest/bin/runner.js b/progtest/bin/runner.js index 11248672..88959922 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 8eeb8375..7e858541 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