Package edu.purdue.cs.barista.util
Class WeightCalc
- java.lang.Object
-
- edu.purdue.cs.barista.util.WeightCalc
-
public final class WeightCalc extends Object
TheWeightCalc
class checks that all test cases total to a givenmaxScore
. If the test cases do not total to the max score set in Gradescope, students could be given an incorrect grade.- Since:
- 1.1
- Version:
- 3.1, 2020-05-10
- Author:
- Andrew Davis, asd@alumni.purdue.edu
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
Checks that allTestCase
s in a given package total to a maximum score.
-
-
-
Method Detail
-
main
public static void main(String[] args)
Checks that allTestCase
s in a given package total to a maximum score. Totals test weights forTestSuite
classes inside of the package given by thetest.package.name
system property. If this property is not set, thedefault
package is used to calculate test weights. The maximum score is given by thetest.maxScore
system property. The value oftest.maxScore
must be a non-negative integer. If the maxScore property is not specified, 100 is used as the default.- Parameters:
args
- has no effect
-
-