Skip to content

Commit e8a6951

Browse files
committed
test: Use EQUAL rather than STREQ to compare mg_strings
As these are not c-strings
1 parent 2a615b1 commit e8a6951

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/value.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ TEST(Value, DateTimeZoneId) {
529529
static_cast<int64_t>(1));
530530
const mg_string *tz_name =
531531
mg_date_time_zone_id_timezone_name(date_time_zone_id);
532-
EXPECT_STREQ(mg_string_data(tz_name), "Europe/Zagreb");
532+
EXPECT_TRUE(Equal(tz_name, "Europe/Zagreb"s));
533533
mg_date_time_zone_id *date_time_zone_id2 =
534534
mg_date_time_zone_id_copy(date_time_zone_id);
535535
mg_date_time_zone_id_destroy(date_time_zone_id);
@@ -539,7 +539,7 @@ TEST(Value, DateTimeZoneId) {
539539
static_cast<int64_t>(1));
540540
const mg_string *tz_name2 =
541541
mg_date_time_zone_id_timezone_name(date_time_zone_id2);
542-
EXPECT_STREQ(mg_string_data(tz_name2), "Europe/Zagreb");
542+
EXPECT_TRUE(Equal(tz_name2, "Europe/Zagreb"s));
543543
mg_date_time_zone_id_destroy(date_time_zone_id2);
544544
}
545545
}

0 commit comments

Comments
 (0)