##// END OF EJS Templates
scm: mercurial: test: lib: update branches test for Branch class (#5501)...
Toshi MARUYAMA -
r7554:2b4549b3eaf7
parent child
Show More
@@ -270,15 +270,32 begin
270 end
270 end
271
271
272 def test_branches
272 def test_branches
273 assert_equal [
273 brs = []
274 'default',
274 @adapter.branches.each do |b|
275 'test-branch-01',
275 brs << b
276 @branch_char_1,
276 end
277 'branch (1)[2]&,%.-3_4',
277 assert_equal 7, brs.length
278 @branch_char_0,
278 assert_equal 'default', brs[0].to_s
279 'test_branch.latin-1',
279 assert_equal '31', brs[0].revision
280 'test-branch-00',
280 assert_equal '31eeee7395c8', brs[0].scmid
281 ], @adapter.branches
281 assert_equal 'test-branch-01', brs[1].to_s
282 assert_equal '30', brs[1].revision
283 assert_equal 'ad4dc4f80284', brs[1].scmid
284 assert_equal @branch_char_1, brs[2].to_s
285 assert_equal '27', brs[2].revision
286 assert_equal '7bbf4c738e71', brs[2].scmid
287 assert_equal 'branch (1)[2]&,%.-3_4', brs[3].to_s
288 assert_equal '25', brs[3].revision
289 assert_equal 'afc61e85bde7', brs[3].scmid
290 assert_equal @branch_char_0, brs[4].to_s
291 assert_equal '23', brs[4].revision
292 assert_equal 'c8d3e4887474', brs[4].scmid
293 assert_equal 'test_branch.latin-1', brs[5].to_s
294 assert_equal '22', brs[5].revision
295 assert_equal 'c2ffe7da686a', brs[5].scmid
296 assert_equal 'test-branch-00', brs[6].to_s
297 assert_equal '13', brs[6].revision
298 assert_equal '3a330eb32958', brs[6].scmid
282 end
299 end
283
300
284 def test_branchmap
301 def test_branchmap
General Comments 0
You need to be logged in to leave comments. Login now