Example #1
0
def test_vo_sentence():
    sentence = parser.parser("go north")
    sentence_checker(sentence, "player", "go", "north")
Example #2
0
def test_svo_sentence():
    sentence = parser.parser("princess eat cabinet")
    sentence_checker(sentence, "princess", "eat", "cabinet")
Example #3
0
def test_vo_sentence_with_unknown_words():
    sentence = parser.parser("it stop me up")
    sentence_checker(sentence, "player", "stop",
                     "up")  # "it" is not considered subject *shrug*
Example #4
0
def test_svo_sentence_with_other_words():
    sentence = parser.parser("the princess eat in the 123 cabinet")
    sentence_checker(sentence, "princess", "eat", "cabinet")
Example #5
0
def test_v_sentence():
    sentence = parser.parser("stop")
    sentence_checker(sentence, "player", "stop", None)
Example #6
0
def test_sv_sentence():
    sentence = parser.parser("princess kill")
    sentence_checker(sentence, "princess", "kill", None)