|
@@ -6,10 +6,10 @@ static void testInit() {
|
|
|
Box box = BOX;
|
|
|
setBox(&box, &V(1.0f, 2.0f, 3.0f));
|
|
|
char buffer[128];
|
|
|
- toString(&box, buffer, sizeof(buffer));
|
|
|
+ toStringBox(&box, buffer, sizeof(buffer));
|
|
|
TEST_STRING("Box([0.000, 0.000, 0.000], [1.000, 2.000, 3.000])", buffer);
|
|
|
setBox(&box, &V(-1.0f, -2.0f, -3.0f));
|
|
|
- toString(&box, buffer, sizeof(buffer));
|
|
|
+ toStringBox(&box, buffer, sizeof(buffer));
|
|
|
TEST_STRING("Box([-1.000, -2.000, -3.000], [0.000, 0.000, 0.000])", buffer);
|
|
|
}
|
|
|
|
|
@@ -18,7 +18,7 @@ static void testOffset() {
|
|
|
setBox(&box, &V(1.0f, 2.0f, 3.0f));
|
|
|
offsetBox(&box, &V(7.0f, -4.0f, 6.0f));
|
|
|
char buffer[128];
|
|
|
- toString(&box, buffer, sizeof(buffer));
|
|
|
+ toStringBox(&box, buffer, sizeof(buffer));
|
|
|
TEST_STRING("Box([7.000, -4.000, 6.000], [8.000, -2.000, 9.000])", buffer);
|
|
|
}
|
|
|
|
|
@@ -45,12 +45,12 @@ static void testExpand() {
|
|
|
expandBox(&box, &V(7.0f, -4.0f, 6.0f));
|
|
|
|
|
|
char buffer[128];
|
|
|
- toString(&box, buffer, sizeof(buffer));
|
|
|
+ toStringBox(&box, buffer, sizeof(buffer));
|
|
|
TEST_STRING("Box([0.000, -4.000, 0.000], [8.000, 2.000, 9.000])", buffer);
|
|
|
|
|
|
setBox(&box, &V(1.0f, 2.0f, 3.0f));
|
|
|
expandBox(&box, &V(-7.0f, 4.0f, -6.0f));
|
|
|
- toString(&box, buffer, sizeof(buffer));
|
|
|
+ toStringBox(&box, buffer, sizeof(buffer));
|
|
|
TEST_STRING("Box([-7.000, 0.000, -6.000], [1.000, 6.000, 3.000])", buffer);
|
|
|
}
|
|
|
|
|
@@ -59,17 +59,17 @@ static void testGrow() {
|
|
|
setBox(&box, &V(1.0f, 2.0f, 3.0f));
|
|
|
growBox(&box, &V(4.0f, 2.0f, 6.0f));
|
|
|
char buffer[128];
|
|
|
- toString(&box, buffer, sizeof(buffer));
|
|
|
+ toStringBox(&box, buffer, sizeof(buffer));
|
|
|
TEST_STRING("Box([-2.000, -1.000, -3.000], [3.000, 3.000, 6.000])", buffer);
|
|
|
|
|
|
setBox(&box, &V(1.0f, 2.0f, 3.0f));
|
|
|
growBox(&box, &V(-4.0f, -2.0f, -6.0f));
|
|
|
- toString(&box, buffer, sizeof(buffer));
|
|
|
+ toStringBox(&box, buffer, sizeof(buffer));
|
|
|
TEST_STRING("Box([0.500, 1.000, 1.500], [0.500, 1.000, 1.500])", buffer);
|
|
|
|
|
|
setBox(&box, &V(1.0f, 2.0f, 3.0f));
|
|
|
growBox(&box, &V(-0.1f, -4.0f, -1.0f));
|
|
|
- toString(&box, buffer, sizeof(buffer));
|
|
|
+ toStringBox(&box, buffer, sizeof(buffer));
|
|
|
TEST_STRING("Box([0.050, 1.000, 0.500], [0.950, 1.000, 2.500])", buffer);
|
|
|
}
|
|
|
|