Show More
@@ -675,6 +675,17 class BlockIPythonInputTestCase(IPythonInputTestCase): | |||
|
675 | 675 | self.assertEqual(out.rstrip(), out_t.rstrip()) |
|
676 | 676 | self.assertEqual(out_raw.rstrip(), raw.rstrip()) |
|
677 | 677 | |
|
678 | def test_syntax_multiline_cell(self): | |
|
679 | isp = self.isp | |
|
680 | for example in syntax_ml.itervalues(): | |
|
681 | ||
|
682 | out_t_parts = [] | |
|
683 | for line_pairs in example: | |
|
684 | raw = '\n'.join(r for r, _ in line_pairs) | |
|
685 | out_t = '\n'.join(t for _,t in line_pairs) | |
|
686 | out = isp.transform_cell(raw) | |
|
687 | # Match ignoring trailing whitespace | |
|
688 | self.assertEqual(out.rstrip(), out_t.rstrip()) | |
|
678 | 689 | |
|
679 | 690 | #----------------------------------------------------------------------------- |
|
680 | 691 | # Main - use as a script, mostly for developer experiments |
General Comments 0
You need to be logged in to leave comments.
Login now