def testCppPreprocess(self):
    """Check that the file correctly preprocess the code source."""
    cpp_pb = desc2code.ProgrammingDesc2codeCpp()

    self.assertEqual(  # Add space beween two lines
        cpp_pb.preprocess_target("firstline//comm1\nsecondline//comm2\n"),
        "firstline secondline")
    # Checking for boths comments and spaces
    self.assertEqual(cpp_pb.preprocess_target(CODE_CPP_IN), CODE_CPP_OUT)
    self.assertEqual(
        cpp_pb.preprocess_target("  not removed //abcd  "),
        "not removed //abcd")
Check that the file correctly preprocess the code source.
tensor2tensor/data_generators/desc2code_test.py