@@ -50,29 +50,30 @@ def setup
50
50
end
51
51
52
52
def test_hgversion
53
- to_test = { "Mercurial Distributed SCM (version 0.9.5)\n " => [ 0 , 9 , 5 ] ,
54
- "Mercurial Distributed SCM (1.0)\n " => [ 1 , 0 ] ,
55
- "Mercurial Distributed SCM (1e4ddc9ac9f7+20080325)\n " => nil ,
56
- "Mercurial Distributed SCM (1.0.1+20080525)\n " => [ 1 , 0 , 1 ] ,
57
- "Mercurial Distributed SCM (1916e629a29d)\n " => nil ,
58
- "Mercurial SCM Distribuito (versione 0.9.5)\n " => [ 0 , 9 , 5 ] ,
59
- "(1.6)\n (1.7)\n (1.8)" => [ 1 , 6 ] ,
60
- "(1.7.1)\r \n (1.8.1)\r \n (1.9.1)" => [ 1 , 7 , 1 ] }
61
-
53
+ to_test = {
54
+ "Mercurial Distributed SCM (version 0.9.5)\n " => [ 0 , 9 , 5 ] ,
55
+ "Mercurial Distributed SCM (1.0)\n " => [ 1 , 0 ] ,
56
+ "Mercurial Distributed SCM (1e4ddc9ac9f7+20080325)\n " => nil ,
57
+ "Mercurial Distributed SCM (1.0.1+20080525)\n " => [ 1 , 0 , 1 ] ,
58
+ "Mercurial Distributed SCM (1916e629a29d)\n " => nil ,
59
+ "Mercurial SCM Distribuito (versione 0.9.5)\n " => [ 0 , 9 , 5 ] ,
60
+ "(1.6)\n (1.7)\n (1.8)" => [ 1 , 6 ] ,
61
+ "(1.7.1)\r \n (1.8.1)\r \n (1.9.1)" => [ 1 , 7 , 1 ]
62
+ }
62
63
to_test . each do |s , v |
63
64
test_hgversion_for ( s , v )
64
65
end
65
66
end
66
67
67
68
def test_template_path
68
69
to_test = {
69
- [ 1 , 2 ] => "1.0" ,
70
- [ ] => "1.0" ,
71
- [ 1 , 2 , 1 ] => "1.0" ,
72
- [ 1 , 7 ] => "1.0" ,
73
- [ 1 , 7 , 1 ] => "1.0" ,
74
- [ 2 , 0 ] => "1.0" ,
75
- }
70
+ [ 1 , 2 ] => "1.0" ,
71
+ [ ] => "1.0" ,
72
+ [ 1 , 2 , 1 ] => "1.0" ,
73
+ [ 1 , 7 ] => "1.0" ,
74
+ [ 1 , 7 , 1 ] => "1.0" ,
75
+ [ 2 , 0 ] => "1.0" ,
76
+ }
76
77
to_test . each do |v , template |
77
78
test_template_path_for ( v , template )
78
79
end
0 commit comments