Skip to content

Commit

Permalink
Merge pull request #33 from sameer/commitsizecorrect
Browse files Browse the repository at this point in the history
Re-enable assertion on commit size -- it is correct after #31
  • Loading branch information
magik6k authored Jan 6, 2019
2 parents fd2d110 + 48dca49 commit ce1bac9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ func testNode(t *testing.T, nd node.Node) error {
t.Fatalf("Commit is not a commit")
}

/*s, _ := commit.Size()
assert.Equal(t, len(commit.RawData()), int(s))*/ //TODO: Known breakage
s, _ := commit.Size()
assert(t, len(commit.RawData()) == int(s))
assert(t, reflect.DeepEqual(commit.RawData(), commit.RawData()))
assert(t, commit.GitTree.Defined())
assert(t, commit.Links() != nil)
Expand Down

0 comments on commit ce1bac9

Please sign in to comment.