def test_false(self): self.assertFalse(smile('пРифФкИи [) >3"')) self.assertFalse(smile('({[)]')) self.assertFalse(smile('{а{ _ __ @{')) self.assertFalse(smile('([)]'))
def test_true(self): self.assertTrue(smile('мыш (кродется)')) self.assertTrue(smile('внешний долг США over 9000')) self.assertTrue(smile('()[]{}')) self.assertTrue(smile('([{}])'))
def test_1(self): self.assertTrue(sl.smile('Hello_dear_friend'))
def test_2(self): self.assertTrue(sl.smile('[3123e<ll>o 2(34)23rld]'))
def test_6(self): self.assertFalse(sl.smile('[[][][][][][][][][][](((('))
def test_7(self): self.assertFalse(sl.smile('[[<]>[][][][][][][][][]'))
def test_5(self): self.assertFalse(sl.smile(']Hello world['))
def test_4(self): self.assertTrue(sl.smile('[[][][][][][][][][]][][][][][]'))
def test_3(self): self.assertTrue(sl.smile('[<asd>12as]'))
import smile_logic as sl print('Введите вашу строку') print(sl.smile())
from smile_logic import smile print('Enter a line to be checked:') print(smile(input()))