; 20241007 R.v.Vessum converted python source to metta ; FILE: 46../../../hyperon-experimental/python/tests/test_examples.py :113 ;


        
;
; !(assertEqualToResult ( ) ( ) ) ;
lastline 118
;
 (= (: (apply $f $x) $r) (and (: $f (=> $a $r)) (: $x $a)))
 (= (: reverse (=> String String)) True)
 (= (: "Hello" String) True)

!(if (: (apply reverse "Hello") $t) $t Wrong)

!(assertEqualToResult (if (: (apply reverse "Hello") $t) $t Wrong)  ( String )  )
;
;
lastline 120
;
 ;       self.assertEqualMettaRunnerResults(output, [[S('String')]])
;
;
lastline 126