Team Ai
Apppublic

cactus183/patchbench-dev

sourceHugging Faceupdated 6mo agoView on Hugging Face
0likes
test_code.py24 linesDownload Raw Back to medium_01
1from solution import parse_row2 3 4def test_simple_row():5    assert parse_row("alice,bob,charlie") == ["alice", "bob", "charlie"]6 7 8def test_row_with_spaces():9    assert parse_row("alice , bob , charlie") == ["alice", "bob", "charlie"]10 11 12def test_row_with_quoted_comma():13    assert parse_row('"Smith, John",42,New York') == ["Smith, John", "42", "New York"]14 15 16def test_row_with_multiple_quoted_commas():17    assert parse_row('"a,b","c,d",e') == ["a,b", "c,d", "e"]18 19 20def test_parse_row_returns_list():21    result = parse_row("x,y,z")22    assert isinstance(result, list)23    assert len(result) == 324