Files
compute-runtime/opencl/test/unit_test/helpers/array_count_tests.cpp
Mateusz Jablonski 7df9945ebe Add absolute include paths
Change-Id: I67a6919bbbff1d30c7d6cdb257b41c87bad51e7f
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-02-23 23:49:12 +01:00

25 lines
412 B
C++

/*
* Copyright (C) 2017-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/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