コード例 #1
0
def test_uk():
    assert i.test_sent("Blorg me to play tennis") == {"error":"Main action not found"}
コード例 #2
0
def test_move1():
    assert i.test_sent("Move to the bathroom") == {"action": 0, "place": "bathroom"}
コード例 #3
0
def test_show5():
    assert i.test_sent("Show me to play tennis") == {"action":5, "person":"me", "show_action":"play", "object":"tennis", "video_title":"play-tennis"}
コード例 #4
0
def test_follow2():
    assert i.test_sent("Follow Jonathan to the kitchen") == {"action":3, "person": "Jonathan", "place":"kitchen"}
コード例 #5
0
def test_show3():
    assert i.test_sent("Show her what a cow is") == {"action":5, "object": "cow"}
コード例 #6
0
def test_show4():
    assert i.test_sent("Show me what to do when I want to wash my hands") == {"action":5, "person":"me", "show_action":"wash", "object":"hands", "video_title":"wash-hands"}
コード例 #7
0
def test_show1():
    assert i.test_sent("TeacH me how to wash my hands") == {"action":5, "person":"me", "show_action":"wash", "object":"hands", "video_title":"wash-hands"}
コード例 #8
0
def test_show2():
    assert i.test_sent("Show the car") == {"action":5, "object":"car"}
コード例 #9
0
def test_talk4():
    assert i.test_sent("Talk with Brandon about computers") == {"action":4, "topic":"computers", "person":"Brandon"}
コード例 #10
0
def test_talk3():
    assert i.test_sent("Talk about movies") == {"action":4, "topic":"movies"}
コード例 #11
0
def test_talk2():
    assert i.test_sent("Talk to Jonathan") == {"action":4, "person":"Jonathan"}
コード例 #12
0
def test_stop1():
    assert i.test_sent("Stop") == {"action":2}
コード例 #13
0
def test_follow1():
    assert i.test_sent("Follow me") == { "action": 3, "person": "me" }