Uncomment swap test

This commit is contained in:
Jōshin 2024-06-09 19:48:44 -07:00
parent 0a92c78035
commit afd2fdbf64
No known key found for this signature in database

View file

@ -259,13 +259,13 @@ main()
return 55;
}
// {
// ctl::string s = "hello";
// ctl::string s2 = "world";
// s.swap(s2);
// if (s != "world" || s2 != "hello")
// return 56;
// }
{
ctl::string s = "hello";
ctl::string s2 = "world";
s.swap(s2);
if (s != "world" || s2 != "hello")
return 56;
}
{
ctl::string s = "hello";