def __str__(self):
     return u'{}'.format(cpp_string_escape(self.string))
Beispiel #2
0
 def __str__(self):
     return cpp_string_escape(self.string)
Beispiel #3
0
def test_cpp_string_escape(string, expected):
    actual = helpers.cpp_string_escape(string)

    assert actual == expected