Beispiel #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')]
Beispiel #2
0
def test_parse_text_time_1a():
    assert parse_text_time("Lets meet at 7pm") == [(7, 0, 'pm')]
Beispiel #3
0
def test_parse_text_time_2c():
    assert parse_text_time("Lets meet at 17:01") == [(17, 1, '')]
Beispiel #4
0
def test_parse_text_time_2b():
    assert parse_text_time("Lets meet at 7:01") == [(7, 1, '')]
Beispiel #5
0
def test_parse_text_time_2a():
    assert parse_text_time("Lets meet at 7") == []
Beispiel #6
0
def test_parse_text_time_1h():
    assert parse_text_time("Lets meet at 7:01 pm") == [(7, 1, 'pm')]