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

    assert actual == expected