def test_to_string_tuple(): expected = '["Hello, World", 42, 2.56]' value = ("Hello, World", 42, 2.56) result = to_string(value) assert expected == result
def test_to_string_complex(): expected = "(2+4j)" value = complex(2, 4) result = to_string(value) assert expected == result
def test_to_string_bool(): expected = "True" value = True result = to_string(value) assert expected == result
def test_to_string_float(): expected = "2.56" value = 2.56 result = to_string(value) assert expected == result
def test_to_string_int(): expected = "42" value = 42 result = to_string(value) assert expected == result
def test_to_string_dict(): expected = '{"value1": "Hello, World", "value2": 42, "value3": 2.56}' value = {"value1": "Hello, World", "value2": 42, "value3": 2.56} result = to_string(value) assert expected == result
def test_to_string_string(): expected = "Hello, World!" value = expected result = to_string(value) assert expected == result
def test_to_string_list(): expected = '["Hello, World", 42, 2.56]' value = ["Hello, World", 42, 2.56] result = to_string(value) assert expected == result