ikedaisuke / rushcheck Goto Github PK
View Code? Open in Web Editor NEWA lightweight (but tricky) random testing tool for Ruby
Home Page: http://rushcheck.rubyforge.org/
License: MIT License
A lightweight (but tricky) random testing tool for Ruby
Home Page: http://rushcheck.rubyforge.org/
License: MIT License
quotes from rubyforge.org as a ticket referred to #15957
http://rubyforge.org/tracker/index.php?func=detail&aid=15957&group_id=2027&atid=7885
Hi,
When I run the below program, I get an "NoMethodError: undefined method 'gen'". I have experimented, and notice
that the problem goes away as soon as I add a statement to the block so it returns a value.
My perception was that RushCheck::Claim does NOT check the block's return value. Is my perception incorrect, or is there
a bug in RushCheck?
Please your comment,
Thanks,
Frank
require 'rushcheck'
require 'test/unit'
def for_all(*cs, &f)
assert RushCheck::Claim.new(*cs, &f).check
end
class ArrayTest < Test::Unit::TestCase
def test_array
for_all(Integer) do |item|
array= Array.new
array.push item
assert !array.empty? # not ok
end
end
end
I need to limit the range of integers. I figured out how to do this in rantly with the range method. I have no idea how to in rushcheck.
Please add Ruby 1.9 support.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.