mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-04-01 12:36:42 +00:00
Fix travis
Why again do we need a unit test for something that was never used?
This commit is contained in:
parent
6929e541dd
commit
9998c2783e
1 changed files with 0 additions and 33 deletions
|
@ -1,33 +0,0 @@
|
||||||
#include <gtest/gtest.h>
|
|
||||||
#include "components/misc/slice_array.hpp"
|
|
||||||
|
|
||||||
struct SliceArrayTest : public ::testing::Test
|
|
||||||
{
|
|
||||||
protected:
|
|
||||||
virtual void SetUp()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
virtual void TearDown()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
TEST_F(SliceArrayTest, hello_string)
|
|
||||||
{
|
|
||||||
Misc::SString s("hello");
|
|
||||||
ASSERT_EQ(sizeof("hello") - 1, s.length);
|
|
||||||
ASSERT_FALSE(s=="hel");
|
|
||||||
ASSERT_FALSE(s=="hell");
|
|
||||||
ASSERT_TRUE(s=="hello");
|
|
||||||
}
|
|
||||||
|
|
||||||
TEST_F(SliceArrayTest, othello_string_with_offset_2_and_size_4)
|
|
||||||
{
|
|
||||||
Misc::SString s("othello" + 2, 4);
|
|
||||||
ASSERT_EQ(sizeof("hell") - 1, s.length);
|
|
||||||
ASSERT_FALSE(s=="hel");
|
|
||||||
ASSERT_TRUE(s=="hell");
|
|
||||||
ASSERT_FALSE(s=="hello");
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue