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

add another test

parent ea195afd
......@@ -338,12 +338,13 @@ QUnit.test("normalization: test", function(assert) {
var c4 = new Clone(json_clone4, m, 3)
var c5 = new Clone(json_clone5, m, 4)
m.initClones()
assert.equal(c2.getSize(),0.05,"clone1 size")
assert.equal(c2.getSize(),0.05,"clone3 size")
m.compute_normalization(0,0.20)
assert.equal(m.normalization.B,0.20, "expected")
assert.equal(m.normalization.B,0.20, "expected value")
assert.equal(c1.getSize(),0.20000000000000004,"clone1 size")
assert.equal(m.normalize(c2.getSize(),0),0.8000000000000002,"normalize")
m.compute_normalization(-1,0)
assert.equal(c2.getSize(), 0.05, "clone3 size ")
// m.compute_data_normalization()
});
\ No newline at end of file
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