def test_push_back_empty(): test_pb = MyList() for ch in "abc": test_pb.push_back(ch) assert get_MyList(test_pb) == "abc"
def test_push_back_empty(): test_pb = MyList() for ch in "abc": test_pb.push_back(ch) assert get_MyList(test_pb) == "abc"
def test_push_back_nonempty(): test_pb = MyList("hello") for ch in "world": test_pb.push_back(ch) assert get_MyList(test_pb) == "helloworld"
def test_push_back_nonempty(): test_pb = MyList("hello") for ch in "world": test_pb.push_back(ch) assert get_MyList(test_pb) == "helloworld"