BooleanOperatorsTest
- What is the knowledge point of the test? Where is the official document to the knowledge point?
- Official Document: https://docs.oracle.com/javase/tutorial/java/nutsandbolts/operators.html
- Reading and answering the expected output of the code without running.
- Performing the logical Boolean operators and bitwise.
- Why the test failed at first?
- The expected values are null or incorrect
- Why you corrected the test that way?
- I initialized the expected Boolean result.
- Do you have further questions on this knowledge point?
- None
CharTypeTest
- What is the knowledge point of the test? Where is the official document to the knowledge point?
- Official Document: https://docs.oracle.com/javase/tutorial/java/data/characters.html
- Learning escape sequence
- Escaped characters
- Why the test failed at first?
- The initialize values are whitespaces
- Why you corrected the test that way?
- I initialized the variables to the expected escape character
- Do you have further questions on this knowledge point?
- None
FloatingTypeTest
- What is the knowledge point of the test? Where is the official document to the knowledge point?
- Official Document: https://docs.oracle.com/javase/8/docs/api/java/lang/Math.html
- Learning data type conversion
- Rounding off numbers
- Check if numbers are real numbers or not
- Why the test failed at first?
- The initialized variables are having the MAX Integer value
- No throw exception overflow and underflow values
- Why you corrected the test that way?
- I used short for narrowing casting.
- Math.Round() for rounding off
- Math.addExact() for ArithmethicException
- Throw exception error for non-real numbers.
- Do you have further questions on this knowledge point?
- None
IntegerTypeTest
- What is the knowledge point of the test? Where is the official document to the knowledge point?
- Official Document: https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html, https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html
- Learning Primitive data types.
- Maximum and Minimum values for each data types
- Why the test failed at first?
- The expected values are incorrect
- Why you corrected the test that way?
- I initialized the expected values to Max and Min value for each data type.
- addExact method for overflowing and underflowing values.
- Throw NotImplementedException
- Do you have further questions on this knowledge point?
- None