diff options
author | liujisi@google.com <liujisi@google.com@630680e5-0e50-0410-840e-4b1c322b438d> | 2010-12-21 05:33:13 +0000 |
---|---|---|
committer | liujisi@google.com <liujisi@google.com@630680e5-0e50-0410-840e-4b1c322b438d> | 2010-12-21 05:33:13 +0000 |
commit | 5c20ca1fccbf0b4d19f5823517fde2869101f921 (patch) | |
tree | 685f0147939a307b0ad8ba8716a308ea76e629b7 /python | |
parent | 334dfc21ec75f85b128c087faced416b64f44619 (diff) | |
download | protobuf-5c20ca1fccbf0b4d19f5823517fde2869101f921.tar.gz protobuf-5c20ca1fccbf0b4d19f5823517fde2869101f921.tar.bz2 protobuf-5c20ca1fccbf0b4d19f5823517fde2869101f921.zip |
Escape C++ Trigraphs.
Diffstat (limited to 'python')
-rwxr-xr-x | python/google/protobuf/internal/generator_test.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/python/google/protobuf/internal/generator_test.py b/python/google/protobuf/internal/generator_test.py index e4387c85..b3f7d9b1 100755 --- a/python/google/protobuf/internal/generator_test.py +++ b/python/google/protobuf/internal/generator_test.py @@ -100,6 +100,7 @@ class GeneratorTest(unittest.TestCase): self.assertTrue(isinf(message.neg_inf_float)) self.assertTrue(message.neg_inf_float < 0) self.assertTrue(isnan(message.nan_float)) + self.assertEqual("? ? ?? ?? ??? ??/ ??-", message.cpp_trigraph) def testHasDefaultValues(self): desc = unittest_pb2.TestAllTypes.DESCRIPTOR |