testdata 1.1.7 → 1.1.8

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
  SHA256:
3
- metadata.gz: 5814c55a0b8c67c52214458889e879fde2c6e6e2dcd924a53beff95a5c4b1e42
4
- data.tar.gz: 4ec2c503e609ed588c8cfa9d155b0ce7cd0b8b094a11a85f2c652bf393c97301
3
+ metadata.gz: 7cf7b1c61241032094b96f7dd7b35451a0ea5d6adbd8a82301dc7205a15279ae
4
+ data.tar.gz: 9dd7d90fde6a9b3287eeaf52d142300feeb6dff1c650221fabed4129f92b0ffa
5
5
  SHA512:
6
- metadata.gz: 8f2df3c56ce5e7c363a97877e63b94b5198f8f85122f9191e5b2c92ff5294d7278b2c5a9d34e807c3d5c35830d8a47c3cb58fd3373c080cdb9bd2c6dd19874cc
7
- data.tar.gz: 16085731f48c2985fc0562ad64d582733b2bb2a71d2814bc3700c824605e7d9282212e457e94da6fe5724fec9f1ebf7b0955120423ab1aac37accd66e68a41e7
6
+ metadata.gz: b075f26248e733a201a4f30f0812b54540c5233625039dd4a8e376d20b0968da2758b63d686c7574e1eb53d815a19bad9504734a3e38ce447cf0f8658de04d8b
7
+ data.tar.gz: 756309f4520e95053f0dd45ab1b6e659682a20435768c21a225f5382328be1b8787bc1ac5a83f638646c3246fe7d4274ef219be6d73555436a395d04ec081528
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -55,6 +55,15 @@ module Testdata
55
55
 
56
56
  def run(raw_x=nil, debug2=nil)
57
57
 
58
+ # verify the document has unique path numbers
59
+
60
+ a = @doc.root.xpath('records/test/summary/path/text()')
61
+ duplicates = a.select{ |e| a.count(e) > 1 }.uniq
62
+
63
+ if duplicates.any? then
64
+ raise 'Duplicate path found. Path: ' + duplicates.inspect
65
+ end
66
+
58
67
  @debug2 = debug2 ? true : false
59
68
  @success = []
60
69
 
@@ -64,7 +73,7 @@ module Testdata
64
73
  else
65
74
  raw_x
66
75
  end
67
-
76
+
68
77
  procs = {NilClass: :test_all, Range: :test_range, String: :test_id,
69
78
  Integer: :test_id, Fixnum: :test_id}
70
79
 
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.1.7
4
+ version: 1.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file