rubycheck 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubycheck.rb +6 -4
- data/lib/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9de3dd24951b07e6e1070abec06095095f4cf935
|
4
|
+
data.tar.gz: 4d6a1b25c176b81fa1f40727d5567886d03cd478
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 09266fa4d08409ec6ca0e9b3611a24b86d01090c9b6158034027d02ce778dbdce0b786f18459d69199c244ea3ddac1ffdf74c95309a8092032ee29b262cdf3f9
|
7
|
+
data.tar.gz: 472adf7e87966056e78f0433c8480f6461ec7531f7040fd19bd6bbab929b1a84d2948bb15d1bbb25bebcdcb25504380b647794f6294fc3051bb70ab960309817
|
data/lib/rubycheck.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
require_relative 'version'
|
2
2
|
|
3
3
|
require 'contracts'
|
4
4
|
include Contracts
|
@@ -12,6 +12,8 @@ include Contracts
|
|
12
12
|
# and encourages monkeypatching for defining generators for custom types.
|
13
13
|
#
|
14
14
|
module RubyCheck
|
15
|
+
include Contracts::Modules
|
16
|
+
|
15
17
|
Contract nil => Bool
|
16
18
|
#
|
17
19
|
# Generate a random boolean.
|
@@ -83,7 +85,7 @@ module RubyCheck
|
|
83
85
|
gen_uint % 256
|
84
86
|
end
|
85
87
|
|
86
|
-
Contract nil =>
|
88
|
+
Contract nil => String
|
87
89
|
#
|
88
90
|
# Generate a random ASCII character.
|
89
91
|
#
|
@@ -96,7 +98,7 @@ module RubyCheck
|
|
96
98
|
(gen_uint % 128).chr
|
97
99
|
end
|
98
100
|
|
99
|
-
Contract
|
101
|
+
Contract Symbol => Array
|
100
102
|
#
|
101
103
|
# Generate a random array, populated with values generated with <i>gen_sym</i>.
|
102
104
|
#
|
@@ -149,7 +151,7 @@ module RubyCheck
|
|
149
151
|
end
|
150
152
|
end
|
151
153
|
|
152
|
-
Contract Proc, ArrayOf[
|
154
|
+
Contract Proc, ArrayOf[Symbol] => Or[Bool, Array]
|
153
155
|
#
|
154
156
|
# Evaluates <i>property</i>, <i>TRIALS</i> times, over random inputs generated by <i>gen_syms</i>.
|
155
157
|
#
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubycheck
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Pennebaker
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.8'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.8'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -263,7 +263,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
263
263
|
version: '0'
|
264
264
|
requirements: []
|
265
265
|
rubyforge_project:
|
266
|
-
rubygems_version: 2.4.
|
266
|
+
rubygems_version: 2.4.6
|
267
267
|
signing_key:
|
268
268
|
specification_version: 4
|
269
269
|
summary: a Ruby port of the QuickCheck unit test framework
|