total-serialism
Advanced tools
Comparing version 1.6.11 to 1.6.12
{ | ||
"name": "total-serialism", | ||
"version": "1.6.11", | ||
"version": "1.6.12", | ||
"description": "A set of methods for the generation and transformation of number sequences useful in algorithmic composition", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -194,3 +194,3 @@ //============================================================================== | ||
// Returns array of [0] if no period is found within the default length | ||
// of fibonacci numbers (256). In that case | ||
// of fibonacci numbers (256). Mod value is a minimum of 2 | ||
// | ||
@@ -204,3 +204,3 @@ // F(n) = (F(n-1) + F(n-2)) mod a. | ||
function pisano(mod=12, len=-1){ | ||
mod = (mod < 1)? 1 : mod; | ||
if (mod < 2){ return [0]; } | ||
if (len < 1){ | ||
@@ -207,0 +207,0 @@ return pisanoPeriod(mod); |
const entryPoint = "../index"; | ||
// const entryPoint = "../index"; | ||
// const entryPoint = "../build/ts.bundle.js"; | ||
// const entryPoint = "../build/ts.es5.js"; | ||
// const entryPoint = "../build/ts.es5.min.js"; | ||
const entryPoint = "../build/ts.es5.min.js"; | ||
@@ -27,11 +27,17 @@ const Srl = require(entryPoint); | ||
testSerial(); | ||
testGen(); | ||
testAlgo(); | ||
testRand(); | ||
testMod(); | ||
testTranslate(); | ||
testUtil(); | ||
pagebreak("Test Passed"); | ||
// console.log(Algo.pisano(0)); | ||
fullTest(); | ||
function fullTest(){ | ||
testSerial(); | ||
testGen(); | ||
testAlgo(); | ||
testRand(); | ||
testMod(); | ||
testTranslate(); | ||
testUtil(); | ||
pagebreak("Test Passed"); | ||
} | ||
// Global vars for tests | ||
@@ -38,0 +44,0 @@ var complexRules = { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1423717
20306