Closed GoogleCodeExporter closed 9 years ago
Sample Unit Tests that fail:
testcase = ['/* @noflip */ div { float: left; text-align: left; } div { float:
left; }']
shouldbe = ['/* @noflip */ div { float: left; text-align: left;} div { float:
right; }']
self.assertEqual(shouldbe, cssjanus.ChangeLeftToRightToLeft(testcase))
testcase = ['/* @noflip */ div { float: left; text-align: left; } div { float:
left; }']
shouldbe = ['/* @noflip */\ndiv { float: left; text-align: left;} div { float:
right; }']
self.assertEqual(shouldbe, cssjanus.ChangeLeftToRightToLeft(testcase))
Original comment by chad.lit...@gmail.com
on 4 Mar 2009 at 7:42
Look in your shouldbe string, see the missing space after the semicolon after
left;?
That's why this test fails.
I added another couple unit tests as well that cover this case, and all is good.
Also, I tried the example above from stdin, and things are aok. My hunch is
another
bugfix may have gotten this one.
Original comment by els...@gmail.com
on 1 Jul 2009 at 12:35
Original issue reported on code.google.com by
johnayna...@gmail.com
on 10 Nov 2008 at 9:32