Skip to content

Commit 18c95e7

Browse files
authored
[pov] Fix tests (#3122)
1 parent c4f1a98 commit 18c95e7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

exercises/practice/pov/pov_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func TestNewNotNil(t *testing.T) {
4545
func TestValue(t *testing.T) {
4646
for _, tt := range helperTestCases {
4747
t.Run(tt.description, func(t *testing.T) {
48-
tree := New(tt.root, tt.children...)
48+
tree := tt.tree
4949
got := tree.Value()
5050
want := tt.root
5151
if want != got {
@@ -58,7 +58,7 @@ func TestValue(t *testing.T) {
5858
func TestChildren(t *testing.T) {
5959
for _, tt := range helperTestCases {
6060
t.Run(tt.description, func(t *testing.T) {
61-
tree := New(tt.root, tt.children...)
61+
tree := tt.tree
6262
got := tree.Children()
6363
want := tt.children
6464
if !treeSliceEqual(want, got) {

0 commit comments

Comments
 (0)