rushcheck 0.4 → 0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (162) hide show
  1. data/Rakefile +1 -3
  2. data/Rakefile.in +37 -0
  3. data/data/rushcheck/doc/rushcheck.thtml +20 -0
  4. data/data/rushcheck/rdoc/classes/FalseClass.html +17 -17
  5. data/data/rushcheck/rdoc/classes/FalseClass.src/M000006.html +18 -0
  6. data/data/rushcheck/rdoc/classes/FalseClass.src/M000007.html +18 -0
  7. data/data/rushcheck/rdoc/classes/FalseClass.src/M000008.html +18 -0
  8. data/data/rushcheck/rdoc/classes/Float.html +21 -21
  9. data/data/rushcheck/rdoc/classes/Float.src/M000015.html +21 -0
  10. data/data/rushcheck/rdoc/classes/Float.src/M000016.html +18 -0
  11. data/data/rushcheck/rdoc/classes/Float.src/M000017.html +22 -0
  12. data/data/rushcheck/rdoc/classes/Float.src/M000018.html +20 -0
  13. data/data/rushcheck/rdoc/classes/Integer.html +28 -29
  14. data/data/rushcheck/rdoc/classes/Integer.src/M000001.html +18 -0
  15. data/data/rushcheck/rdoc/classes/Integer.src/M000002.html +18 -0
  16. data/data/rushcheck/rdoc/classes/Integer.src/M000003.html +25 -0
  17. data/data/rushcheck/rdoc/classes/Integer.src/M000004.html +19 -0
  18. data/data/rushcheck/rdoc/classes/NilClass.html +17 -17
  19. data/data/rushcheck/rdoc/classes/NilClass.src/M000023.html +18 -0
  20. data/data/rushcheck/rdoc/classes/NilClass.src/M000024.html +18 -0
  21. data/data/rushcheck/rdoc/classes/NilClass.src/M000025.html +18 -0
  22. data/data/rushcheck/rdoc/classes/RandomArray.html +16 -16
  23. data/data/rushcheck/rdoc/classes/RandomArray.src/M000009.html +19 -0
  24. data/data/rushcheck/rdoc/classes/RandomArray.src/M000010.html +35 -0
  25. data/data/rushcheck/rdoc/classes/RandomArray.src/M000011.html +22 -0
  26. data/data/rushcheck/rdoc/classes/RandomHash.html +17 -17
  27. data/data/rushcheck/rdoc/classes/RandomHash.src/M000012.html +19 -0
  28. data/data/rushcheck/rdoc/classes/RandomHash.src/M000013.html +26 -0
  29. data/data/rushcheck/rdoc/classes/RandomHash.src/M000014.html +22 -0
  30. data/data/rushcheck/rdoc/classes/RandomProc.html +22 -22
  31. data/data/rushcheck/rdoc/classes/RandomProc.src/M000019.html +18 -0
  32. data/data/rushcheck/rdoc/classes/RandomProc.src/M000020.html +30 -0
  33. data/data/rushcheck/rdoc/classes/RandomProc.src/M000021.html +26 -0
  34. data/data/rushcheck/rdoc/classes/RandomProc.src/M000022.html +20 -0
  35. data/data/rushcheck/rdoc/classes/RushCheck.html +218 -0
  36. data/data/rushcheck/rdoc/classes/RushCheck.src/M000033.html +18 -0
  37. data/data/rushcheck/rdoc/classes/RushCheck.src/M000034.html +27 -0
  38. data/data/rushcheck/rdoc/classes/RushCheck/Arbitrary.html +136 -0
  39. data/data/rushcheck/rdoc/classes/RushCheck/Arbitrary.src/M000035.html +18 -0
  40. data/data/rushcheck/rdoc/classes/RushCheck/Assertion.html +187 -0
  41. data/data/rushcheck/rdoc/classes/RushCheck/Assertion.src/M000073.html +20 -0
  42. data/data/rushcheck/rdoc/classes/RushCheck/Assertion.src/M000074.html +50 -0
  43. data/data/rushcheck/rdoc/classes/RushCheck/Coarbitrary.html +135 -0
  44. data/data/rushcheck/rdoc/classes/RushCheck/Coarbitrary.src/M000058.html +18 -0
  45. data/data/rushcheck/rdoc/classes/RushCheck/Config.html +270 -0
  46. data/data/rushcheck/rdoc/classes/RushCheck/Config.src/M000066.html +23 -0
  47. data/data/rushcheck/rdoc/classes/RushCheck/Config.src/M000067.html +22 -0
  48. data/data/rushcheck/rdoc/classes/RushCheck/Config.src/M000068.html +22 -0
  49. data/data/rushcheck/rdoc/classes/RushCheck/Config.src/M000069.html +18 -0
  50. data/data/rushcheck/rdoc/classes/RushCheck/Config.src/M000070.html +38 -0
  51. data/data/rushcheck/rdoc/classes/RushCheck/Config.src/M000071.html +55 -0
  52. data/data/rushcheck/rdoc/classes/RushCheck/Config.src/M000072.html +50 -0
  53. data/data/rushcheck/rdoc/classes/RushCheck/Gen.html +558 -0
  54. data/data/rushcheck/rdoc/classes/RushCheck/Gen.src/M000075.html +18 -0
  55. data/data/rushcheck/rdoc/classes/RushCheck/Gen.src/M000076.html +41 -0
  56. data/data/rushcheck/rdoc/classes/RushCheck/Gen.src/M000077.html +18 -0
  57. data/data/rushcheck/rdoc/classes/RushCheck/Gen.src/M000078.html +20 -0
  58. data/data/rushcheck/rdoc/classes/RushCheck/Gen.src/M000079.html +28 -0
  59. data/data/rushcheck/rdoc/classes/RushCheck/Gen.src/M000080.html +24 -0
  60. data/data/rushcheck/rdoc/classes/RushCheck/Gen.src/M000081.html +18 -0
  61. data/data/rushcheck/rdoc/classes/RushCheck/Gen.src/M000082.html +18 -0
  62. data/data/rushcheck/rdoc/classes/RushCheck/Gen.src/M000083.html +18 -0
  63. data/data/rushcheck/rdoc/classes/RushCheck/Gen.src/M000084.html +18 -0
  64. data/data/rushcheck/rdoc/classes/RushCheck/Gen.src/M000085.html +18 -0
  65. data/data/rushcheck/rdoc/classes/RushCheck/Gen.src/M000086.html +24 -0
  66. data/data/rushcheck/rdoc/classes/RushCheck/Gen.src/M000087.html +18 -0
  67. data/data/rushcheck/rdoc/classes/RushCheck/Gen.src/M000088.html +21 -0
  68. data/data/rushcheck/rdoc/classes/RushCheck/Gen.src/M000089.html +18 -0
  69. data/data/rushcheck/rdoc/classes/RushCheck/Gen.src/M000090.html +18 -0
  70. data/data/rushcheck/rdoc/classes/RushCheck/Gen.src/M000091.html +23 -0
  71. data/data/rushcheck/rdoc/classes/RushCheck/Gen.src/M000092.html +19 -0
  72. data/data/rushcheck/rdoc/classes/RushCheck/Gen.src/M000093.html +18 -0
  73. data/data/rushcheck/rdoc/classes/RushCheck/Gen.src/M000094.html +24 -0
  74. data/data/rushcheck/rdoc/classes/RushCheck/GuardException.html +111 -0
  75. data/data/rushcheck/rdoc/classes/RushCheck/HsRandom.html +201 -0
  76. data/data/rushcheck/rdoc/classes/RushCheck/HsRandom.src/M000041.html +22 -0
  77. data/data/rushcheck/rdoc/classes/RushCheck/HsRandom.src/M000042.html +32 -0
  78. data/data/rushcheck/rdoc/classes/RushCheck/HsRandom.src/M000043.html +18 -0
  79. data/data/rushcheck/rdoc/classes/RushCheck/Property.html +174 -0
  80. data/data/rushcheck/rdoc/classes/RushCheck/Property.src/M000105.html +26 -0
  81. data/data/rushcheck/rdoc/classes/RushCheck/Property.src/M000106.html +18 -0
  82. data/data/rushcheck/rdoc/classes/RushCheck/RandomBool.html +146 -0
  83. data/data/rushcheck/rdoc/classes/RushCheck/RandomBool.src/M000039.html +18 -0
  84. data/data/rushcheck/rdoc/classes/RushCheck/RandomBool.src/M000040.html +19 -0
  85. data/data/rushcheck/rdoc/classes/RushCheck/RandomGen.html +196 -0
  86. data/data/rushcheck/rdoc/classes/RushCheck/RandomGen.src/M000036.html +18 -0
  87. data/data/rushcheck/rdoc/classes/RushCheck/RandomGen.src/M000037.html +18 -0
  88. data/data/rushcheck/rdoc/classes/RushCheck/RandomGen.src/M000038.html +18 -0
  89. data/data/rushcheck/rdoc/classes/RushCheck/Result.html +214 -0
  90. data/data/rushcheck/rdoc/classes/RushCheck/Result.src/M000095.html +18 -0
  91. data/data/rushcheck/rdoc/classes/RushCheck/Result.src/M000096.html +18 -0
  92. data/data/rushcheck/rdoc/classes/RushCheck/Result.src/M000097.html +18 -0
  93. data/data/rushcheck/rdoc/classes/RushCheck/StdGen.html +252 -0
  94. data/data/rushcheck/rdoc/classes/RushCheck/StdGen.src/M000061.html +23 -0
  95. data/data/rushcheck/rdoc/classes/RushCheck/StdGen.src/M000062.html +21 -0
  96. data/data/rushcheck/rdoc/classes/RushCheck/StdGen.src/M000063.html +21 -0
  97. data/data/rushcheck/rdoc/classes/RushCheck/StdGen.src/M000064.html +18 -0
  98. data/data/rushcheck/rdoc/classes/RushCheck/StdGen.src/M000065.html +18 -0
  99. data/data/rushcheck/rdoc/classes/RushCheck/TestExausted.html +113 -0
  100. data/data/rushcheck/rdoc/classes/RushCheck/TestFailed.html +155 -0
  101. data/data/rushcheck/rdoc/classes/RushCheck/TestFailed.src/M000099.html +18 -0
  102. data/data/rushcheck/rdoc/classes/RushCheck/TestOk.html +113 -0
  103. data/data/rushcheck/rdoc/classes/RushCheck/TestOptions.html +172 -0
  104. data/data/rushcheck/rdoc/classes/RushCheck/TestOptions.src/M000059.html +18 -0
  105. data/data/rushcheck/rdoc/classes/RushCheck/TestOptions.src/M000060.html +18 -0
  106. data/data/rushcheck/rdoc/classes/RushCheck/TestResult.html +160 -0
  107. data/data/rushcheck/rdoc/classes/RushCheck/TestResult.src/M000100.html +18 -0
  108. data/data/rushcheck/rdoc/classes/RushCheck/Testable.html +326 -0
  109. data/data/rushcheck/rdoc/classes/RushCheck/Testable.src/M000044.html +18 -0
  110. data/data/rushcheck/rdoc/classes/RushCheck/Testable.src/M000045.html +18 -0
  111. data/data/rushcheck/rdoc/classes/RushCheck/Testable.src/M000048.html +18 -0
  112. data/data/rushcheck/rdoc/classes/RushCheck/Testable.src/M000049.html +18 -0
  113. data/data/rushcheck/rdoc/classes/RushCheck/Testable.src/M000050.html +18 -0
  114. data/data/rushcheck/rdoc/classes/RushCheck/Testable.src/M000052.html +19 -0
  115. data/data/rushcheck/rdoc/classes/RushCheck/Testable.src/M000053.html +21 -0
  116. data/data/rushcheck/rdoc/classes/RushCheck/Testable.src/M000054.html +18 -0
  117. data/data/rushcheck/rdoc/classes/RushCheck/Testable.src/M000056.html +18 -0
  118. data/data/rushcheck/rdoc/classes/RushCheck/Testable.src/M000057.html +18 -0
  119. data/data/rushcheck/rdoc/classes/RushCheck/TheStdGen.html +200 -0
  120. data/data/rushcheck/rdoc/classes/RushCheck/TheStdGen.src/M000101.html +18 -0
  121. data/data/rushcheck/rdoc/classes/RushCheck/TheStdGen.src/M000102.html +20 -0
  122. data/data/rushcheck/rdoc/classes/RushCheck/TheStdGen.src/M000103.html +21 -0
  123. data/data/rushcheck/rdoc/classes/RushCheck/TheStdGen.src/M000104.html +18 -0
  124. data/data/rushcheck/rdoc/classes/SpecialString.html +5 -5
  125. data/data/rushcheck/rdoc/classes/SpecialString.src/M000005.html +37 -0
  126. data/data/rushcheck/rdoc/classes/String.html +21 -21
  127. data/data/rushcheck/rdoc/classes/String.src/M000026.html +24 -0
  128. data/data/rushcheck/rdoc/classes/String.src/M000027.html +18 -0
  129. data/data/rushcheck/rdoc/classes/String.src/M000028.html +25 -0
  130. data/data/rushcheck/rdoc/classes/String.src/M000029.html +22 -0
  131. data/data/rushcheck/rdoc/classes/TrueClass.html +17 -17
  132. data/data/rushcheck/rdoc/classes/TrueClass.src/M000030.html +18 -0
  133. data/data/rushcheck/rdoc/classes/TrueClass.src/M000031.html +18 -0
  134. data/data/rushcheck/rdoc/classes/TrueClass.src/M000032.html +18 -0
  135. data/data/rushcheck/rdoc/created.rid +1 -1
  136. data/data/rushcheck/rdoc/files/rushcheck/arbitrary_rb.html +5 -8
  137. data/data/rushcheck/rdoc/files/rushcheck/array_rb.html +1 -1
  138. data/data/rushcheck/rdoc/files/rushcheck/assertion_rb.html +2 -3
  139. data/data/rushcheck/rdoc/files/rushcheck/bool_rb.html +3 -2
  140. data/data/rushcheck/rdoc/files/rushcheck/config_rb.html +3 -4
  141. data/data/rushcheck/rdoc/files/rushcheck/float_rb.html +3 -3
  142. data/data/rushcheck/rdoc/files/rushcheck/gen_rb.html +5 -5
  143. data/data/rushcheck/rdoc/files/rushcheck/guard_rb.html +2 -2
  144. data/data/rushcheck/rdoc/files/rushcheck/hash_rb.html +1 -1
  145. data/data/rushcheck/rdoc/files/rushcheck/integer_rb.html +2 -2
  146. data/data/rushcheck/rdoc/files/rushcheck/proc_rb.html +1 -1
  147. data/data/rushcheck/rdoc/files/rushcheck/property_rb.html +3 -4
  148. data/data/rushcheck/rdoc/files/rushcheck/random_rb.html +3 -6
  149. data/data/rushcheck/rdoc/files/rushcheck/result_rb.html +3 -4
  150. data/data/rushcheck/rdoc/files/rushcheck/string_rb.html +4 -4
  151. data/data/rushcheck/rdoc/files/rushcheck/testable_rb.html +2 -3
  152. data/data/rushcheck/rdoc/files/rushcheck/testoptions_rb.html +3 -3
  153. data/data/rushcheck/rdoc/files/rushcheck/testresult_rb.html +1 -1
  154. data/data/rushcheck/rdoc/files/rushcheck_rb.html +5 -4
  155. data/data/rushcheck/rdoc/fr_class_index.html +20 -20
  156. data/data/rushcheck/rdoc/fr_method_index.html +106 -105
  157. data/lib/rushcheck.rb +1 -0
  158. data/lib/rushcheck/assertion.rb +9 -4
  159. data/lib/rushcheck/gen.rb +1 -1
  160. data/lib/rushcheck/version.rb +8 -0
  161. data/lib/rushcheck/version.rb.in +8 -0
  162. metadata +144 -2
