javalangAssertionError expected这是一个等边三角形。 but wasnull at orgjunitAssertfailAssertjava88 at orgjunitAssertfailNotEqualsAssertjava743 at orgjunitAssertassertEqualsAssertjava118 at orgjunitAssertassertEq
This error message indicates that the test case "testTriangleClassification" in the class "TriangleClassificationTest" has failed. The expected result was "这是一个等边三角形。" (which means "This is an equilateral triangle" in Chinese), but the actual result was null. This means that the program did not produce any output or the output was empty.
To fix this error, you need to check the implementation of the program and make sure that it correctly classifies the given triangle and produces the expected output. You may also need to check the input values of the test case to ensure that they are valid and cover all possible scenarios.
原文地址: https://www.cveoy.top/t/topic/b54W 著作权归作者所有。请勿转载和采集!