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 +4 -4
- data/doc/text/news.md +6 -0
- data/lib/test/unit/data-sets.rb +10 -4
- data/lib/test/unit/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 381321596727dd997b6137fd59dc637ebb74ff6cb0a3f29465116d01c4ceebce
|
4
|
+
data.tar.gz: b18049275749a55cf6e89eeb74d95b21c5904bd46b9845c64b5564dc6e756946
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f384ac4b1a874f19602fd20bd3d1cda9ad0bff3012c9fafaefb35828b038ca9431b739e123d185927334dcbe63a79e377e2f91f9f9b542288a3e619a87e44baf
|
7
|
+
data.tar.gz: fe8e03f084c69bab668039fc94cdf84f54a6824f724e8528b28dbd21b9b4d1f62e64bf5cb60d64312fc5aded9cc5df20058d64db51b25d5d9fce10cdd89dd902
|
data/doc/text/news.md
CHANGED
data/lib/test/unit/data-sets.rb
CHANGED
@@ -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}: #{
|
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.
|
109
|
-
|
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)
|
data/lib/test/unit/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2021-10-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: power_assert
|