Skip to content

Commit bc5c84f

Browse files
committed
bugfix
1 parent 3a81362 commit bc5c84f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: lab6.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ std::wstring task1(std::wstring in)
6565
std::wstring out = L"";
6666
for (wchar_t &chr : in)
6767
{
68-
if (!std::iswalpha(chr) && chr < 128 && 0)
68+
if (!std::iswalpha(chr) && chr < 128)
6969
continue;
7070

7171
if (out.find(chr) == std::wstring::npos)
@@ -78,7 +78,7 @@ bool test()
7878
{
7979
// test task1
8080
std::wstring test1 = L"скажи слово паляниця";
81-
std::wstring test1_out = L"скажи ловпянц";
81+
std::wstring test1_out = L"скажиловпянц";
8282
std::wstring test1_res = task1(test1);
8383
if (test1_res != test1_out)
8484
{

0 commit comments

Comments
 (0)