mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
Reorganization directory structure [2/n]
Change-Id: I47962d17d755e80dcd9476e1ed75560f433f6115
This commit is contained in:
committed by
Jaroslaw Chodor
parent
d015d3633f
commit
e8852a68c4
25
opencl/test/unit_test/helpers/array_count_tests.cpp
Normal file
25
opencl/test/unit_test/helpers/array_count_tests.cpp
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* 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
|
||||
Reference in New Issue
Block a user