mved stack into linear category

This commit is contained in:
Acid
2026-04-05 01:46:53 -04:00
parent b3d36826ed
commit 386b82500e
4 changed files with 151 additions and 117 deletions
+17
View File
@@ -0,0 +1,17 @@
package stack
import (
"testing"
)
func TestPush(t *testing.T) {
s := Stack[int]{}
s.Push(1)
s.Push(2)
s.Push(3)
if len(s.Container) != 3 {
t.Errorf("expected 2 items, got %d", len(s.Container))
}
}