[ox/std] Make String(StringView) constructor explicit, add StringLiteral
This commit is contained in:
4
deps/ox/src/ox/std/test/tests.cpp
vendored
4
deps/ox/src/ox/std/test/tests.cpp
vendored
@@ -105,6 +105,10 @@ static std::map<ox::String, ox::Error(*)()> tests = {
|
||||
oxAssert(endsWith(str, "df"), "String endsWith is broken");
|
||||
oxAssert(!endsWith(str, "awefawe"), "String endsWith is broken");
|
||||
oxAssert(!endsWith(str, "eu"), "String endsWith is broken");
|
||||
oxAssert(ox::StringView("Write") != ox::String(""), "String / StringView comparison broken");
|
||||
oxAssert(ox::String("Write") != ox::StringView(""), "String / StringView comparison broken");
|
||||
oxAssert(ox::String("Write") == ox::StringView("Write"), "String / StringView comparison broken");
|
||||
oxAssert(ox::String(ox::StringView("Write")) == ox::StringView("Write"), "String / StringView comparison broken");
|
||||
return OxError(0);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user