More efficient way to get LTR diffLerp editing.
[string-lerp.git] / tests / string-lerp.js
index 8ef0bc7..921e199 100644 (file)
@@ -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));
     }});
 }});