test-unit 3.4.8 → 3.4.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6f71beead19a58b6dd15eadbce6ba5f773a25dc5e8a69cdfc5e0b227fe60bfef
4
- data.tar.gz: c845b3d680a4f8d4d835bbfa3c3d86fdc5b1aa2faa21b9f6ebcb5635628a7e47
3
+ metadata.gz: 381321596727dd997b6137fd59dc637ebb74ff6cb0a3f29465116d01c4ceebce
4
+ data.tar.gz: b18049275749a55cf6e89eeb74d95b21c5904bd46b9845c64b5564dc6e756946
5
5
  SHA512:
6
- metadata.gz: 52534de6505e9b791d185d52ac4f8cfba7799c3f937f1fabe9a2419cb43cfae0fef1224727e25f8cb1a69fcef220c49a5a42b57c2b580dee7438d0c8ec64e390
7
- data.tar.gz: 233aca4112351087c13b900cf64261d5d730fa16fe2b7ab9c14a8be81a43e1032849e3fcc90f1589528738879ccb9fa5d117b5328345967e0b17693d55105afc
6
+ metadata.gz: f384ac4b1a874f19602fd20bd3d1cda9ad0bff3012c9fafaefb35828b038ca9431b739e123d185927334dcbe63a79e377e2f91f9f9b542288a3e619a87e44baf
7
+ data.tar.gz: fe8e03f084c69bab668039fc94cdf84f54a6824f724e8528b28dbd21b9b4d1f62e64bf5cb60d64312fc5aded9cc5df20058d64db51b25d5d9fce10cdd89dd902
data/doc/text/news.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # News
2
2
 
3
+ ## 3.4.9 - 2021-10-18 {#version-3-4-9}
4
+
5
+ ### Improvements
6
+
7
+ * Added support for labeling each variable values by using `Hash`.
8
+
3
9
  ## 3.4.8 - 2021-10-11 {#version-3-4-8}
4
10
 
5
11
  ### Improvements
@@ -88,9 +88,9 @@ module Test
88
88
  label = String.new
89
89
  label << "group: #{group.inspect}" unless group.nil?
90
90
  data = {}
91
- cell.each do |variable, pattern|
91
+ cell.each do |variable, pattern, pattern_label|
92
92
  label << ", " unless label.empty?
93
- label << "#{variable}: #{pattern.inspect}"
93
+ label << "#{variable}: #{pattern_label}"
94
94
  data[variable] = pattern
95
95
  end
96
96
  yield(label, data)
@@ -105,8 +105,14 @@ module Test
105
105
  variable
106
106
  end
107
107
  all_patterns = sorted_variables.collect do |(variable, patterns), _|
108
- patterns.collect do |pattern|
109
- [variable, pattern]
108
+ if patterns.is_a?(Hash)
109
+ patterns.collect do |pattern_label, pattern|
110
+ [variable, pattern, pattern_label]
111
+ end
112
+ else
113
+ patterns.collect do |pattern|
114
+ [variable, pattern, pattern.inspect]
115
+ end
110
116
  end
111
117
  end
112
118
  all_patterns[0].product(*all_patterns[1..-1], &block)
@@ -1,5 +1,5 @@
1
1
  module Test
2
2
  module Unit
3
- VERSION = "3.4.8"
3
+ VERSION = "3.4.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test-unit
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.8
4
+ version: 3.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-10-11 00:00:00.000000000 Z
12
+ date: 2021-10-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: power_assert