Files
compute-runtime/unit_tests/helpers/array_count_tests.cpp
Maciej Plewka 9e52684f5b Change namespace from OCLRT to NEO
Change-Id: If965c79d70392db26597aea4c2f3b7ae2820fe96
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2019-03-26 15:48:19 +01:00

25 lines
406 B
C++

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