dither 0.0.15-java → 0.1.1-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/dither.gemspec +1 -1
- data/lib/dither/{ateg.rb → aetg.rb} +2 -2
- data/lib/dither/{ateg_pairwise.rb → aetg_pairwise.rb} +2 -2
- data/lib/dither/java_ext/dither.rb +2 -2
- data/lib/dither/version.rb +1 -1
- data/lib/dither-0.1.0.jar +0 -0
- data/lib/dither.rb +7 -5
- data/spec/dither/dither_spec.rb +4 -3
- metadata +17 -17
- data/lib/dither-0.0.4.jar +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5879b93dbdf86596a688c299f73d55b3753cff5
|
4
|
+
data.tar.gz: e0f19fa64d4cffb7fb14b127a4aa75cdbe9f6cfd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a12088d26a2e8470d50a77c6e85d50c6e517f6b50558a8ba94d75aaeed2a125792b1b7753da901553be4306ebdf1e595bbad3e953a6254b82d23914014d07066
|
7
|
+
data.tar.gz: f2e4e2d01551c8295f3bd440b821fc213cb8af09e3a3cc970940cf4d546de62e565ea82dac5515942195d7d94aa3076166da01d8fd0b1dc3e8a6d73bdb41011a
|
data/README.md
CHANGED
@@ -33,17 +33,17 @@ Dither.ipog([[true, false],
|
|
33
33
|
|
34
34
|
```
|
35
35
|
|
36
|
-
|
36
|
+
AETG non-deterministic alogrithm for pairwise testing.
|
37
37
|
```ruby
|
38
38
|
require 'dither'
|
39
39
|
|
40
40
|
# 2-way
|
41
|
-
Dither.
|
41
|
+
Dither.aetg([[true, false],
|
42
42
|
[:cat, :dog, :mouse],
|
43
43
|
(0...3).to_a])
|
44
44
|
|
45
45
|
# 3-way
|
46
|
-
Dither.
|
46
|
+
Dither.aetg([[true, false],
|
47
47
|
[true, false],
|
48
48
|
[:cat, :dog, :mouse],
|
49
49
|
(0...5).to_a],
|
data/dither.gemspec
CHANGED
@@ -13,10 +13,10 @@ module Dither
|
|
13
13
|
raise Dither::Error.new(e.message)
|
14
14
|
end
|
15
15
|
|
16
|
-
def self.
|
16
|
+
def self.aetg(params, opts = {})
|
17
17
|
opts = DEFUALT_OPTS.dup.merge(opts)
|
18
18
|
constraints = constraints_to_java(params.length, opts[:constraints])
|
19
|
-
com.github.jesg.dither.Dither.
|
19
|
+
com.github.jesg.dither.Dither.aetg(
|
20
20
|
opts[:t].to_java(:int),
|
21
21
|
opts[:seed].to_java(:Integer),
|
22
22
|
params.map(&:to_java).to_java,
|
data/lib/dither/version.rb
CHANGED
Binary file
|
data/lib/dither.rb
CHANGED
@@ -26,10 +26,12 @@ module Dither
|
|
26
26
|
MIPOG.new(params, opts).run
|
27
27
|
end
|
28
28
|
|
29
|
-
def self.
|
29
|
+
def self.aetg(params, opts = {})
|
30
30
|
opts = DEFUALT_OPTS.dup.merge(opts)
|
31
|
-
|
31
|
+
Aetg::Pairwise.new(params, opts).run
|
32
32
|
end
|
33
|
+
|
34
|
+
class << self; alias_method :ateg, :aetg end
|
33
35
|
end # Dither
|
34
36
|
|
35
37
|
require 'dither/param'
|
@@ -39,12 +41,12 @@ require 'dither/ipog_helper'
|
|
39
41
|
require 'dither/ipog'
|
40
42
|
require 'dither/mipog'
|
41
43
|
require 'dither/chinese_postman_problem'
|
42
|
-
require 'dither/
|
43
|
-
require 'dither/
|
44
|
+
require 'dither/aetg'
|
45
|
+
require 'dither/aetg_pairwise'
|
44
46
|
|
45
47
|
if RUBY_PLATFORM =~ /java/
|
46
48
|
require 'java'
|
47
|
-
require 'dither-0.0.
|
49
|
+
require 'dither-0.1.0.jar'
|
48
50
|
|
49
51
|
require 'dither/java_ext/dither'
|
50
52
|
end
|
data/spec/dither/dither_spec.rb
CHANGED
@@ -166,14 +166,15 @@ describe Dither do
|
|
166
166
|
[0, 1, 1, 1]].to_set)
|
167
167
|
end
|
168
168
|
|
169
|
-
it 'can run 2-way
|
169
|
+
it 'can run 2-way aetg' do
|
170
170
|
params = [(0...2).to_a, (0...2).to_a, (0...2).to_a, (0..3).to_a]
|
171
|
+
Dither.aetg(params)
|
171
172
|
Dither.ateg(params)
|
172
173
|
end
|
173
174
|
|
174
|
-
it 'can run 4-way
|
175
|
+
it 'can run 4-way aetg with seed' do
|
175
176
|
params = [(0...2).to_a, (0...2).to_a, (0...2).to_a, (0..3).to_a]
|
176
|
-
expect(Dither.
|
177
|
+
expect(Dither.aetg(params, :t => 4, :seed => 0, :constraints => [
|
177
178
|
{ 0 => 1, 1 => 1, 2 => 1, 3 => 1 },
|
178
179
|
], :previously_tested => [[1,1,1,2]]).length).to eq 30
|
179
180
|
end
|
metadata
CHANGED
@@ -1,25 +1,25 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dither
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Jason Gowan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
15
15
|
version_requirements: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '3.2'
|
20
20
|
requirement: !ruby/object:Gem::Requirement
|
21
21
|
requirements:
|
22
|
-
- -
|
22
|
+
- - ~>
|
23
23
|
- !ruby/object:Gem::Version
|
24
24
|
version: '3.2'
|
25
25
|
prerelease: false
|
@@ -28,12 +28,12 @@ dependencies:
|
|
28
28
|
name: rake
|
29
29
|
version_requirements: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 0.9.2
|
34
34
|
requirement: !ruby/object:Gem::Requirement
|
35
35
|
requirements:
|
36
|
-
- -
|
36
|
+
- - ~>
|
37
37
|
- !ruby/object:Gem::Version
|
38
38
|
version: 0.9.2
|
39
39
|
prerelease: false
|
@@ -42,12 +42,12 @@ dependencies:
|
|
42
42
|
name: coveralls
|
43
43
|
version_requirements: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - '>='
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
49
49
|
requirements:
|
50
|
-
- -
|
50
|
+
- - '>='
|
51
51
|
- !ruby/object:Gem::Version
|
52
52
|
version: '0'
|
53
53
|
prerelease: false
|
@@ -59,19 +59,18 @@ executables: []
|
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
-
-
|
63
|
-
-
|
64
|
-
-
|
62
|
+
- .gitignore
|
63
|
+
- .ruby-version
|
64
|
+
- .travis.yml
|
65
65
|
- Gemfile
|
66
66
|
- Gemfile.lock
|
67
67
|
- LICENSE
|
68
68
|
- README.md
|
69
69
|
- Rakefile
|
70
70
|
- dither.gemspec
|
71
|
-
- lib/dither-0.0.4.jar
|
72
71
|
- lib/dither.rb
|
73
|
-
- lib/dither/
|
74
|
-
- lib/dither/
|
72
|
+
- lib/dither/aetg.rb
|
73
|
+
- lib/dither/aetg_pairwise.rb
|
75
74
|
- lib/dither/chinese_postman_problem.rb
|
76
75
|
- lib/dither/ipog.rb
|
77
76
|
- lib/dither/ipog_helper.rb
|
@@ -84,6 +83,7 @@ files:
|
|
84
83
|
- spec/dither/chinese_postman_problem_spec.rb
|
85
84
|
- spec/dither/dither_spec.rb
|
86
85
|
- spec/spec_helper.rb
|
86
|
+
- lib/dither-0.1.0.jar
|
87
87
|
homepage: https://github.com/jesg/dither
|
88
88
|
licenses:
|
89
89
|
- MIT
|
@@ -94,17 +94,17 @@ require_paths:
|
|
94
94
|
- lib
|
95
95
|
required_ruby_version: !ruby/object:Gem::Requirement
|
96
96
|
requirements:
|
97
|
-
- -
|
97
|
+
- - '>='
|
98
98
|
- !ruby/object:Gem::Version
|
99
99
|
version: '0'
|
100
100
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
|
-
- -
|
102
|
+
- - '>='
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: '0'
|
105
105
|
requirements: []
|
106
106
|
rubyforge_project: dither
|
107
|
-
rubygems_version: 2.
|
107
|
+
rubygems_version: 2.1.9
|
108
108
|
signing_key:
|
109
109
|
specification_version: 4
|
110
110
|
summary: Collection of test generation strategies
|
data/lib/dither-0.0.4.jar
DELETED
Binary file
|