~taiite/public-inbox

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH senpai] ui: disable split point tests for color codes

Details
Message ID
<20210806141411.853-1-yyp@disroot.org>
DKIM signature
pass
Download raw message
Patch: +16 -16
They are not handled by the splitter anymore
---
 ui/buffers_test.go | 32 ++++++++++++++++----------------
 1 file changed, 16 insertions(+), 16 deletions(-)

diff --git a/ui/buffers_test.go b/ui/buffers_test.go
index 13a32de..7320d46 100644
--- a/ui/buffers_test.go
+++ b/ui/buffers_test.go
@@ -143,22 +143,22 @@ func TestRenderedHeight(t *testing.T) {
	// LEN=15, WIDTH=11
	// TODO find other zero- or two-width chars, since IRC color codes are
	// now handled by app.go
	assertNewLines(t, "\x0342barmand\x03: cc", 1, 10) // |b|a|r|m|a|n|d|:|c|c|
	assertNewLines(t, "\x0342barmand\x03: cc", 2, 5)  // |ba|rm|an|d:|cc|
	assertNewLines(t, "\x0342barmand\x03: cc", 3, 4)  // |bar|man|d: |cc |
	assertNewLines(t, "\x0342barmand\x03: cc", 4, 3)  // |barm|and:|cc  |
	assertNewLines(t, "\x0342barmand\x03: cc", 5, 3)  // |barma|nd:  |cc   |
	assertNewLines(t, "\x0342barmand\x03: cc", 6, 2)  // |barman|d: cc |
	assertNewLines(t, "\x0342barmand\x03: cc", 7, 2)  // |barmand|: cc   |
	assertNewLines(t, "\x0342barmand\x03: cc", 8, 2)  // |barmand:|cc      |
	assertNewLines(t, "\x0342barmand\x03: cc", 9, 2)  // |barmand: |cc       |
	assertNewLines(t, "\x0342barmand\x03: cc", 10, 2) // |barmand:  |cc        |
	assertNewLines(t, "\x0342barmand\x03: cc", 11, 1) // |barmand: cc|
	assertNewLines(t, "\x0342barmand\x03: cc", 12, 1) // |barmand: cc |
	assertNewLines(t, "\x0342barmand\x03: cc", 13, 1) // |barmand: cc  |
	assertNewLines(t, "\x0342barmand\x03: cc", 14, 1) // |barmand: cc   |
	assertNewLines(t, "\x0342barmand\x03: cc", 15, 1) // |barmand: cc    |
	assertNewLines(t, "\x0342barmand\x03: cc", 16, 1) // |barmand: cc     |
	//assertNewLines(t, "\x0342barmand\x03: cc", 1, 10) // |b|a|r|m|a|n|d|:|c|c|
	//assertNewLines(t, "\x0342barmand\x03: cc", 2, 5)  // |ba|rm|an|d:|cc|
	//assertNewLines(t, "\x0342barmand\x03: cc", 3, 4)  // |bar|man|d: |cc |
	//assertNewLines(t, "\x0342barmand\x03: cc", 4, 3)  // |barm|and:|cc  |
	//assertNewLines(t, "\x0342barmand\x03: cc", 5, 3)  // |barma|nd:  |cc   |
	//assertNewLines(t, "\x0342barmand\x03: cc", 6, 2)  // |barman|d: cc |
	//assertNewLines(t, "\x0342barmand\x03: cc", 7, 2)  // |barmand|: cc   |
	//assertNewLines(t, "\x0342barmand\x03: cc", 8, 2)  // |barmand:|cc      |
	//assertNewLines(t, "\x0342barmand\x03: cc", 9, 2)  // |barmand: |cc       |
	//assertNewLines(t, "\x0342barmand\x03: cc", 10, 2) // |barmand:  |cc        |
	//assertNewLines(t, "\x0342barmand\x03: cc", 11, 1) // |barmand: cc|
	//assertNewLines(t, "\x0342barmand\x03: cc", 12, 1) // |barmand: cc |
	//assertNewLines(t, "\x0342barmand\x03: cc", 13, 1) // |barmand: cc  |
	//assertNewLines(t, "\x0342barmand\x03: cc", 14, 1) // |barmand: cc   |
	//assertNewLines(t, "\x0342barmand\x03: cc", 15, 1) // |barmand: cc    |
	//assertNewLines(t, "\x0342barmand\x03: cc", 16, 1) // |barmand: cc     |

	assertNewLines(t, "cc en direct du word wrapping des familles le tests ça v a va va v a va", 46, 2)
}
--
2.32.0
Details
Message ID
<20210807160115.2b05227f@vroom.localdomain>
In-Reply-To
<20210806141411.853-1-yyp@disroot.org> (view parent)
DKIM signature
pass
Download raw message
I removed the tests instead:

https://git.sr.ht/~taiite/senpai/commit/1feb31daa31c8b057272c48fb64a5e40aa658e05
Reply to thread Export thread (mbox)