Sha256: c30e97f6a949048a1e085cc57293c0e12fdc9b23cfc018b0324f790a4ee836c6

Contents?: true

Size: 1.31 KB

Versions: 2

Compression:

Stored size: 1.31 KB

Contents

# Dither
Collection of combinatorial test generation strategies.

# Usage

Use 2-Way IPOG
```ruby
require 'dither'

results = Dither.all_pairs([[true, false],
                            [:cat, :dog, :mouse],
                            (0...3).to_a])

results.each { |a| puts "#{a}" }

# output
[true,  :cat, 0]
[true,  :dog, 1]
[true,  :mouse, 2]
[false, :cat, 0]
[false, :dog, 1]
[false, :mouse, 2]
[true,  :cat, 0]
[true,  :dog, 1]
[true,  :mouse, 2]
```

Use 3-Way IPOG
```ruby
require 'dither'

results = Dither.all_pairs([[true, false],
                            [true, false],
                            [:cat, :dog, :mouse],
                            (0...5).to_a], 3)

results.each { |a| puts "#{a}" }

# output
[true, true, :cat, 0]
...
```

# Note on Patches/Pull Requests

* Fork the project.
* Make your feature addition or bug fix.
* Add tests for it. This is important so I don't break it in a
  future version unintentionally.
* Commit, do not mess with rakefile, version, or history.
  (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
* Send me a pull request. Bonus points for topic branches

# Copyright
includes [dither-java](https://github.com/jesg/dither-java) Apache License, Version 2.0

Copyright (c) 2015 Jason Gowan See LICENSE for details.

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dither-0.0.8-java README.md
dither-0.0.8 README.md