diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2026-02-11 17:42:51 -0500 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2026-02-11 17:42:51 -0500 |
| commit | c8610ea4164403c418c3fc13aee13685aeff447f (patch) | |
| tree | 06e0d4b2012b791fd6bec059d6cde0fd22a3d5e1 /layout/resize_test.go | |
| parent | ebc5d96f0614ab3b4f2073eadf22fbe554b0ec8f (diff) | |
| download | gui-c8610ea4164403c418c3fc13aee13685aeff447f.zip | |
add border layout
Diffstat (limited to 'layout/resize_test.go')
| -rw-r--r-- | layout/resize_test.go | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/layout/resize_test.go b/layout/resize_test.go deleted file mode 100644 index 5be7a41..0000000 --- a/layout/resize_test.go +++ /dev/null @@ -1,58 +0,0 @@ -package layout_test - -import ( - "image" - "testing" - - "github.com/faiface/gui/layout" -) - -func TestResizeAll(t *testing.T) { - t.Parallel() - parent := image.Rect(111, 222, 333, 444) - child := layout.ResizeAll(parent) - want := parent - if child != want { - t.Errorf("got %v; want %v", child, want) - } -} - -func TestResizeQuad1(t *testing.T) { - t.Parallel() - parent := image.Rect(111, 222, 333, 444) - child := layout.ResizeQuad1(parent) - want := image.Rect(222, 222, 333, 333) - if child != want { - t.Errorf("got %v; want %v", child, want) - } -} - -func TestResizeQuad2(t *testing.T) { - t.Parallel() - parent := image.Rect(111, 222, 333, 444) - child := layout.ResizeQuad2(parent) - want := image.Rect(111, 222, 222, 333) - if child != want { - t.Errorf("got %v; want %v", child, want) - } -} - -func TestResizeQuad3(t *testing.T) { - t.Parallel() - parent := image.Rect(111, 222, 333, 444) - child := layout.ResizeQuad3(parent) - want := image.Rect(111, 333, 222, 444) - if child != want { - t.Errorf("got %v; want %v", child, want) - } -} - -func TestResizeQuad4(t *testing.T) { - t.Parallel() - parent := image.Rect(111, 222, 333, 444) - child := layout.ResizeQuad4(parent) - want := image.Rect(222, 333, 333, 444) - if child != want { - t.Errorf("got %v; want %v", child, want) - } -} |