- it("handles lows", function () { with (this) {
- assertEqual(A, lerp(A, B, -Infinity));
- assertEqual(A, lerp(A, B, -1));
- assertEqual(A, lerp(A, B, 0));
- }});
-
- it("handles highs", function () { with (this) {
- assertEqual(B, lerp(A, B, 1));
- assertEqual(B, lerp(A, B, 2));
- assertEqual(B, lerp(A, B, Infinity));
- }});
-
- it("crams strings together", function () { with (this) {
- assertEqual("I do not ke green eggs and ham?", lerp(A, B, 0.3));
- assertEqual("I do not like tn eggs and ham?", lerp(A, B, 0.5));
- assertEqual("I do not like them, Sam-I-am?", lerp(A, B, 0.98));
- }});
-