コード例 #1
0
ファイル: segmentation_test.py プロジェクト: hayaku/tests
 def test_18(self):
     self.assertEqual(color_expand('ABC80', 1), 'rgba(170,187,204,0.5)')
コード例 #2
0
ファイル: segmentation_test.py プロジェクト: hayaku/tests
 def test_16(self):
     self.assertEqual(color_expand('F', '.2'), 'rgba(255,255,255,.2)')
コード例 #3
0
ファイル: segmentation_test.py プロジェクト: hayaku/tests
 def test_17(self):
     self.assertEqual(color_expand('ABCD', 1), 'rgba(170,187,204,0.87)')
コード例 #4
0
ファイル: segmentation_test.py プロジェクト: hayaku/tests
 def test_14(self):
     self.assertEqual(color_expand('0F', 1), '#0F0F0F')
コード例 #5
0
ファイル: segmentation_test.py プロジェクト: hayaku/tests
 def test_15(self):
     self.assertEqual(color_expand('0', '.5'), 'rgba(0,0,0,.5)')
コード例 #6
0
ファイル: segmentation_test.py プロジェクト: hayaku/tests
 def test_11(self):
     self.assertEqual(color_expand('123456', 1), '#123456')
コード例 #7
0
ファイル: segmentation_test.py プロジェクト: hayaku/tests
 def test_12(self):
     self.assertEqual(color_expand('abcdef', 1), '#abcdef')
コード例 #8
0
ファイル: segmentation_test.py プロジェクト: hayaku/tests
 def test_9(self):
     self.assertEqual(color_expand('111', 1), '#111')
コード例 #9
0
ファイル: segmentation_test.py プロジェクト: hayaku/tests
 def test_10(self):
     self.assertEqual(color_expand('#f', 1), '#fff')
コード例 #10
0
ファイル: segmentation_test.py プロジェクト: hayaku/tests
 def test_7(self):
     self.assertEqual(color_expand('#FFF', 1), '#FFF')
コード例 #11
0
ファイル: segmentation_test.py プロジェクト: hayaku/tests
 def test_6(self):
     self.assertEqual(color_expand('#CF', 1), '#CFCFCF')
コード例 #12
0
ファイル: segmentation_test.py プロジェクト: hayaku/tests
 def test_5(self):
     self.assertEqual(color_expand('#cf', 1), '#cfcfcf')
コード例 #13
0
ファイル: segmentation_test.py プロジェクト: hayaku/tests
 def test_4(self):
     self.assertEqual(color_expand('#C', 1), '#CCC')
コード例 #14
0
ファイル: segmentation_test.py プロジェクト: hayaku/tests
 def test_1(self):
     self.assertEqual(color_expand('#0', 1), '#000')