Prims - Implement <, <=
authorFrank Duncan <frank@kank.net>
Sun, 24 Apr 2016 02:32:23 +0000 (21:32 -0500)
committerFrank Duncan <frank@kank.net>
Sun, 24 Apr 2016 02:32:23 +0000 (21:32 -0500)
src/main/transpile.lisp
src/test/simpletests.lisp

index d3f96124c0a3745d39183616acb17556ee644140..b6e494c6fb439c1b558c73277d818bb79fb0d7b8 100644 (file)
@@ -78,6 +78,8 @@ DESCRIPTION:
 
 (defsimpleprim := :reporter cl:equalp)
 (defprim :!= :reporter (lambda (a b) `(not (equalp ,a ,b))))
+(defsimpleprim :<= :reporter cl:<=)
+(defsimpleprim :< :reporter cl:<)
 (defsimpleprim :- :reporter cl:-)
 (defsimpleprim :+ :reporter cl:+)
 (defsimpleprim :* :reporter cl:*)
index c3796ecdee825c127133ae87af6776802a5cdba9..0acddfec25ae3f8cd1bb22ca3cd607f5e9841d77 100644 (file)
 
 (defsimplereportertest "/ 3" "random-float 4 / random-float 7" "2.7112896835726876"
  "811837B74F63D10ABBC01DD59C1E7556706D9F7A")
+
+(defsimplereportertest "< 1" "5 < 5" "false"
+ "E1DE30F072D785E0D0B59F28B0F7853E3D3E0D8B")
+
+(defsimplereportertest "< 2" "5 < 6" "true"
+ "E1DE30F072D785E0D0B59F28B0F7853E3D3E0D8B")
+
+(defsimplereportertest "< 3" "random-float 4 < random-float 7" "false"
+ "811837B74F63D10ABBC01DD59C1E7556706D9F7A")
+
+(defsimplereportertest "<= 1" "5 <= 5" "true"
+ "E1DE30F072D785E0D0B59F28B0F7853E3D3E0D8B")
+
+(defsimplereportertest "<= 2" "5 <= 6" "true"
+ "E1DE30F072D785E0D0B59F28B0F7853E3D3E0D8B")
+
+(defsimplereportertest "<= 3" "random-float 4 <= random-float 7" "false"
+ "811837B74F63D10ABBC01DD59C1E7556706D9F7A")