data/Rakefile CHANGED
@@ -6,12 +6,10 @@ require 'rubygems'
6
6
  require 'rake'
7
7
  require 'rake/gempackagetask'
8
8
 
9
- RUSHCHECK_VERSION = '0.4'
10
-
11
9
  spec = Gem::Specification.new do |s|
12
10
  s.name = 'rushcheck'
13
11
  s.summary = "A lightweight random testing tool"
14
- s.version = RUSHCHECK_VERSION
12
+ s.version = "0.5"
15
13
  s.author = 'Daisuke IKEGAMI'
16
14
  s.email = 'ikegami@madscientist.jp'
17
15
  s.homepage = 'http://rushcheck.rubyforge.org'
data/Rakefile.in ADDED
@@ -0,0 +1,37 @@
1
+ # Rakefile for RushCheck
2
+ #
3
+ #
4
+
5
+ require 'rubygems'
6
+ require 'rake'
7
+ require 'rake/gempackagetask'
8
+
9
+ spec = Gem::Specification.new do |s|
10
+ s.name = 'rushcheck'
11
+ s.summary = "A lightweight random testing tool"
12
+ s.version = "@VERSION@"
13
+ s.author = 'Daisuke IKEGAMI'
14
+ s.email = 'ikegami@madscientist.jp'
15
+ s.homepage = 'http://rushcheck.rubyforge.org'
16
+ s.platform = Gem::Platform::RUBY
17
+
18
+ s.has_rdoc = true
19
+ # s.test_file =
20
+
21
+ s.require_path = 'lib'
22
+ s.autorequire = 'rushcheck'
23
+ s.bindir = 'bin'
24
+ # s.executable =
25
+ # s.extra_rdoc_files =
26
+ s.files = FileList['lib/**/*', 'data/**/**/*',
27
+ '[A-Z]*', 'copying.txt'].to_a
28
+ s.description = <<-EOF
29
+ RushCheck is a random testing tool which is one of implementations
30
+ of QuichCheck in Haskell.
31
+ EOF
32
+ end
33
+
34
+ Rake::GemPackageTask.new(spec) do |pkg|
35
+ pkg.need_zip = true
36
+ pkg.need_tar = true
37
+ end
@@ -12,6 +12,7 @@ h1. Index
12
12
  # <a href="#Getting start">Getting start</a>
