X-Git-Url: https://git.yukkurigames.com/?p=string-lerp.git;a=blobdiff_plain;f=tests%2Fstring-lerp.js;h=921e199d59b7d0b8c2a7f9cb4757559e6fc3583b;hp=8ef0bc758681b83db1137f5069846744c78d7458;hb=dd1c5bcbe8357a8bc2b83fc711ee16d0c7c8eaac;hpb=bdb8d784b8c1f08a2be6b67a148cb00619b512ec diff --git a/tests/string-lerp.js b/tests/string-lerp.js index 8ef0bc7..921e199 100644 --- a/tests/string-lerp.js +++ b/tests/string-lerp.js @@ -73,9 +73,11 @@ JS.Test.describe('diff lerp', function () { with (this) { }}); it("edits strings", function () { with (this) { + assertEqual(A, lerp(A, B, 0.01)); assertEqual("I do not like treen eggs and ham?", lerp(A, B, 0.3)); - assertEqual("I do not like them, Sggs and ham?", lerp(A, B, 0.5)); + assertEqual("I do not like them, eggs and ham?", lerp(A, B, 0.5)); assertEqual("I do not like them, Sam-Iham?", lerp(A, B, 0.9)); + assertEqual(B, lerp(A, B, 0.99)); }}); }});