Example #1
0
 def test_create_sentence(self):
     sentence = create_sentence( quoterm( r'(control black)'))
     assert sentence.name == 'control'
     assert sentence.body[0].atom == 'black'
Example #2
0
 def test_create_proposition(self):
     proposition = create_proposition( quoterm( r'control'))
     assert proposition.const.atom == 'control'
Example #3
0
 def test_create_relation(self):
     relation = create_relation( quoterm(r'(control black)'))
     assert relation.name == 'control'
Example #4
0
 def test_create_term(self):
     term = create_term( quoterm(r'?a'))
     assert term.variable == '?a'
     term = create_term( quoterm(r'a'))
     assert term.atom == 'a'
Example #5
0
 def test_create_variable(self):
     var = create_variable( quoterm(r'?a'))
     assert var.variable == '?a'
Example #6
0
 def test_create_constant(self):
     const = create_constant( quoterm(r'a'))
     assert const.atom == 'a'