Package edu.purdue.cs.barista.util
Class WeightCalc
- java.lang.Object
-
- edu.purdue.cs.barista.util.WeightCalc
-
public final class WeightCalc extends Object
TheWeightCalcclass 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 voidmain(String[] args)Checks that allTestCases in a given package total to a maximum score.
-
-
-
Method Detail
-
main
public static void main(String[] args)
Checks that allTestCases in a given package total to a maximum score. Totals test weights forTestSuiteclasses inside of the package given by thetest.package.namesystem property. If this property is not set, thedefaultpackage is used to calculate test weights. The maximum score is given by thetest.maxScoresystem property. The value oftest.maxScoremust be a non-negative integer. If the maxScore property is not specified, 100 is used as the default.- Parameters:
args- has no effect
-
-