quick-dice-roller icon indicating copy to clipboard operation
quick-dice-roller copied to clipboard

fixed few errors

Open bryanspacex opened this issue 1 year ago • 0 comments

Here are the errors found in the code:

  1. The import statements are missing for the assertions from the JUnit framework (import static org.junit.Assert.*;).

  2. The class Dice is not defined or imported in the code. The line that creates an instance of Dice is commented out.

  3. The method Dice.roll(faces) suggests that roll is a static method of the Dice class, but it is not defined or imported in the code.

  4. The commented out line with double tolerance = expected * 0.005; suggests the use of a tolerance value, but it is not used in the assertEquals assertion.

  5. The commented out lines containing System.out.print are not terminated with a semicolon, causing a compilation error.

bryanspacex avatar Jul 03 '23 15:07 bryanspacex