13
13
  ## <a href="#install by RubyGems">(Option 1.) install by RubyGems</a>
14
14
  ## <a href="#using setup.rb after download source codes">(Option 2.) using setup.rb after download source codes</a>
15
+ ## <a href="#darcs repository">darcs repository</a>
15
16
  # <a href="#Tutorial for writing testcase">Tutorial for writing testcase</a>
16
17
  ## <a href="#At first, we have to require the library.">At first, we have to require the library.</a>
17
18
  ## <a href="#Start writing testcases">Start writing testcases</a>
@@ -69,6 +70,25 @@ See also the following;
69
70
 
70
71
  <pre>% setup.rb help</pre>
71
72
 
73
+ h2. <a name="darcs repository">(Developer's another option)darcs repository</a>
74
+
75
+ Our darcs repository is provided for developer RushCheck itself, and skip this
76
+ section if you want to only use RushCheck!
77
+ If you have an interest to our development version (not yet shipped), then try to access our darcs repository.
78
+ darcs is a version control system and can be easily installed from
79
+ "the darcs page":http://abridgegame.org/darcs/. After installing
80
+ darcs, you can get the current development of RushCheck by following:
81
+
82
+ <pre>
83
+ % darcs get --partial http://rushcheck.rubyforge.org/repos/rushcheck
84
+ </pre>
85
+
86
+ After darcs getting, you can get the newest files whenever you want to
87
+ type
88
+ <pre>
89
+ % darcs pull -a
90
+ </pre>
91
+
72
92
  h1. <a name="Tutorial for writing testcase">Tutorial for writing testcase</a>
73
93
 
74
94
  h2. <a name="At first, we have to require the library.">At first, we have to require the library.</a>
@@ -86,9 +86,9 @@
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000022">bound</a>&nbsp;&nbsp;
90
- <a href="#M000023">coarbitrary</a>&nbsp;&nbsp;
91
- <a href="#M000024">property</a>&nbsp;&nbsp;
89
+ <a href="#M000006">bound</a>&nbsp;&nbsp;
90
+ <a href="#M000007">coarbitrary</a>&nbsp;&nbsp;
91
+ <a href="#M000008">property</a>&nbsp;&nbsp;
92
92
  </div>
93
93
  </div>
94
94
 
@@ -100,8 +100,8 @@
100
100
  <h3 class="section-bar">Included Modules</h3>
101
101
 
102
102
  <div id="includes-list">
103
- <span class="include-name"><a href="Coarbitrary.html">Coarbitrary</a></span>
104
- <span class="include-name"><a href="Testable.html">Testable</a></span>
103
+ <span class="include-name"><a href="RushCheck/Coarbitrary.html">RushCheck::Coarbitrary</a></span>
104
+ <span class="include-name"><a href="RushCheck/Testable.html">RushCheck::Testable</a></span>
105
105
  </div>
106
106
  </div>
107
107
 
@@ -118,12 +118,12 @@
118
118
  <div id="methods">
119
119
  <h3 class="section-bar">Public Class methods</h3>
120
120
 
121
- <div id="method-M000022" class="method-detail">
122
- <a name="M000022"></a>
121
+ <div id="method-M000006" class="method-detail">
122
+ <a name="M000006"></a>
123
123
 
124
124
  <div class="method-heading">
125
- <a href="FalseClass.src/M000022.html" target="Code" class="method-signature"
126
- onclick="popupCode('FalseClass.src/M000022.html');return false;">
125
+ <a href="FalseClass.src/M000006.html" target="Code" class="method-signature"
126
+ onclick="popupCode('FalseClass.src/M000006.html');return false;">
127
127
  <span class="method-name">bound</span><span class="method-args">()</span>
128
128
  </a>
129
129
  </div>
@@ -134,12 +134,12 @@
134
134
 
135
135
  <h3 class="section-bar">Public Instance methods</h3>
136
136
 
137
- <div id="method-M000023" class="method-detail">
138
- <a name="M000023"></a>
137
+ <div id="method-M000007" class="method-detail">
138
+ <a name="M000007"></a>
139
139
 
140
140
  <div class="method-heading">
141
- <a href="FalseClass.src/M000023.html" target="Code" class="method-signature"
142
- onclick="popupCode('FalseClass.src/M000023.html');return false;">
141
+ <a href="FalseClass.src/M000007.html" target="Code" class="method-signature"
142
+ onclick="popupCode('FalseClass.src/M000007.html');return false;">
143
143
  <span class="method-name">coarbitrary</span><span class="method-args">(g)</span>
144
144
  </a>
145
145
  </div>
@@ -148,12 +148,12 @@
148
148
  </div>
149
149
  </div>
150
150
 
151
- <div id="method-M000024" class="method-detail">
152
- <a name="M000024"></a>
151
+ <div id="method-M000008" class="method-detail">
152
+ <a name="M000008"></a>
153
153
 
154
154
  <div class="method-heading">
155
- <a href="FalseClass.src/M000024.html" target="Code" class="method-signature"
156
- onclick="popupCode('FalseClass.src/M000024.html');return false;">
155
+ <a href="FalseClass.src/M000008.html" target="Code" class="method-signature"
156
+ onclick="popupCode('FalseClass.src/M000008.html');return false;">
157
157
  <span class="method-name">property</span><span class="method-args">()</span>
158
158
  </a>
159
159
  </div>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>bound (FalseClass)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File rushcheck/bool.rb, line 61</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">bound</span>
15
+ [<span class="ruby-ivar">@@min_bound</span>, <span class="ruby-ivar">@@max_bound</span>]
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>coarbitrary (FalseClass)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File rushcheck/bool.rb, line 65</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">coarbitrary</span>(<span class="ruby-identifier">g</span>)
15
+ <span class="ruby-identifier">g</span>.<span class="ruby-identifier">variant</span>(<span class="ruby-value">1</span>)
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>property (FalseClass)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File rushcheck/bool.rb, line 69</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">property</span>
15
+ <span class="ruby-constant">RushCheck</span><span class="ruby-operator">::</span><span class="ruby-constant">Result</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>).<span class="ruby-identifier">result</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -86,10 +86,10 @@
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000052">arbitrary</a>&nbsp;&nbsp;
90
- <a href="#M000053">bound</a>&nbsp;&nbsp;
91
- <a href="#M000055">coarbitrary</a>&nbsp;&nbsp;
92
- <a href="#M000054">random_range</a>&nbsp;&nbsp;
89
+ <a href="#M000015">arbitrary</a>&nbsp;&nbsp;
90
+ <a href="#M000016">bound</a>&nbsp;&nbsp;
91
+ <a href="#M000018">coarbitrary</a>&nbsp;&nbsp;
92
+ <a href="#M000017">random_range</a>&nbsp;&nbsp;
93
93
  </div>
