-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEconomicTest.js
41 lines (33 loc) · 1.07 KB
/
EconomicTest.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/* @License Starts * * Copyright © 2015 - present. MongoExpUser
*
* License: MIT - See: https://github.com/MongoExpUser/EP-Economic-Module/blob/master/LICENSE
*
* @License Ends
*
* This module is for testing the EP-Economic functionalities in: EconomicModel.js
*
*/
//create object with "Prototype" and "Module Pattern (i.e. IIFE & object return)"
EconomicTest = (function economicTest(){
{
'use strict';
//constructor
function main(){var testEcon = null;}
main.prototype.testingEconomicModel = function ()
{
var econModel = require('EconomicModel.js');
var inputDataActual = [0];
var prodFunction = [[0, 2, 4, 6], [0, 20, 200, 200]];
new econModel().economicModel(inputDataActual, prodFunction, "tight", null);
}
//export all prototype functions on main
module.exports = main;
//return main to make its objects accessible
return main;
}());
//invoke test as IIFE
(function testAll(option)
{
'use strict';
new EconomicTest().testingEconomicModel(); //. EconomicModel testing
}());