dither 0.0.15-java → 0.1.1-java

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: 8f60f8c991506a68074314ec94fe7d77b76fd83a
4
- data.tar.gz: b348150d0c02e2c8d4403ead1112bdc272698043
3
+ metadata.gz: c5879b93dbdf86596a688c299f73d55b3753cff5
4
+ data.tar.gz: e0f19fa64d4cffb7fb14b127a4aa75cdbe9f6cfd
5
5
  SHA512:
6
- metadata.gz: 9436d38d0e289550152b125ed7927864a87013a1493638fed21ca65762fe7e220d8a106002e7b9ddedaa22b2cd3b030ea0f92015018344c27e8eda3abf978b93
7
- data.tar.gz: 9ec4e39fc661d7acb518c67a7afa9cb899b5193508487525a70cf15abad36b58d763ac35fd1916f8d6c3e2998c365d7f409d3ed926a738019e580c42897fc6db
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
- ATEG non-deterministic alogrithm for pairwise testing.
36
+ AETG non-deterministic alogrithm for pairwise testing.
37
37
  ```ruby
38
38
  require 'dither'
39
39
 
40
40
  # 2-way
41
- Dither.ateg([[true, false],
41
+ Dither.aetg([[true, false],
42
42
  [:cat, :dog, :mouse],
43
43
  (0...3).to_a])
44
44
 
45
45
  # 3-way
46
- Dither.ateg([[true, false],
46
+ Dither.aetg([[true, false],
47
47
  [true, false],
48
48
  [:cat, :dog, :mouse],
49
49
  (0...5).to_a],
data/dither.gemspec CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
23
23
  if RUBY_PLATFORM =~ /java/
24
24
  s.platform = "java"
25
25
  # compile dither-java on jdk 7
26
- files << "lib/dither-0.0.4.jar"
26
+ files << "lib/dither-0.1.0.jar"
27
27
  end
28
28
  s.files = files
29
29
 
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Dither
3
- module Ateg
3
+ module Aetg
4
4
 
5
5
  def run
6
6
  result = []
@@ -11,5 +11,5 @@ module Dither
11
11
  end
12
12
  result
13
13
  end
14
- end # Ateg
14
+ end # Aetg
15
15
  end # Dither
@@ -1,8 +1,8 @@
1
1
 
2
2
  module Dither
3
- module Ateg
3
+ module Aetg
4
4
  class Pairwise
5
- include Ateg
5
+ include Aetg
6
6
 
7
7
  attr_reader :scratch, :n, :random, :t, :params, :constraints, :pair_cache, :comb
8
8
 
@@ -13,10 +13,10 @@ module Dither
13
13
  raise Dither::Error.new(e.message)
14
14
  end
15
15
 
16
- def self.ateg(params, opts = {})
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.ateg(
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,
@@ -1,4 +1,4 @@
1
1
 
2
2
  module Dither
3
- VERSION = '0.0.15'
3
+ VERSION = '0.1.1'
4
4
  end
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.ateg(params, opts = {})
29
+ def self.aetg(params, opts = {})
30
30
  opts = DEFUALT_OPTS.dup.merge(opts)
31
- Ateg::Pairwise.new(params, opts).run
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/ateg'
43
- require 'dither/ateg_pairwise'
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.4.jar'
49
+ require 'dither-0.1.0.jar'
48
50
 
49
51
  require 'dither/java_ext/dither'
50
52
  end
@@ -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 ateg' do
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 ateg with seed' do
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.ateg(params, :t => 4, :seed => 0, :constraints => [
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.0.15
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-09-27 00:00:00.000000000 Z
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
- - ".gitignore"
63
- - ".ruby-version"
64
- - ".travis.yml"
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/ateg.rb
74
- - lib/dither/ateg_pairwise.rb
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.4.8
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