94
94
  </div>
95
95
 
@@ -101,7 +101,7 @@
101
101
  <h3 class="section-bar">Included Modules</h3>
102
102
 
103
103
  <div id="includes-list">
104
- <span class="include-name"><a href="Coarbitrary.html">Coarbitrary</a></span>
104
+ <span class="include-name"><a href="RushCheck/Coarbitrary.html">RushCheck::Coarbitrary</a></span>
105
105
  </div>
106
106
  </div>
107
107
 
@@ -118,12 +118,12 @@
118
118
  <div id="methods">
119
119
  <h3 class="section-bar">Public Class methods</h3>
120
120
 
121
- <div id="method-M000052" class="method-detail">
122
- <a name="M000052"></a>
121
+ <div id="method-M000015" class="method-detail">
122
+ <a name="M000015"></a>
123
123
 
124
124
  <div class="method-heading">
125
- <a href="Float.src/M000052.html" target="Code" class="method-signature"
126
- onclick="popupCode('Float.src/M000052.html');return false;">
125
+ <a href="Float.src/M000015.html" target="Code" class="method-signature"
126
+ onclick="popupCode('Float.src/M000015.html');return false;">
127
127
  <span class="method-name">arbitrary</span><span class="method-args">()</span>
128
128
  </a>
129
129
  </div>
