Fixed the 'pi' symbol-macro.
authorVladimir Sedach <vsedach@gmail.com>
Fri, 20 Feb 2009 23:47:08 +0000 (16:47 -0700)
committerVladimir Sedach <vsedach@gmail.com>
Fri, 20 Feb 2009 23:47:08 +0000 (16:47 -0700)
src/lib/ps-macro-lib.lisp
t/ps-tests.lisp

index da74bdc..27febcd 100644 (file)
@@ -45,7 +45,7 @@
                                  `(floor (* ,upto (*math.random)))
                                  '(*math.random))))
 
-(define-ps-symbol-macro pi '*math.*pi*)
+(define-ps-symbol-macro pi *math.*pi*)
 
 ;;; Exception handling
 
index 51c358a..42f2127 100644 (file)
@@ -735,3 +735,7 @@ try {
         return z;
     })();
 })(true)")
+
+(test-ps-js math-pi
+  pi
+  "Math.PI")