From 88bf708ed23ba4d376d4e44ecc3e329cfafce2ec Mon Sep 17 00:00:00 2001 From: Quentin Leonetti Date: Sun, 14 Jul 2019 05:33:44 +0200 Subject: [PATCH] add PI test --- desktop/sources/scripts/library.js | 2 +- examples/benchmark.lisp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/desktop/sources/scripts/library.js b/desktop/sources/scripts/library.js index 89c8911..8edb2c8 100644 --- a/desktop/sources/scripts/library.js +++ b/desktop/sources/scripts/library.js @@ -207,7 +207,7 @@ function Library (ronin) { this.PI = Math.PI - this.TWO_PI = Math.PI + this.TWO_PI = Math.PI * 2 // Generics diff --git a/examples/benchmark.lisp b/examples/benchmark.lisp index f8ab721..991fd4c 100644 --- a/examples/benchmark.lisp +++ b/examples/benchmark.lisp @@ -13,7 +13,8 @@ (test "mod" (mod 6 4) 2) (test "clamp" (clamp 12 4 8) 8) (test "step" (step 12 10) 10) - + (test "PI" TWO_PI (mul 2 PI)) + ; Logic (test "lt" (lt 3 4) true)