Add assertions

This commit is contained in:
Abhishek Soni 2017-07-12 20:24:57 +05:30
parent 2c851c10ae
commit 9ea38edebc

View File

@ -215,11 +215,18 @@ QUnit.test( "Issue #130 - brain.js ", function() {
}
}
buildChangeWeights();
changeWeights();
console.log(weights[1][0]);
QUnit.assert.deepEqual(keepNetworkIntact, false);
for (let i = 1; i <= weights.length; i++) {
for (let j = 0; j < weights[i].length; j++) {
for (let k = 0; k < weights[i][j].length; k++) {
QUnit.assert.equal((weights[i][j][k] < 10) && (weights[i][j][k] > -10), true);
}
}
}
});