prop_check 1.0.0 → 1.0.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 +4 -4
- data/.tool-versions +1 -1
- data/CHANGELOG.md +3 -0
- data/lib/prop_check/generators.rb +1 -2
- data/lib/prop_check/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92c7d32ca511178bcd51c8d5583b1e525ce6f7108c875704d956ae3b19b0511d
|
4
|
+
data.tar.gz: ab8bb6b9b44c540938fcab33c4001978c88d380a45efcb5941e9c93a1d62e870
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 577df1c50915e8c78492f22444183aa84a58297e74044dab6577d5640eff45ff9b541ab694c7a9e6e8833b89794b4f89693b259f3b57b525d9180e7d9652dc27
|
7
|
+
data.tar.gz: f0c9b489e637c589e171a68c35052b1f4403505037d9d1ba99e971ce3ed81af9eafd2f58981a2e2326e0c1d417bdf7456783725ac357b07195f7f48b61931ec1
|
data/.tool-versions
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby 3.
|
1
|
+
ruby 3.2.2
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
- 1.0.1
|
2
|
+
- Fixes:
|
3
|
+
- The invariants of the of the `min` option for the `array` generator were not checked correctly, sometimes causing arrays with too small lengths to be generated. (c.f. [#26](https://github.com/Qqwy/ruby-prop_check/pull/26). Thank you, @olafura!)
|
1
4
|
- 1.0.0
|
2
5
|
- Changes:
|
3
6
|
- Pretty-print failures using Ruby's builtin `PP`, so `prop_check` no longer depends on the `awesome_print` gem. (c.f. #19)
|
@@ -385,8 +385,7 @@ module PropCheck
|
|
385
385
|
end
|
386
386
|
|
387
387
|
private def make_array(element_generator, min, count, uniq)
|
388
|
-
amount = min if count
|
389
|
-
amount = min if count == min && min != 0
|
388
|
+
amount = min if min > (count - min)
|
390
389
|
amount ||= (count - min)
|
391
390
|
|
392
391
|
# Simple, optimized implementation:
|
data/lib/prop_check/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prop_check
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Qqwy/Marten Wijnja
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: PropCheck allows you to do property-based testing, including shrinking.
|
14
14
|
(akin to Haskell's QuickCheck, Erlang's PropEr, Elixir's StreamData). This means
|
@@ -70,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
70
70
|
- !ruby/object:Gem::Version
|
71
71
|
version: '0'
|
72
72
|
requirements: []
|
73
|
-
rubygems_version: 3.
|
73
|
+
rubygems_version: 3.4.19
|
74
74
|
signing_key:
|
75
75
|
specification_version: 4
|
76
76
|
summary: PropCheck allows you to do property-based testing, including shrinking.
|