mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Separate ValueTest and StringValueTest into headers.
Change-Id: If326e6943a11f271ef939dc815a45ba0b4ee271c
This commit is contained in:
@@ -1,14 +1,7 @@
|
||||
#include "Value.h"
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
#include "StringValueTest.h"
|
||||
|
||||
namespace ntimpl {
|
||||
|
||||
class StringValueTest : public ::testing::Test {
|
||||
public:
|
||||
NT_String& ToNT(StringValue& v) { return v; }
|
||||
};
|
||||
|
||||
TEST_F(StringValueTest, ConstructEmpty) {
|
||||
StringValue v;
|
||||
ASSERT_EQ(nullptr, ToNT(v).str);
|
||||
|
||||
12
test/unit/StringValueTest.h
Normal file
12
test/unit/StringValueTest.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#include "Value.h"
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
namespace ntimpl {
|
||||
|
||||
class StringValueTest : public ::testing::Test {
|
||||
public:
|
||||
NT_String& ToNT(StringValue& v) { return v; }
|
||||
};
|
||||
|
||||
} // namespace ntimpl
|
||||
@@ -1,14 +1,7 @@
|
||||
#include "Value.h"
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
#include "ValueTest.h"
|
||||
|
||||
namespace ntimpl {
|
||||
|
||||
class ValueTest : public ::testing::Test {
|
||||
public:
|
||||
NT_Value& ToNT(Value& v) { return v; }
|
||||
};
|
||||
|
||||
typedef ValueTest ValueDeathTest;
|
||||
|
||||
TEST_F(ValueTest, ConstructEmpty) {
|
||||
|
||||
12
test/unit/ValueTest.h
Normal file
12
test/unit/ValueTest.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#include "Value.h"
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
namespace ntimpl {
|
||||
|
||||
class ValueTest : public ::testing::Test {
|
||||
public:
|
||||
NT_Value& ToNT(Value& v) { return v; }
|
||||
};
|
||||
|
||||
} // namespace ntimpl
|
||||
Reference in New Issue
Block a user