aboutsummaryrefslogtreecommitdiff
path: root/tests/functional
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-01-22 07:44:09 -0300
committerEuAndreh <eu@euandre.org>2025-01-22 07:51:07 -0300
commit342945dc4ff166517fb89e38f28e027e3b71f8c8 (patch)
treefb63c8bf13121c3a98b0eb73551ff548a566b8cf /tests/functional
parenttests/pds.go: Init removal of "testing" usage (diff)
downloadpds-342945dc4ff166517fb89e38f28e027e3b71f8c8.tar.gz
pds-342945dc4ff166517fb89e38f28e027e3b71f8c8.tar.xz
s/List/Vector/g
Diffstat (limited to 'tests/functional')
l---------tests/functional/vector-api/main.go (renamed from tests/functional/list-api/main.go)0
-rw-r--r--tests/functional/vector-api/pds.go (renamed from tests/functional/list-api/pds.go)8
l---------tests/functional/vector-builder-api/main.go (renamed from tests/functional/list-builder-api/main.go)0
-rw-r--r--tests/functional/vector-builder-api/pds.go (renamed from tests/functional/list-builder-api/pds.go)16
4 files changed, 12 insertions, 12 deletions
diff --git a/tests/functional/list-api/main.go b/tests/functional/vector-api/main.go
index f67563d..f67563d 120000
--- a/tests/functional/list-api/main.go
+++ b/tests/functional/vector-api/main.go
diff --git a/tests/functional/list-api/pds.go b/tests/functional/vector-api/pds.go
index c4290c8..aa37949 100644
--- a/tests/functional/list-api/pds.go
+++ b/tests/functional/vector-api/pds.go
@@ -7,8 +7,8 @@ import (
func MainTest() {
- g.Testing("NewList() - API usage", func() {
- l := NewList[string]().Append("foo").Append("bar").Append("baz")
+ g.Testing("NewVector() - API usage", func() {
+ l := NewVector[string]().Append("foo").Append("bar").Append("baz")
g.TAssertEqual(l.Get(0), "foo")
g.TAssertEqual(l.Get(1), "bar")
g.TAssertEqual(l.Get(2), "baz")
@@ -27,8 +27,8 @@ func MainTest() {
g.TAssertEqual(l.Len(), 2)
})
- g.Testing("NewList().Iterator() - API usage", func() {
- l := NewList[string]()
+ g.Testing("NewVector().Iterator() - API usage", func() {
+ l := NewVector[string]()
l = l.Append("foo")
l = l.Append("bar")
l = l.Append("baz")
diff --git a/tests/functional/list-builder-api/main.go b/tests/functional/vector-builder-api/main.go
index f67563d..f67563d 120000
--- a/tests/functional/list-builder-api/main.go
+++ b/tests/functional/vector-builder-api/main.go
diff --git a/tests/functional/list-builder-api/pds.go b/tests/functional/vector-builder-api/pds.go
index c7b632c..6dd8c2f 100644
--- a/tests/functional/list-builder-api/pds.go
+++ b/tests/functional/vector-builder-api/pds.go
@@ -8,44 +8,44 @@ import (
func MainTest() {
g.Testing("API usage", func() {
- b1 := NewListBuilder[string]()
+ b1 := NewVectorBuilder[string]()
b1.Append("foo")
b1.Append("bar")
b1.Append("baz")
- l1 := b1.List()
+ l1 := b1.Vector()
g.TAssertEqual(l1.Get(0), "foo")
g.TAssertEqual(l1.Get(1), "bar")
g.TAssertEqual(l1.Get(2), "baz")
- b2 := NewListBuilder[string]()
+ b2 := NewVectorBuilder[string]()
b2.Prepend("foo")
b2.Prepend("bar")
b2.Prepend("baz")
- l2 := b2.List()
+ l2 := b2.Vector()
g.TAssertEqual(l2.Get(0), "baz")
g.TAssertEqual(l2.Get(1), "bar")
g.TAssertEqual(l2.Get(2), "foo")
- b3 := NewListBuilder[string]()
+ b3 := NewVectorBuilder[string]()
b3.Append("foo")
b3.Append("bar")
b3.Set(1, "___")
- l3 := b3.List()
+ l3 := b3.Vector()
g.TAssertEqual(l3.Get(0), "foo")
g.TAssertEqual(l3.Get(1), "___")
- b4 := NewListBuilder[string]()
+ b4 := NewVectorBuilder[string]()
b4.Append("foo")
b4.Append("bar")
b4.Append("baz")
b4.Slice(1, 3)
- l4 := b4.List()
+ l4 := b4.Vector()
g.TAssertEqual(l4.Len(), 2)
g.TAssertEqual(l4.Get(0), "bar")
g.TAssertEqual(l4.Get(1), "baz")