delta_debug 0.1.0 → 0.1.1

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: 41f464dbae2bbe839228d4a715550f43d230fba3575c5c95d055aecf2567aa3b
4
- data.tar.gz: d71b6eaa026757569fc00c98cf6d8d5034efc91791eb70a0ba888ffc5b59a754
3
+ metadata.gz: 0b7a90af0159affcb001d2ff8b7b073d72188a2539197eba2d133f4621392fdb
4
+ data.tar.gz: 1799f4f51251bc074f2f086cade800fd0d763168d19549573eee7d4de650fc4f
5
5
  SHA512:
6
- metadata.gz: 719de577f25dc32de9724b7c756c5e4aa0b8db017c6e606760460cc90a847c5a329955b4d39120dc85b02a50999ef3034b9e098663812af762a56d449c38a376
7
- data.tar.gz: 676ea5546993f3924322b860ea7395d7781603a3ef3b7e4ca803bd04cd59048d0b60d4d69a91f8705018e141af6781f5936a2b3ef8762e92207b88b5e6f752ba
6
+ metadata.gz: ef4831849491beca2b6f440e5aad96c9e6c57084613452d7f6e178425c58233cc4c273280c54f4446890ae91514b269afa3564330475e403a538a18eb56a5669
7
+ data.tar.gz: a3f23fffe7a7a22f47aeefffefb5628f02d9458242dc997c54b744b4227d5b096c85e963c5dd2864539fb9915db50cb23d33b2970677334b92dfbaeb2f1965a9
data/README.md CHANGED
@@ -18,7 +18,9 @@ For example, if we had a buggy HTML parser which crashed on any `SELECT` tag, we
18
18
  ``` ruby
19
19
  require "delta_debug"
20
20
 
21
+ # Some original failing input we want to reduce
21
22
  input = '<SELECT NAME="priority" MULTIPLE SIZE=7>'
23
+
22
24
  harness = -> (html) do
23
25
  # Here's where we would test some "real" problem.
24
26
  # Pretend we have some HTML parser which crashes on selects.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class DeltaDebug
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
data/lib/delta_debug.rb CHANGED
@@ -40,7 +40,7 @@ class DeltaDebug
40
40
  end
41
41
 
42
42
  raise "given input passes test" unless is_failure[input]
43
- return [] if is_failure[[]]
43
+ return convert_input.call([]) if is_failure[[]]
44
44
 
45
45
  n = 2
46
46
  while input.length > 1
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delta_debug
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Hawthorn