1
1
mirror of https://github.com/walles/moar.git synced 2024-11-20 12:28:20 +03:00

Overflow should be true for too long lines

This commit is contained in:
Johan Walles 2024-09-16 17:07:53 +02:00
parent 39212f39c6
commit 0b123b24c7

View File

@ -53,12 +53,12 @@ func TestCreateScreenLineCanAlmostScrollBoth(t *testing.T) {
func TestCreateScreenLineChopWideCharLeft(t *testing.T) {
testHorizontalCropping(t, "上午下", 0, 10, "上午下", didFit)
testHorizontalCropping(t, "上午下", 1, 10, "<午下", didFit)
testHorizontalCropping(t, "上午下", 2, 10, "< 下", didFit)
testHorizontalCropping(t, "上午下", 3, 10, "<下", didFit)
testHorizontalCropping(t, "上午下", 4, 10, "<", didFit)
testHorizontalCropping(t, "上午下", 5, 10, "<", didFit)
testHorizontalCropping(t, "上午下", 6, 10, "<", didFit)
testHorizontalCropping(t, "上午下", 1, 10, "<午下", didOverflow)
testHorizontalCropping(t, "上午下", 2, 10, "< 下", didOverflow)
testHorizontalCropping(t, "上午下", 3, 10, "<下", didOverflow)
testHorizontalCropping(t, "上午下", 4, 10, "<", didOverflow)
testHorizontalCropping(t, "上午下", 5, 10, "<", didOverflow)
testHorizontalCropping(t, "上午下", 6, 10, "<", didOverflow)
}
func TestCreateScreenLineChopWideCharRight(t *testing.T) {