Skip to content

Commit

Permalink
Update tests to conform with API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dr8co committed Apr 11, 2024
1 parent a88da48 commit 30ba18f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tests/testLiteString.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include <gtest/gtest.h>
#include <cstdlib>
#include "../lite_string.h"

TEST(LiteStringTest, NewCreatesEmptyString) {
Expand Down Expand Up @@ -211,7 +210,6 @@ TEST(LiteStringTest, CStrReturnsCorrectCStr) {
ASSERT_EQ(cstr[3], '\0');

ASSERT_STREQ(cstr, "abc");
free(cstr);
string_free(s);
}

Expand Down Expand Up @@ -438,7 +436,6 @@ TEST(LiteStringTest, InsertRangeInsertsAtValidIndex) {
EXPECT_STREQ(cstr, "Hello");
string_free(s);
string_free(sub);
free((void *) cstr);
}

TEST(LiteStringTest, InsertRangeDoesNotInsertAtInvalidIndex) {
Expand All @@ -460,7 +457,6 @@ TEST(LiteStringTest, InsertRangeInsertsInMiddleOfString) {
EXPECT_STREQ(cstr, "Hello");
string_free(s);
string_free(sub);
free((void *) cstr);
}

TEST(LiteStringTest, InsertRangeDoesNotInsertNullSubstring) {
Expand Down Expand Up @@ -508,7 +504,6 @@ TEST(LiteStringTest, InsertStringInsertsInMiddleOfString) {
EXPECT_STREQ(cstr, "Hello");
string_free(s);
string_free(sub);
free((void *) cstr);
}

TEST(LiteStringTest, InsertStringDoesNotInsertNullSubstring) {
Expand Down

0 comments on commit 30ba18f

Please sign in to comment.