mirror of
https://github.com/gpujs/gpu.js.git
synced 2026-01-25 16:08:02 +00:00
Add assertions
This commit is contained in:
parent
2c851c10ae
commit
9ea38edebc
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user