@@ -132,12 +132,12 @@
132
132
  </div>
133
133
  </div>
134
134
 
135
- <div id="method-M000053" class="method-detail">
136
- <a name="M000053"></a>
135
+ <div id="method-M000016" class="method-detail">
136
+ <a name="M000016"></a>
137
137
 
138
138
  <div class="method-heading">
139
- <a href="Float.src/M000053.html" target="Code" class="method-signature"
140
- onclick="popupCode('Float.src/M000053.html');return false;">
139
+ <a href="Float.src/M000016.html" target="Code" class="method-signature"
140
+ onclick="popupCode('Float.src/M000016.html');return false;">
141
141
  <span class="method-name">bound</span><span class="method-args">()</span>
142
142
  </a>
143
143
  </div>
@@ -146,12 +146,12 @@
146
146
  </div>
147
147
  </div>
148
148
 
149
- <div id="method-M000054" class="method-detail">
150
- <a name="M000054"></a>
149
+ <div id="method-M000017" class="method-detail">
150
+ <a name="M000017"></a>
151
151
 
152
152
  <div class="method-heading">
153
- <a href="Float.src/M000054.html" target="Code" class="method-signature"
154
- onclick="popupCode('Float.src/M000054.html');return false;">
153
+ <a href="Float.src/M000017.html" target="Code" class="method-signature"
154
+ onclick="popupCode('Float.src/M000017.html');return false;">
155
155
  <span class="method-name">random_range</span><span class="method-args">(gen, lo=@@min_bound, hi=@@max_bound)</span>
