Deno.test({
name: "partial update small screen",
fn() {
assertEquals(
optimizedUpdate("hello", "xello\nworld", sizeSmallWidth),
"\x1B[2Fx\x1B[4C\nworld",
//'\x1b[0G\x1b[1C\x1b[1Fx\x1b[1C\nworld'
);
},
});
Deno.test({
name: "partial update small screen",
fn() {
assertEquals(
optimizedUpdate("hello", "xello\nworld", sizeSmallWidth),
"\x1B[2Fx\x1B[4C\nworld",
//'\x1b[0G\x1b[1C\x1b[1Fx\x1b[1C\nworld'
);
},
});