@@ -22,14 +22,14 @@ void testConstructor() {
2222 // TC10: Test when 2 points are the same
2323 assertThrows (
2424 IllegalArgumentException .class ,
25- ()-> new Plane (p , p , new Point (0 , 0 , 1 )),
25+ () -> new Plane (p , p , new Point (0 , 0 , 1 )),
2626 "ERROR: ctor() does not throw an exception when 2 points are the same"
2727 );
2828
2929 // TC11: Test when all 3 points are on the same line
3030 assertThrows (
3131 IllegalArgumentException .class ,
32- ()-> new Plane (p , new Point (2 , 0 , 0 ), new Point (3 , 0 , 0 )),
32+ () -> new Plane (p , new Point (2 , 0 , 0 ), new Point (3 , 0 , 0 )),
3333 "ERROR: ctor() does not throw an exception when all 3 points are on the same line"
3434 );
3535 }
@@ -51,8 +51,8 @@ void testGetNormal() {
5151
5252 assertEquals (1 , normal .length (), "ERROR: getNormal() vector is not the unit vector" );
5353 assertTrue (
54- normal .equals (new Vector (1 , 1 , 1 )) ||
55- normal .equals (new Vector (-1 , -1 , -1 )),
54+ normal .equals (new Vector (1 , 1 , 1 ). normalize () ) ||
55+ normal .equals (new Vector (-1 , -1 , -1 ). normalize () ),
5656 "ERROR: getNormal() wrong value" );
5757 }
5858}
0 commit comments