Skip to content

Commit

Permalink
Remove tests for first/last
Browse files Browse the repository at this point in the history
  • Loading branch information
gavv committed Oct 5, 2023
1 parent 346651b commit e0f56df
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions array_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,14 +309,6 @@ func TestArray_Getters(t *testing.T) {
assert.NotNil(t, value.Value(0))
value.chain.assert(t, failure)
value.chain.clear()

assert.NotNil(t, value.First())
value.chain.assert(t, failure)
value.chain.clear()

assert.NotNil(t, value.Last())
value.chain.assert(t, failure)
value.chain.clear()
})

t.Run("not empty", func(t *testing.T) {
Expand All @@ -338,11 +330,6 @@ func TestArray_Getters(t *testing.T) {
assert.Equal(t, nil, value.Value(2).Raw())
value.chain.assert(t, failure)
value.chain.clear()

assert.Equal(t, "foo", value.First().Raw())
assert.Equal(t, 123.0, value.Last().Raw())
value.chain.assert(t, success)
value.chain.clear()
})
}

Expand Down

0 comments on commit e0f56df

Please sign in to comment.