Commit deb4253e authored by aurelien beliard's avatar aurelien beliard Committed by Mathieu Giraud

correct unit test

parent f338002d
Pipeline #11586 passed with stages
in 5 minutes and 17 seconds
......@@ -340,9 +340,9 @@ QUnit.test("normalization: test", function(assert) {
m.initClones()
assert.equal(c2.getSize(),0.05,"clone3 size")
m.compute_normalization(0,0.20)
assert.equal(m.normalization.B,0.20, "expected value")
assert.equal(c1.getSize().toFixed(2),m.normalization.B,"clone1 normalized size")
assert.equal(c1.getSize(1).toFixed(2),m.normalization.B,"clone1 normalized size")
assert.equal(m.normalization.expected_size,0.20, "expected value")
assert.equal(c1.getSize().toFixed(2),m.normalization.expected_size,"clone1 normalized size")
assert.equal(c1.getSize(1).toFixed(2),m.normalization.expected_size,"clone1 normalized size")
assert.equal(c1.getSize(2),0,"clone1 normalized size")
assert.equal(m.normalize(c2.getSize(),0),0.8000000000000002,"normalize")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment