From afd2fdbf6455f86ba2bc08ad8a68e42d9935a87e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C5=8Dshin?= Date: Sun, 9 Jun 2024 19:48:44 -0700 Subject: [PATCH] Uncomment swap test --- test/ctl/string_test.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/ctl/string_test.cc b/test/ctl/string_test.cc index 81464b571..e25b60a62 100644 --- a/test/ctl/string_test.cc +++ b/test/ctl/string_test.cc @@ -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";