-
-
Save heniotierra/b9e4d261dd9a3c12a7617f76bc7f643c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fdescribe('if currentMonth is passed', () => { | |
it('testing...', async () => { | |
const expected = [1, 1.005, 1.009, 1.013, 1.016]; | |
const inputArray = [1,1,1,1,1,1,1,1,1,1,1]; | |
// const summedToInputed2 = 1; | |
const prodArray = [1,1,1,0.46,1,1,1,0.54,1,1,1]; | |
const thirdArg = 0; | |
const fourthArg = false; | |
// [1,1,1,1,1,1,1,1,1,1,1], [1,1,1,0.46,1,1,1,0.54,1,1,1], 0, false | |
console.log("huh0"); | |
const compiledExpression = await expressionService.compile( | |
'prodHist(inputArray, prodArray, thirdArg, fourthArg)' | |
); | |
console.log("huh2"); | |
const scope = buildCyclicalScope({ | |
inputArray, | |
prodArray, | |
thirdArg, | |
fourthArg, | |
}, 2); | |
console.log("expected:", expressionService.evaluateImediate( | |
compiledExpression, | |
scope, | |
)); | |
expect( | |
expressionService.evaluateImediate( | |
compiledExpression, | |
scope, | |
), | |
).toEqual(expected); | |
}); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment