Exemplo n.º 1
0
def test_parse_text_time_3():
    assert parse_text_time(
        "<@U02LBM6HH> there are two possible hours: "
        "12:30 and 16:30 11pm or 8:30 am (this is a test)") == [(12, 30, ''),
                                                                (16, 30, ''),
                                                                (11, 0, 'pm'),
                                                                (8, 30, 'am')]
Exemplo n.º 2
0
def test_parse_text_time_1a():
    assert parse_text_time("Lets meet at 7pm") == [(7, 0, 'pm')]
Exemplo n.º 3
0
def test_parse_text_time_2c():
    assert parse_text_time("Lets meet at 17:01") == [(17, 1, '')]
Exemplo n.º 4
0
def test_parse_text_time_2b():
    assert parse_text_time("Lets meet at 7:01") == [(7, 1, '')]
Exemplo n.º 5
0
def test_parse_text_time_2a():
    assert parse_text_time("Lets meet at 7") == []
Exemplo n.º 6
0
def test_parse_text_time_1h():
    assert parse_text_time("Lets meet at 7:01 pm") == [(7, 1, 'pm')]