156
156
  </a>
157
157
  </div>
@@ -162,12 +162,12 @@
162
162
 
163
163
  <h3 class="section-bar">Public Instance methods</h3>
164
164
 
165
- <div id="method-M000055" class="method-detail">
166
- <a name="M000055"></a>
165
+ <div id="method-M000018" class="method-detail">
166
+ <a name="M000018"></a>
167
167
 
168
168
  <div class="method-heading">
169
- <a href="Float.src/M000055.html" target="Code" class="method-signature"
170
- onclick="popupCode('Float.src/M000055.html');return false;">
169
+ <a href="Float.src/M000018.html" target="Code" class="method-signature"
170
+ onclick="popupCode('Float.src/M000018.html');return false;">
171
171
  <span class="method-name">coarbitrary</span><span class="method-args">(g)</span>
172
172
  </a>
173
173
  </div>
@@ -0,0 +1,21 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>arbitrary (Float)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File rushcheck/float.rb, line 18</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">arbitrary</span>
15
+ <span class="ruby-constant">RushCheck</span><span class="ruby-operator">::</span><span class="ruby-constant">Gen</span>.<span class="ruby-identifier">new</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">n</span>, <span class="ruby-identifier">r</span><span class="ruby-operator">|</span>
16
+ <span class="ruby-identifier">a</span>, <span class="ruby-identifier">b</span>, <span class="ruby-identifier">c</span> = (<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">3</span>).<span class="ruby-identifier">map</span> { <span class="ruby-constant">Integer</span>.<span class="ruby-identifier">arbitrary</span>.<span class="ruby-identifier">value</span>(<span class="ruby-identifier">n</span>, <span class="ruby-identifier">r</span>) }
17
+ <span class="ruby-identifier">a</span> <span class="ruby-operator">+</span> (<span class="ruby-identifier">b</span> <span class="ruby-operator">/</span> (<span class="ruby-identifier">c</span>.<span class="ruby-identifier">abs</span> <span class="ruby-operator">+</span> <span class="ruby-value">1</span>))
18
+ <span class="ruby-keyword kw">end</span>
19
+ <span class="ruby-keyword kw">end</span></pre>
20
+ </body>
21
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>bound (Float)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File rushcheck/float.rb, line 25</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">bound</span>
15
+ [<span class="ruby-ivar">@@min_bound</span>, <span class="ruby-ivar">@@max_bound</span>]
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,22 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>random_range (Float)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File rushcheck/float.rb, line 29</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">random_range</span>(<span class="ruby-identifier">gen</span>, <span class="ruby-identifier">lo</span>=<span class="ruby-ivar">@@min_bound</span>, <span class="ruby-identifier">hi</span>=<span class="ruby-ivar">@@max_bound</span>)
15
+ <span class="ruby-identifier">x</span>, <span class="ruby-identifier">g</span> = <span class="ruby-constant">Integer</span>.<span class="ruby-identifier">random</span>(<span class="ruby-identifier">gen</span>)
16
+ <span class="ruby-identifier">a</span>, <span class="ruby-identifier">b</span> = <span class="ruby-constant">Integer</span>.<span class="ruby-identifier">bound</span>
17
+ <span class="ruby-identifier">r</span> = (<span class="ruby-identifier">lo</span><span class="ruby-operator">+</span><span class="ruby-identifier">hi</span><span class="ruby-operator">/</span><span class="ruby-value">2</span>).<span class="ruby-identifier">to_f</span> <span class="ruby-operator">+</span> ((<span class="ruby-identifier">hi</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">lo</span>).<span class="ruby-identifier">to_f</span> <span class="ruby-operator">/</span> (<span class="ruby-identifier">b</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">a</span>) <span class="ruby-operator">*</span> <span class="ruby-identifier">x</span>)
18
+
19
+ [<span class="ruby-identifier">r</span>, <span class="ruby-identifier">g</span>]
20
+ <span class="ruby-keyword kw">end</span></pre>
21
+ </body>
22
+ </html>
@@ -0,0 +1,20 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>coarbitrary (Float)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File rushcheck/float.rb, line 37</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">coarbitrary</span>(<span class="ruby-identifier">g</span>)
15
+ <span class="ruby-identifier">h</span> = <span class="ruby-identifier">truncate</span>
16
+ <span class="ruby-identifier">t</span> = (<span class="ruby-keyword kw">self</span> <span class="ruby-operator">*</span> (<span class="ruby-value">10</span> <span class="ruby-operator">**</span> ((<span class="ruby-keyword kw">self</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">h</span>).<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">-</span> <span class="ruby-value">2</span>))).<span class="ruby-identifier">truncate</span>
17
+ <span class="ruby-identifier">h</span>.<span class="ruby-identifier">coarbitrary</span>(<span class="ruby-identifier">t</span>.<span class="ruby-identifier">coarbitrary</span>(<span class="ruby-identifier">g</span>))
18
+ <span class="ruby-keyword kw">end</span></pre>
19
+ </body>
20
+ </html>
@@ -80,10 +80,9 @@
80
80
 
81
81
  <div id="description">
82
82
  <p>
83
- ruby&#8217;s <a href="Integer.html">Integer</a> class is extended to use
84
- RushCheck library. See also <a href="HsRandom.html">HsRandom</a>, <a
85
- href="Arbitrary.html">Arbitrary</a> and <a
86
- href="Coarbitrary.html">Coarbitrary</a>.
83
+ ruby&#8217;s <a href="Integer.html">Integer</a> class is extended to use <a
84
+ href="RushCheck.html">RushCheck</a> library. See also HsRandom, Arbitrary
85
+ and Coarbitrary.
87
86
  </p>
88
87
 
89
88
  </div>
@@ -95,10 +94,10 @@ href="Coarbitrary.html">Coarbitrary</a>.
95
94
  <h3 class="section-bar">Methods</h3>
96
95
 
97
96
  <div class="name-list">
98
- <a href="#M000011">arbitrary</a>&nbsp;&nbsp;
99
- <a href="#M000010">bound</a>&nbsp;&nbsp;
100
- <a href="#M000013">coarbitrary</a>&nbsp;&nbsp;
101
- <a href="#M000012">random_range</a>&nbsp;&nbsp;
97
+ <a href="#M000002">arbitrary</a>&nbsp;&nbsp;
98
+ <a href="#M000001">bound</a>&nbsp;&nbsp;
99
+ <a href="#M000004">coarbitrary</a>&nbsp;&nbsp;
100
+ <a href="#M000003">random_range</a>&nbsp;&nbsp;
102
101
  </div>
103
102
  </div>
104
103
 
@@ -110,7 +109,7 @@ href="Coarbitrary.html">Coarbitrary</a>.
110
109
  <h3 class="section-bar">Included Modules</h3>
111
110
 
112
111
  <div id="includes-list">
113
- <span class="include-name"><a href="Coarbitrary.html">Coarbitrary</a></span>
112
+ <span class="include-name"><a href="RushCheck/Coarbitrary.html">RushCheck::Coarbitrary</a></span>
114
113
  </div>
115
114
  </div>
116
115
 
@@ -127,72 +126,72 @@ href="Coarbitrary.html">Coarbitrary</a>.
127
126
  <div id="methods">
128
127
  <h3 class="section-bar">Public Class methods</h3>
129
128
 
130
- <div id="method-M000011" class="method-detail">
131
- <a name="M000011"></a>
129
+ <div id="method-M000002" class="method-detail">
130
+ <a name="M000002"></a>
132
131
 
133
132
  <div class="method-heading">
134
- <a href="Integer.src/M000011.html" target="Code" class="method-signature"
135
- onclick="popupCode('Integer.src/M000011.html');return false;">
133
+ <a href="Integer.src/M000002.html" target="Code" class="method-signature"
134
+ onclick="popupCode('Integer.src/M000002.html');return false;">
136
135
  <span class="method-name">arbitrary</span><span class="method-args">()</span>
137
136
  </a>
138
137
  </div>
139
138
 
140
139
  <div class="method-description">
141
140
  <p>
142
- this method is needed to use <a href="Arbitrary.html">Arbitrary</a>.
141
+ this method is needed to use Arbitrary.
143
142
  </p>
144
143
  </div>
145
144
  </div>
146
145
 
147
- <div id="method-M000010" class="method-detail">
148
- <a name="M000010"></a>
146
+ <div id="method-M000001" class="method-detail">
147
+ <a name="M000001"></a>
149
148
 
150
149
  <div class="method-heading">
151
- <a href="Integer.src/M000010.html" target="Code" class="method-signature"
152
- onclick="popupCode('Integer.src/M000010.html');return false;">
150
+ <a href="Integer.src/M000001.html" target="Code" class="method-signature"
151
+ onclick="popupCode('Integer.src/M000001.html');return false;">
153
152
  <span class="method-name">bound</span><span class="method-args">()</span>
154
153
  </a>
155
154
  </div>
156
155
 
157
156
  <div class="method-description">
158
157
  <p>
159
- this method is needed to include <a href="HsRandom.html">HsRandom</a>.
158
+ this method is needed to include HsRandom.
160
159
  </p>
161
160
  </div>
162
161
  </div>
163
162
 
164
- <div id="method-M000012" class="method-detail">
165
- <a name="M000012"></a>
163
+ <div id="method-M000003" class="method-detail">
164
+ <a name="M000003"></a>
166
165
 
167
166
  <div class="method-heading">
168
- <a href="Integer.src/M000012.html" target="Code" class="method-signature"
169
- onclick="popupCode('Integer.src/M000012.html');return false;">
167
+ <a href="Integer.src/M000003.html" target="Code" class="method-signature"
168
+ onclick="popupCode('Integer.src/M000003.html');return false;">
170
169
  <span class="method-name">random_range</span><span class="method-args">(gen, lo=@@min_bound, hi=@@max_bound)</span>
171
170
  </a>
172
171
  </div>
173
172
 
174
173
  <div class="method-description">
175
174
  <p>
176
- this method is needed to include <a href="HsRandom.html">HsRandom</a>.
175
+ this method is needed to include HsRandom.
177
176
  </p>
178
177
  </div>
179
178
  </div>
180
179
 
181
180
  <h3 class="section-bar">Public Instance methods</h3>
182
181
 
183
- <div id="method-M000013" class="method-detail">
184
- <a name="M000013"></a>
182
+ <div id="method-M000004" class="method-detail">
183
+ <a name="M000004"></a>
185
184
 
186
185
  <div class="method-heading">
187
- <a href="Integer.src/M000013.html" target="Code" class="method-signature"
188
- onclick="popupCode('Integer.src/M000013.html');return false;">
186
+ <a href="Integer.src/M000004.html" target="Code" class="method-signature"
187
+ onclick="popupCode('Integer.src/M000004.html');return false;">
189
188
  <span class="method-name">coarbitrary</span><span class="method-args">(g)</span>
190
189
  </a>
191
190
  </div>
192
191
 
193
192
  <div class="method-description">
194
193
  <p>
195
- this method is needed to use <a href="Coarbitrary.html">Coarbitrary</a>.
194
+ this method is needed to use Coarbitrary.
196
195
  </p>
197
196
  </div>
198
197
  </div>