add PI test

This commit is contained in:
Quentin Leonetti 2019-07-14 05:33:44 +02:00
parent 3254dc445c
commit 88bf708ed2
2 changed files with 3 additions and 2 deletions

View File

@ -207,7 +207,7 @@ function Library (ronin) {
this.PI = Math.PI this.PI = Math.PI
this.TWO_PI = Math.PI this.TWO_PI = Math.PI * 2
// Generics // Generics

View File

@ -13,6 +13,7 @@
(test "mod" (mod 6 4) 2) (test "mod" (mod 6 4) 2)
(test "clamp" (clamp 12 4 8) 8) (test "clamp" (clamp 12 4 8) 8)
(test "step" (step 12 10) 10) (test "step" (step 12 10) 10)
(test "PI" TWO_PI (mul 2 PI))
; Logic ; Logic