Commit 074abd93 authored by aurelien beliard's avatar aurelien beliard Committed by Mathieu Giraud

add few tests

parent 27bb75c5
......@@ -341,7 +341,10 @@ QUnit.test("normalization: test", function(assert) {
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(),0.20000000000000004,"clone1 size")
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(c1.getSize(2),0.20000000000000004,"clone1 normalized size")
assert.equal(m.normalize(c2.getSize(),0),0.8000000000000002,"normalize")
m.compute_normalization(-1,0)
assert.equal(c2.getSize(), 0.05, "clone3 size ")
......
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