; 20241007 R.v.Vessum converted python source to metta ; FILE: 28../../../hyperon-experimental/python/tests/test_stdlib.py :60 ;
;(= (intent regex:"^Hello[[\.|!]]?$") (Intent Hello)) ; (= (intent regex:"Good~morning.*[[\\.|!]]?") (Intent Hello)) ; (= (intent $x) (empty)) ; !(assertEqualToResult ( ) ( ) ) ;
lastline 62
; self.assertEqual(metta.run('!(intent "hello")', True), [E(S("Intent"), S("Hello"))]) ;
lastline 63
; self.assertEqual(metta.run('!(intent "Good morning my friend!")', True), ; [E(S("Intent"), S("Hello"))]) ;
lastline 66
; self.assertEqual(metta.run('!(intent "Hi")', True), []) ;
lastline 72