def test_key_to_seq_invalid_input(): with pytest.raises(RuntimeError): key_to_seq(True)
def test_key_to_seq_multi_input(): assert key_to_seq(["gg", (11, )]) == (ord("g"), ord("g"), 11)
def test_key_to_seq_standard_input(): assert key_to_seq([1, 2, 3]) == (1, 2, 3) assert key_to_seq((1, 2, 3)) == (1, 2, 3)
def test_key_to_seq_str_input(): assert key_to_seq("abc") == (ord("a"), ord("b"), ord("c"))