Exemplo n.º 1
0
def test_from_pluperfect():
    assert ct('He had walked to the store.',
              'present') == 'He walks to the store.'
    assert ct('I had walked to the store.',
              'present') == 'I walk to the store.'
    assert ct('I had walked to the store.',
              'future') == 'I will walk to the store.'
Exemplo n.º 2
0
def test_passive():
    assert ct('The rooms were filled with cupboards and book-shelves.', 'future') ==\
           'The rooms will be filled with cupboards and book- shelves.'
    assert ct('I am filled.', 'future') == 'I will be filled.'
    assert ct('I will be filled.', 'future') == 'I will be filled.'
Exemplo n.º 3
0
def test_bug1():
    # in some cases, present tense verb is marked as VB
    assert ct('I sleep here and run there',
              'past') == 'I slept here and ran there'
Exemplo n.º 4
0
def test_first_person():
    assert ct('I loved you', 'present') == 'I love you'
    assert ct('I said no', 'present') == 'I say no'
Exemplo n.º 5
0
def test_from_future_perfect():
    assert ct('I will have been alive', 'future') == 'I will be alive'
    assert ct('I will have been alive', 'present') == 'I am alive'
    assert ct('I will have been alive', 'past') == 'I was alive'
    assert ct('I will have five cookies', 'past') == 'I had five cookies'
Exemplo n.º 6
0
def test_negation():
    assert ct('I did not go', 'present') == 'I do not go'
    assert ct('I do not go', 'past') == 'I did not go'
    assert ct('I do not go', 'future') == 'I will not go'
Exemplo n.º 7
0
def test_from_present_perfect_tense():
    assert ct('I have gone to the store.', 'present') == 'I go to the store.'
    assert ct('I win because I have five cookies',
              'past') == 'I won because I had five cookies'
Exemplo n.º 8
0
def test_from_future_progressive():
    assert ct('I will be going to the store',
              'present') == 'I am going to the store'
Exemplo n.º 9
0
def test_from_present_progressive():
    assert ct('I was going to the store',
              'present') == 'I am going to the store'
Exemplo n.º 10
0
def test_present2future():
    assert 'I will love you' == ct('I love you', 'future')
Exemplo n.º 11
0
def test_will_as_noun():
    assert ct('The will says otherwise.', 'past') == 'The will said otherwise.'
    assert ct('The will says otherwise.',
              'future') == 'The will will say otherwise.'
Exemplo n.º 12
0
def test_from_future():
    assert ct('It will work', 'present') == 'It works'
Exemplo n.º 13
0
def test_plural():
    assert ct('The rabbits ran', 'present') == 'The rabbits run'
    assert ct('The rabbit ran', 'present') == 'The rabbit runs'
Exemplo n.º 14
0
def test_ambiguous_pos():
    assert ct('It was a thought', 'future') == 'It will be a thought'
Exemplo n.º 15
0
def test_infinitive():
    assert ct('I love to love', 'future') == 'I will love to love'