| Index: tools/json_schema_compiler/code_test.py
|
| diff --git a/tools/json_schema_compiler/code_test.py b/tools/json_schema_compiler/code_test.py
|
| index 7d64b6c0a04490a6f5d1cdcf6be53f296324faf1..90e2879340861720af6f8153c4a1dca6af765a87 100755
|
| --- a/tools/json_schema_compiler/code_test.py
|
| +++ b/tools/json_schema_compiler/code_test.py
|
| @@ -191,7 +191,7 @@ class CodeTest(unittest.TestCase):
|
| ' */',
|
| output)
|
|
|
| - def testSameLineAppendAndConcat(self):
|
| + def testSameLineAppendConcatComment(self):
|
| c = Code()
|
| c.Append('This is a line.')
|
| c.Append('This too.', new_line=False)
|
| @@ -199,6 +199,15 @@ class CodeTest(unittest.TestCase):
|
| d.Append('And this.')
|
| c.Concat(d, new_line=False)
|
| self.assertEquals('This is a line.This too.And this.', c.Render())
|
| + c = Code()
|
| + c.Append('This is a')
|
| + c.Comment(' spectacular 80-character line thingy ' +
|
| + 'that fits wonderfully everywhere.',
|
| + comment_prefix='',
|
| + new_line=False)
|
| + self.assertEquals('This is a spectacular 80-character line thingy that ' +
|
| + 'fits wonderfully everywhere.',
|
| + c.Render())
|
|
|
| if __name__ == '__main__':
|
| unittest.main()
|
|
|