def test_concat_3strings(self): strings = [] strings.append("hola") strings.append("adios") strings.append("hola") result = StringsExamples.concat_strings(strings) assert result == "holaadioshola"
def test_concat_strings(self): string1 = "hola" string2 = "adios" result = StringsExamples.concat_strings(string1, string2) assert result == "holaadios"
import sys from sample.strings_example import StringsExamples if __name__ == "__main__": args = sys.argv[1:] print("Concat strings %s %s..." % (args[0], args[1])) concated_strings = StringsExamples.concat_strings(args[0], args[1])
def test_concat_string_with_number_and_space(self): strings = [] strings.append("hola 123") strings.append("adios") result = StringsExamples.concat_strings(strings) assert result == "hola123adios"
def test_concat_string_with_space_begining_end(self): strings = [] strings.append(" hola ") strings.append("adios") result = StringsExamples.concat_strings(strings) assert result == "holaadios"
import sys from sample.strings_example import StringsExamples if __name__ == "__main__": args = sys.argv[1:] print StringsExamples.concat_strings(args)
def test_concat_string5_6(self): str1 = "aaaa" str2 = "bbbbbb" result = StringsExamples.concat_strings(str1, str2) assert result == "aaaabbbbbb"
def test_concat_string1_1(self): str1="a" str2 = "b" result = StringsExamples.concat_strings(str1,str2) assert result=="ab"
def test_concat_two_strings(self): str1= "Espana" str2= "Belgica" result = StringsExamples.concat_strings(str1, str2) assert result == "EspanaBelgica"