summaryrefslogtreecommitdiffstats
path: root/misc/ninja_syntax_test.py
diff options
context:
space:
mode:
authorAlex Vallée <avallee@google.com>2015-11-27 21:09:34 (GMT)
committerAlex Vallée <avallee@google.com>2015-11-27 21:09:34 (GMT)
commit97e96284a3cec71b8cf78a3bec5b525cc3e538bd (patch)
tree42c6637a8c2e732011860660ba366a49e606c9b9 /misc/ninja_syntax_test.py
parent8c18cf97ff0ff2a6347865443052913c598d7ee6 (diff)
downloadNinja-97e96284a3cec71b8cf78a3bec5b525cc3e538bd.zip
Ninja-97e96284a3cec71b8cf78a3bec5b525cc3e538bd.tar.gz
Ninja-97e96284a3cec71b8cf78a3bec5b525cc3e538bd.tar.bz2
Disable long word wrapping entirely in comments.
As pointed out by nico, we should unconditionally disable breaking of long words in comments. It is unlikely long words that are in comments should be split (like pathnames).
Diffstat (limited to 'misc/ninja_syntax_test.py')
-rwxr-xr-xmisc/ninja_syntax_test.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/misc/ninja_syntax_test.py b/misc/ninja_syntax_test.py
index 46ce382..c9755b8 100755
--- a/misc/ninja_syntax_test.py
+++ b/misc/ninja_syntax_test.py
@@ -46,13 +46,8 @@ class TestLineWordWrap(unittest.TestCase):
self.out.getvalue())
def test_comment_wrap(self):
- # We should wrap the comments
- self.n.comment('Hello there')
- self.assertEqual('# Hello\n# there\n', self.out.getvalue())
-
- def test_comment_wrap_filename(self):
# Filenames shoud not be wrapped
- self.n.comment('Hello /usr/local/build-tools/bin', has_path=True)
+ self.n.comment('Hello /usr/local/build-tools/bin')
self.assertEqual('# Hello\n# /usr/local/build-tools/bin\n',
self.out.getvalue())