30 lines
612 B
C++
30 lines
612 B
C++
// Copyright (C) 2018-2019 Intel Corporation
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
#include <gtest/gtest.h>
|
|
#include "debug.h"
|
|
#include <string>
|
|
|
|
class DebugTests : public ::testing::Test {
|
|
protected:
|
|
virtual void TearDown() {
|
|
}
|
|
|
|
virtual void SetUp() {
|
|
}
|
|
|
|
public:
|
|
|
|
};
|
|
|
|
TEST_F(DebugTests, tolowerWorksWithEmptyString) {
|
|
std::string str = "";
|
|
ASSERT_STREQ("", InferenceEngine::details::tolower(str).c_str());
|
|
}
|
|
|
|
TEST_F(DebugTests, shouldConvertToLowerCase) {
|
|
std::string str = "Hello, World!1";
|
|
ASSERT_STREQ("hello, world!1", InferenceEngine::details::tolower(str).c_str());
|
|
}
|