Skip to content

Commit 19573d6

Browse files
committed
renamed methods according to naming conventions
1 parent d09bb01 commit 19573d6

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

math/src/test/java/math/Vector4fTest.java

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package math;
22

3-
43
import static org.junit.jupiter.api.Assertions.assertEquals;
54
import static org.junit.jupiter.api.Assertions.assertFalse;
65
import static org.junit.jupiter.api.Assertions.assertNotEquals;
@@ -2974,7 +2973,7 @@ public void testToVector3fZeroValues() {
29742973
// ----------------------------------------------------------------------------------------------
29752974

29762975
@Test
2977-
public void testDivideByW_validW() {
2976+
public void testDivideBywValidW() {
29782977
// Test case where w is non-zero
29792978
Vector4f vector = new Vector4f(4.0f, 8.0f, 12.0f, 2.0f);
29802979

@@ -2987,7 +2986,7 @@ public void testDivideByW_validW() {
29872986
}
29882987

29892988
@Test
2990-
public void testDivideByW_wIsZero() {
2989+
public void testDivideByWwIsZero() {
29912990
// Test case where w is zero, expecting an ArithmeticException
29922991
Vector4f vector = new Vector4f(4.0f, 8.0f, 12.0f, 0.0f);
29932992

@@ -3003,7 +3002,7 @@ public void testDivideByW_wIsZero() {
30033002
}
30043003

30053004
@Test
3006-
public void testDivideByW_wIsNegative() {
3005+
public void testDivideBywWIsNegative() {
30073006
// Test case where w is negative
30083007
Vector4f vector = new Vector4f(4.0f, 8.0f, 12.0f, -2.0f);
30093008

@@ -3016,7 +3015,7 @@ public void testDivideByW_wIsNegative() {
30163015
}
30173016

30183017
@Test
3019-
public void testDivideByW_createsNewInstance() {
3018+
public void testDivideBywCreatesNewInstance() {
30203019
// Create an original vector
30213020
Vector4f originalVector = new Vector4f(4.0f, 8.0f, 12.0f, 2.0f);
30223021

@@ -3045,7 +3044,7 @@ public void testDivideByW_createsNewInstance() {
30453044
// ----------------------------------------------------------------------------------------------
30463045

30473046
@Test
3048-
public void testDivideByWLocal_updatesOriginalVector() {
3047+
public void testDivideByWLocalUpdatesOriginalVector() {
30493048
// Create a vector
30503049
Vector4f vector = new Vector4f(4.0f, 8.0f, 12.0f, 2.0f);
30513050

@@ -3063,7 +3062,7 @@ public void testDivideByWLocal_updatesOriginalVector() {
30633062
}
30643063

30653064
@Test
3066-
public void testDivideByWLocal_throwsArithmeticException_whenWIsZero() {
3065+
public void testDivideByWLocalThrowsArithmeticException_whenWIsZero() {
30673066
// Create a vector with w = 0
30683067
Vector4f vector = new Vector4f(4.0f, 8.0f, 12.0f, 0.0f);
30693068

@@ -3077,7 +3076,7 @@ public void testDivideByWLocal_throwsArithmeticException_whenWIsZero() {
30773076
}
30783077

30793078
@Test
3080-
public void testDivideByWLocal_doesNotCreateNewInstance() {
3079+
public void testDivideByWLocalDoesNotCreateNewInstance() {
30813080
// Create a vector
30823081
Vector4f vector = new Vector4f(4.0f, 8.0f, 12.0f, 2.0f);
30833082

0 commit comments

Comments
 (0)