Class StatusOracle


  • public class StatusOracle
    extends Oracle
    An oracle that scores based upon whether the test case launch command succeeded or failed, according to its status code.
    • Constructor Detail

      • StatusOracle

        public StatusOracle​(OracleProperties config,
                            TestCase testCase,
                            Submission submission,
                            Stage submitterStage)
        Create a new oracle.
        Parameters:
        config - configuration properties
        testCase - the test case to which this oracle will apply
        submission - the submission being judged
        submitterStage - the stage where the submitted code has been built
    • Method Detail

      • compare

        public OracleResult compare​(java.lang.String expected,
                                    java.lang.String actual)
        Compare two strings to see if one is an acceptable variant of the other. The precise meaning of "acceptable" depends on the settings.
        Specified by:
        compare in class Oracle
        Parameters:
        expected - the expected string
        actual - the string being examined
        Returns:
        true if actual is an acceptable variant of expected.