suppress some warnings
This commit is contained in:
@@ -245,7 +245,7 @@ TEST_CASE("Iterator constructor", "[Array]")
|
||||
char data[] = "Hello world";
|
||||
Array<char> arr(data, data + sizeof(data));
|
||||
REQUIRE(arr.Data() != data);
|
||||
for (int i = 0; i < sizeof(data); i++)
|
||||
for (size_t i = 0; i < sizeof(data); i++)
|
||||
{
|
||||
REQUIRE(data[i] == arr[i]);
|
||||
}
|
||||
@@ -254,7 +254,7 @@ TEST_CASE("Iterator constructor", "[Array]")
|
||||
{
|
||||
Array<int> arr = { 1, 2, 3, 4, 5 };
|
||||
Array<double> arr2(arr.begin(), arr.end());
|
||||
for (int i = 0; i < arr.Size(); i++)
|
||||
for (size_t i = 0; i < arr.Size(); i++)
|
||||
{
|
||||
REQUIRE(arr[i] == arr2[i]);
|
||||
}
|
||||
|
||||
@@ -42,7 +42,6 @@ TEST_CASE("RaySphereIntersection")
|
||||
// this returns just closest point
|
||||
if (auto opt = ray.IntersectSphere(Vector3f(0), 1))
|
||||
{
|
||||
opt->GetDistance();
|
||||
REQUIRE(opt.value() == h1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user