12 lines
192 B
Python
12 lines
192 B
Python
|
import fol
|
||
|
|
||
|
|
||
|
def test_kb_simple():
|
||
|
kb = fol.kb.Kb()
|
||
|
kb.tell('Friend(ALICE, BOB)')
|
||
|
|
||
|
res = kb.ask('Friend(ALICE, x)')
|
||
|
|
||
|
assert len(res) == 1
|
||
|
assert res[0]['x'].value == 'BOB'
|