aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format/diff/unified_encoder_test.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-12-07 11:04:26 +0100
committerGitHub <noreply@github.com>2017-12-07 11:04:26 +0100
commita955b6f6f3e3cf37d284dca64c8335873ff9e3be (patch)
treec9bc458006c00a213474beca2c7294de3ce440f4 /plumbing/format/diff/unified_encoder_test.go
parenteb74b0e1a0ae20075435aded41bffc522bc3554c (diff)
parent89932462a587e15051040aa49d99201853726dcf (diff)
downloadgo-git-a955b6f6f3e3cf37d284dca64c8335873ff9e3be.tar.gz
Merge pull request #677 from krylovsk/bugffix/stats-on-empty-patch
object: patch, fix stats for submodules (fixes #654)
Diffstat (limited to 'plumbing/format/diff/unified_encoder_test.go')
-rw-r--r--plumbing/format/diff/unified_encoder_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plumbing/format/diff/unified_encoder_test.go b/plumbing/format/diff/unified_encoder_test.go
index b832920..6e12070 100644
--- a/plumbing/format/diff/unified_encoder_test.go
+++ b/plumbing/format/diff/unified_encoder_test.go
@@ -20,7 +20,7 @@ func (s *UnifiedEncoderTestSuite) TestBothFilesEmpty(c *C) {
buffer := bytes.NewBuffer(nil)
e := NewUnifiedEncoder(buffer, 1)
err := e.Encode(testPatch{filePatches: []testFilePatch{{}}})
- c.Assert(err, Equals, ErrBothFilesEmpty)
+ c.Assert(err, IsNil)
}
func (s *UnifiedEncoderTestSuite) TestBinaryFile(c *C) {