From 5e00253450407ca2980144cd55806f7b46bd82b9 Mon Sep 17 00:00:00 2001 From: Thomas Meckel <14177833+tmeckel@users.noreply.github.com> Date: Tue, 25 Jun 2019 12:41:43 +0200 Subject: [PATCH] Delete stack_test.go --- .../collections/stack/stack_test.go | 42 ------------------- 1 file changed, 42 deletions(-) delete mode 100644 vendor/github.com/golang-collections/collections/stack/stack_test.go diff --git a/vendor/github.com/golang-collections/collections/stack/stack_test.go b/vendor/github.com/golang-collections/collections/stack/stack_test.go deleted file mode 100644 index 52c909475..000000000 --- a/vendor/github.com/golang-collections/collections/stack/stack_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package stack - -import ( - "testing" -) - -func Test(t *testing.T) { - s := New() - - if s.Len() != 0 { - t.Errorf("Length of an empty stack should be 0") - } - - s.Push(1) - - if s.Len() != 1 { - t.Errorf("Length should be 0") - } - - if s.Peek().(int) != 1 { - t.Errorf("Top item on the stack should be 1") - } - - if s.Pop().(int) != 1 { - t.Errorf("Top item should have been 1") - } - - if s.Len() != 0 { - t.Errorf("Stack should be empty") - } - - s.Push(1) - s.Push(2) - - if s.Len() != 2 { - t.Errorf("Length should be 2") - } - - if s.Peek().(int) != 2 { - t.Errorf("Top of the stack should be 2") - } -} \ No newline at end of file