diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-09-13 02:31:32 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-09-13 02:31:32 +0200 |
| commit | 26c94eb3db62ec6eebbf8d22c11afe691d9520c4 (patch) | |
| tree | 165e5bf69234b4f96c9b74deb4898d7143ddf120 /internal/tui/tui_test.go | |
| parent | a6e442a645902011b2081c216daaec052cdc6ce6 (diff) | |
| download | krino-0.0.1.tar.gz krino-0.0.1.zip | |
krino: release 0.0.1 — man pages, install, examples, cross and release, README, changelogv0.0.1
Also: undo removes the directories its run created; a hardlink is never a
duplicate of its own other name; a flag written before "undo" is honoured;
--version prints no leading v. Duplicate conditions with different scopes
not sharing an original is documented as a known limitation.
Diffstat (limited to 'internal/tui/tui_test.go')
| -rw-r--r-- | internal/tui/tui_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/tui/tui_test.go b/internal/tui/tui_test.go index 6918859..a3640ac 100644 --- a/internal/tui/tui_test.go +++ b/internal/tui/tui_test.go @@ -37,8 +37,8 @@ func TestColourNeedsTerminalAndNoNOCOLOR(t *testing.T) { func TestHeight(t *testing.T) { var buf bytes.Buffer - if h := Height(&buf); h != 0 { - t.Errorf("Height on a non-terminal writer = %d, want 0", h) + if h := height(&buf); h != 0 { + t.Errorf("height on a non-terminal writer = %d, want 0", h) } oldT, oldS := isTerminal, termSize @@ -46,8 +46,8 @@ func TestHeight(t *testing.T) { isTerminal = func(fd int) bool { return true } termSize = func(fd int) (int, int, error) { return 80, 24, nil } - if h := Height(os.Stdout); h != 24 { - t.Errorf("Height = %d, want 24", h) + if h := height(os.Stdout); h != 24 { + t.Errorf("height = %d, want 24", h) } } |
