From patchwork Tue Apr 14 19:19:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D8373: manifest: add test for long hashes From: phabricator X-Patchwork-Id: 46115 Message-Id: <2acfeef2f232acd27715ace8807d5985@localhost.localdomain> To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Tue, 14 Apr 2020 19:19:26 +0000 Closed by commit rHG677e8fdd2c8b: manifest: add test for long hashes (authored by durin42). This revision was automatically updated to reflect the committed changes. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D8373?vs=20976&id=21086 CHANGES SINCE LAST ACTION https://phab.mercurial-scm.org/D8373/new/ REVISION DETAIL https://phab.mercurial-scm.org/D8373 AFFECTED FILES tests/test-manifest.py CHANGE DETAILS To: durin42, #hg-reviewers, Alphare, pulkit Cc: mercurial-devel diff --git a/tests/test-manifest.py b/tests/test-manifest.py --- a/tests/test-manifest.py +++ b/tests/test-manifest.py @@ -88,6 +88,10 @@ with self.assertRaises(KeyError): m[b'wat'] + def testManifestLongHashes(self): + m = self.parsemanifest(b'a\0' + b'f' * 64 + b'\n') + self.assertEqual(binascii.unhexlify(b'f' * 64), m[b'a']) + def testSetItem(self): want = BIN_HASH_1