Skip to content

Commit

Permalink
refactor tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alessio committed Jan 22, 2024
1 parent dcc4876 commit 2275323
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions dirlist/list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,11 @@ func TestList_Prepend(t *testing.T) {
d.Prepend(dir)
}

d.Append("/bin/")

require.Equal(t, "/bin:/var", d.String())
d.Prepend("/sbin")
require.Equal(t, d.Slice(), []string{"/sbin", "/bin", "/var"})
require.Equal(t, d.String(), "/sbin:/bin:/var")
d.Prepend("/var")
d.Prepend("/usr/local/bin")
d.Prepend("/opt/local/bin")
require.Equal(t, d.String(), "/opt/local/bin:/usr/local/bin:/sbin:/bin:/var")
require.Equal(t, "/opt/local/bin:/usr/local/bin:/sbin:/bin:/var", d.String())
}

func TestList_Drop(t *testing.T) {
Expand Down

0 comments on commit 2275323

Please sign in to comment.