def test_5(self): self.assertEqual(segmentation('ml10'), {'property-name': 'ml', 'important': False, 'abbr': 'ml10', 'type-value': 10, 'color': '10'})
def test_26(self): self.assertEqual(segmentation('c:FE'), ('c', 'FE', True, False))
def test_28(self): self.assertEqual(segmentation('p:-.5'), ('p', '-.5', True, False))
def test_23(self): self.assertEqual(segmentation('c:#FA5EC1'), ('c', '#FA5EC1', True, False))
def test_24(self): self.assertEqual(segmentation('c:0'), ('c', '0', True, False))
def test_17(self): self.assertEqual(segmentation('posa!'), ('posa', '', False, True))
def test_20(self): self.assertEqual(segmentation('pos:!'), ('pos', '', False, True))
def test_17(self): self.assertEqual(segmentation('posa!'), {'property-value': 'posa', 'important': True, 'abbr': 'posa!'})
def test_18(self): self.assertEqual(segmentation('po:a!'), {'property-name': 'po', 'important': True, 'abbr': 'po:a!', 'keyword-value': 'a'})
def test_14(self): self.assertEqual(segmentation('pos:a'), {'property-name': 'pos', 'important': False, 'abbr': 'pos:a', 'keyword-value': 'a'})
def test_15(self): self.assertEqual(segmentation('pos:'), {'property-name': 'pos', 'important': False, 'abbr': 'pos:'})
def test_12(self): self.assertEqual(segmentation('posa'), {'property-value': 'posa', 'important': False, 'abbr': 'posa'})
def test_9(self): self.assertEqual(segmentation('h2pt'), {'property-name': 'h', 'important': False, 'abbr': 'h2pt', 'type-value': 2, 'type-name': 'pt'})
def test_6(self): self.assertEqual(segmentation('p-.5'), {'property-name': 'p', 'important': False, 'abbr': 'p-.5', 'type-value': -0.5})
def test_14(self): self.assertEqual(segmentation('pos:a'), ('pos', 'a', False, False))
def test_19(self): #todo: удалить тест, он такой же как 18 self.assertEqual(segmentation('pos:a!'), {'property-name': 'pos', 'important': True, 'abbr': 'pos:a!', 'keyword-value': 'a'})
def test_15(self): self.assertEqual(segmentation('pos:'), ('pos', '', False, False))
def test_20(self): self.assertEqual(segmentation('pos:!'), {'property-name': 'pos', 'important': True, 'abbr': 'pos:!'})
def test_19(self): self.assertEqual(segmentation('pos:a!'), ('pos', 'a', False, True))
def test_32(self): self.assertEqual(segmentation('h-t2pt'), ('h-t', '2pt', True, False))
def test_22(self): self.assertEqual(segmentation('h:'), ('h', '', False, False))
def test_36(self): self.assertEqual(segmentation('w:10.'), ('w', '10.0em', True, False))
def test_0(self): self.assertEqual(segmentation('poa'), ('poa', '', False, False))
def test_37(self): self.assertEqual(segmentation('c:#'), ('c', '#', True, False))
def test_25(self): self.assertEqual(segmentation('c:#fe'), ('c', '#fe', True, False))
def test_9(self): self.assertEqual(segmentation('h2pt'), ('h', '2pt', True, False))
def test_27(self): self.assertEqual(segmentation('ml:10'), ('ml', '10', True, False))
def test_10(self): self.assertEqual(segmentation('h!'), ('h', '', False, True))
def test_30(self): self.assertEqual(segmentation('h:2pe'), ('h', '2pe', True, False))
def test_4(self): self.assertEqual(segmentation('cFE'), {'property-name': 'c', 'important': False, 'abbr': 'cFE', 'color': 'FE'})