summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_string.cpp4
-rw-r--r--test/test_utf8.cpp2
2 files changed, 2 insertions, 4 deletions
diff --git a/test/test_string.cpp b/test/test_string.cpp
index 61052ef..54e3802 100644
--- a/test/test_string.cpp
+++ b/test/test_string.cpp
@@ -72,9 +72,9 @@ TEST(FudString, HeapAlloc)
TEST(FudString, Reserve)
{
String testString{};
- ASSERT_TRUE(testString.valid());
+ ASSERT_TRUE(testString.utf8Valid());
ASSERT_EQ(testString.reserve(256), FudStatus::Success);
- ASSERT_TRUE(testString.valid());
+ ASSERT_TRUE(testString.utf8Valid());
}
#if 0
diff --git a/test/test_utf8.cpp b/test/test_utf8.cpp
index 759c826..5447954 100644
--- a/test/test_utf8.cpp
+++ b/test/test_utf8.cpp
@@ -167,8 +167,6 @@ TEST(Utf8Test, Utf8MultiByte)
EXPECT_EQ(stringBuffer.size(), bufSize);
EXPECT_EQ(stringBuffer.size(), sizeof(data));
EXPECT_EQ(stringBuffer.length(), bufSize - 1);
- EXPECT_TRUE(stringBuffer.nullTerminated());
- EXPECT_TRUE(stringBuffer.valid());
ASSERT_TRUE(stringBuffer.utf8Valid());
Utf8Iterator utf8Iter{stringBuffer};