diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-03-31 23:55:06 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-02 11:00:15 +1100 |
commit | 7d62f103e4a1b39b7e8fbd0e1f39815c525cd588 (patch) | |
tree | 83e331beeee07d066c76580e044234f18063a0a7 /pkg/gui/boxlayout/boxlayout_test.go | |
parent | 9e85d37fb949bbc83f28cb079f2ac4b45ae895ce (diff) |
big refactor to give our enums actual types
Diffstat (limited to 'pkg/gui/boxlayout/boxlayout_test.go')
-rw-r--r-- | pkg/gui/boxlayout/boxlayout_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/boxlayout/boxlayout_test.go b/pkg/gui/boxlayout/boxlayout_test.go index 9a50ff9d2..6f06379a3 100644 --- a/pkg/gui/boxlayout/boxlayout_test.go +++ b/pkg/gui/boxlayout/boxlayout_test.go @@ -87,7 +87,7 @@ func TestArrangeWindows(t *testing.T) { }, { "Box with COLUMN direction only on wide boxes with narrow box", - &Box{ConditionalDirection: func(width int, height int) int { + &Box{ConditionalDirection: func(width int, height int) Direction { if width > 4 { return COLUMN } else { @@ -111,7 +111,7 @@ func TestArrangeWindows(t *testing.T) { }, { "Box with COLUMN direction only on wide boxes with wide box", - &Box{ConditionalDirection: func(width int, height int) int { + &Box{ConditionalDirection: func(width int, height int) Direction { if width > 4 { return COLUMN } else { |