testdata 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6f8d9fe4d60de15d824bb0da6bae1dce8ad454b7
4
- data.tar.gz: ce50cbda243bf612396d702b10771e48df26aff5
3
+ metadata.gz: f87fe48725245f9c806fef9840e25f12c527e761
4
+ data.tar.gz: 220abb15fadbf4f15ded2cab25f98c4e0bea7110
5
5
  SHA512:
6
- metadata.gz: 81e30c97857c85642e69947e59aa0ed0f321fb6f95111ebceaf178fc73d9084bf6b0128ad13af088d35a2e27ee064258d211fa77149c75b9e083633fd0407c3f
7
- data.tar.gz: 335add2792ccaf8088951b2baca99314a1c695c63314972eb465568a2eb244adaaa929f1794c734da7951282d5438a8a1d6bf46448bedd1b331896b3bba034f8
6
+ metadata.gz: e6262efd0ddd3b5d2881b9bc1fc729dd225e95e0d7de42d51c25913467c53db42eea64fee9a0adc5f30ec69b0ebe2fdfdb37452de597fc49ce600142fd4d6d66
7
+ data.tar.gz: c94d3a26941971f81b9c9b7b7c1ef9cd70e35c04f3e8eeae0f85c80a4aee017b5fb3613d85430d42fb2cfce1804337836448744d3706c7ccf3fd3550757570d0
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/testdata.rb CHANGED
@@ -53,7 +53,7 @@ module Testdata
53
53
  def run(x=nil, debug2=nil)
54
54
  @debug2 = debug2 ? true : false
55
55
  @success = []
56
- procs = {NilClass: :test_all, Range: :test_all, String: :test_id, Fixnum: :test_id}
56
+ procs = {NilClass: :test_all, Range: :test_range, String: :test_id, Fixnum: :test_id}
57
57
 
58
58
  method(procs[x.class.to_s.to_sym]).call(x)
59
59
  summary()
@@ -82,6 +82,7 @@ module Testdata
82
82
  xpath = "records/output/summary/*"
83
83
  output_nodes = node.xpath(xpath) #[1..-1]
84
84
  output_values = output_nodes.map{|x| x.texts.map(&:unescape).join.strip}
85
+ #puts "input values: %s; output values: %s" % [input_values, output_values]
85
86
 
86
87
  [path_no, input_values, input_names, type, output_values, desc]
87
88
 
@@ -153,6 +154,12 @@ module Testdata
153
154
  end
154
155
  end
155
156
 
157
+ def test_range(range)
158
+
159
+ a = @doc.root.xpath("records/test/summary/path/text()")
160
+ a[range].each {|x| test_id x}
161
+ end
162
+
156
163
  def tests(*args)
157
164
  # override this method in the child class
158
165
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testdata
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  vWFtb5VPsjLRwClW20j7R9zEUv5XjYoyxcUn1W1xQINMVIQMtvMhouLBeWTXF7g4
32
32
  ab2xQAvsYawLTw==
33
33
  -----END CERTIFICATE-----
34
- date: 2015-02-08 00:00:00.000000000 Z
34
+ date: 2015-02-25 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: app-routes
metadata.gz.sig CHANGED
Binary file