First try

Re: First try

by Richard Lobb -
Number of replies: 0

CodeRunner tests generally have to generate some output. A test case int x = 1 is a declaration, and doesn't generate any output. Since none of the tests generate any output, the Got column of the result table has been hidden.

If this is an example of a Java write-a-class question then the tests will have to create an instance of the student-supplied class and call it. For example:

Tester tester = new Tester();
System.out.println(tester.test(17));

I suggest you check out the sample questions supplied in the samples folder in the CodeRunner distribution, e.g. here.

Richard