comparison tests/test-hybridencode.py @ 51700:7f0cb9ee0534

Backout accidental publication of a large range of revisions I accidentally published 25e7f9dcad0f::bd1483fd7088, this is the inverse.
author Raphaël Gomès <rgomes@octobus.net>
date Tue, 23 Jul 2024 10:02:46 +0200
parents 493034cc3265
children ca7bde5dbafb
comparison
equal deleted inserted replaced
51699:bd1483fd7088 51700:7f0cb9ee0534
3 from mercurial import store 3 from mercurial import store
4 4
5 5
6 class hybridencodetests(unittest.TestCase): 6 class hybridencodetests(unittest.TestCase):
7 def hybridencode(self, input, want): 7 def hybridencode(self, input, want):
8
8 # Check the C implementation if it's in use 9 # Check the C implementation if it's in use
9 got = store._pathencode(input) 10 got = store._pathencode(input)
10 self.assertEqual(want, got) 11 self.assertEqual(want, got)
11 # Check the reference implementation in Python 12 # Check the reference implementation in Python
12 refgot = store._hybridencode(input, True) 13 refgot = store._hybridencode(input, True)