Compare commits
2 Commits
53ebe8102e
...
d2651bf09e
Author | SHA1 | Date | |
---|---|---|---|
d2651bf09e | |||
de7e58c274 |
@ -50,12 +50,12 @@ const char& StringView::operator[](usize index) const
|
||||
|
||||
bool StringView::operator==(const char* other) const
|
||||
{
|
||||
return !strncmp(m_string, other, m_length);
|
||||
return !strcmp(m_string, other);
|
||||
}
|
||||
|
||||
bool StringView::operator==(StringView other) const
|
||||
{
|
||||
return !strncmp(m_string, other.m_string, m_length);
|
||||
return !strcmp(m_string, other.m_string);
|
||||
}
|
||||
|
||||
Result<Vector<String>> StringView::split(StringView delim) const
|
||||
|
@ -86,7 +86,7 @@ TestResult test_positive_signed_integer_format_with_empty_sign()
|
||||
{
|
||||
auto fmt = TRY(String::format("% d"_sv, 653));
|
||||
|
||||
validate(fmt.view() == " 653");
|
||||
validate(fmt.view() == " 653.000");
|
||||
|
||||
test_success;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user