Skip to content

Commit

Permalink
refactor: rename tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rootulp committed Oct 31, 2023
1 parent 74999f2 commit 1d71c0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions datasquare_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,9 @@ func TestInvalidSquareExtension(t *testing.T) {
}
}

// TestRoots verifies that the row roots and column roots are equal for a 1x1
// Test_getRoots verifies that the row roots and column roots are equal for a 1x1
// square.
func TestRoots(t *testing.T) {
func Test_getRoots(t *testing.T) {
result, err := newDataSquare([][]byte{{1, 2}}, NewDefaultTree, 2)
assert.NoError(t, err)

Expand Down
4 changes: 2 additions & 2 deletions extendeddatasquare_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ func TestEquals(t *testing.T) {
})
}

func TestRootsHelper(t *testing.T) {
func TestRoots(t *testing.T) {
t.Run("returns roots for a 4x4 EDS", func(t *testing.T) {
eds, err := ComputeExtendedDataSquare([][]byte{
ones, twos,
Expand All @@ -435,7 +435,7 @@ func TestRootsHelper(t *testing.T) {
require.NoError(t, err)

roots, err := eds.Roots()
assert.NoError(t, err)
require.NoError(t, err)
assert.Len(t, roots, 8)

rowRoots, err := eds.RowRoots()
Expand Down

0 comments on commit 1d71c0a

Please sign in to comment.