Files
compute-runtime/unit_tests/helpers/array_count_tests.cpp
Mateusz Hoppe 522dedfbd2 Move files to core
Change-Id: I78bf6a82df3399a2b79143333989bac81e7a392a
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-01-29 12:21:40 +01:00

25 lines
403 B
C++

/*
* Copyright (C) 2017-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "core/helpers/array_count.h"
#include "gtest/gtest.h"
namespace NEO {
TEST(ArrayCountTests, arrayCount) {
int a[10];
EXPECT_EQ(10u, arrayCount(a));
}
TEST(ArrayCountTests, isInRange) {
int a[10];
EXPECT_TRUE(isInRange(1, a));
EXPECT_FALSE(isInRange(10, a));
}
} // namespace NEO