Christian Egli | b7d53da | 2021-05-26 16:35:52 +0200 | [diff] [blame^] | 1 | import unittest |
| 2 | import louis |
| 3 | |
| 4 | class TestFaceWithTearsOfJoy(unittest.TestCase): |
| 5 | |
| 6 | @unittest.expectedFailure |
| 7 | def test_1(self): |
| 8 | self.assertEqual(louis.translateString(["en-us-g2.ctb", "tests/test.cti"], "😂"), |
| 9 | '<face with tears of joy>') |
| 10 | |
| 11 | @unittest.expectedFailure |
| 12 | def test_2(self): |
| 13 | self.assertEqual(louis.translateString(["en-us-g2.ctb", "tests/test.cti"], "a 😂"), |
| 14 | 'a <face with tears of joy>') |
| 15 | |
| 16 | @unittest.expectedFailure |
| 17 | def test_3(self): |
| 18 | self.assertEqual(louis.translateString(["en-us-g2.ctb", "tests/test.cti"], "😂 b"), |
| 19 | '<face with tears of joy> b') |
| 20 | |
| 21 | @unittest.expectedFailure |
| 22 | def test_4(self): |
| 23 | self.assertEqual(louis.translateString(["en-us-g2.ctb", "tests/test.cti"], "a 😂 b"), |
| 24 | 'a <face with tears of joy> b') |
| 25 | |
| 26 | @unittest.expectedFailure |
| 27 | def test_8(self): |
| 28 | self.assertEqual(louis.translateString(["en-us-g2.ctb", "tests/test.cti"], "before 😂"), |
| 29 | 'before <face with tears of joy>') |
| 30 | |
| 31 | @unittest.expectedFailure |
| 32 | def test_9(self): |
| 33 | self.assertEqual(louis.translateString(["en-us-g2.ctb", "tests/test.cti"], "😂 after"), |
| 34 | '<face with tears of joy> after') |
| 35 | |
| 36 | @unittest.expectedFailure |
| 37 | def test_10(self): |
| 38 | self.assertEqual(louis.translateString(["en-us-g2.ctb", "tests/test.cti"], "before 😂 after"), |
| 39 | 'before <face with tears of joy> after') |
| 40 | |
| 41 | @unittest.expectedFailure |
| 42 | def test_11(self): |
| 43 | self.assertEqual(louis.translateString(["en-us-g2.ctb", "tests/test.cti"], "🤣"), |
| 44 | '<rolling on the floor laughing>') |
| 45 | |
| 46 | @unittest.expectedFailure |
| 47 | def test_12(self): |
| 48 | self.assertEqual(louis.translateString(["en-us-g2.ctb", "tests/test.cti"], "a 🤣"), |
| 49 | 'a <rolling on the floor laughing>') |
| 50 | |
| 51 | @unittest.expectedFailure |
| 52 | def test_13(self): |
| 53 | self.assertEqual(louis.translateString(["en-us-g2.ctb", "tests/test.cti"], "🤣 b"), |
| 54 | '<rolling on the floor laughing> b') |
| 55 | |
| 56 | @unittest.expectedFailure |
| 57 | def test_14(self): |
| 58 | self.assertEqual(louis.translateString(["en-us-g2.ctb", "tests/test.cti"], "a 🤣 b"), |
| 59 | 'a <rolling on the floor laughing> b') |
| 60 | |
| 61 | if __name__ == '__main__': |
| 62 | unittest.main() |