lib/queencheck.rb in queencheck-0.1.2 vs lib/queencheck.rb in queencheck-1.0.0

- old
+ new

@@ -1,17 +1,20 @@ -require "pathname" -$:.unshift Pathname.new(File.expand_path('../', __FILE__)) +# QueenCheck is Test Utility Library like Quick Check in Haskell. +# +# == Examples: +# +# QueenCheck(Integer, Integer) do | x, y | +# x + y == y + x +# end +module QueenCheck + # QueenCheck Version + VERSION = '1.0.0' +end +$: << File.dirname(File.expand_path(__FILE__)) require 'queencheck/core' require 'queencheck/arbitrary' +require 'queencheck/gen' +require 'queencheck/condition' +require 'queencheck/exception' -require 'queencheck/integer' -require 'queencheck/float' -require 'queencheck/boolean' -require 'queencheck/array' -require 'queencheck/string' - -module QueenCheck - unless defined? Version - Version = `cat #{Pathname.new(File.expand_path('../../', __FILE__))}/VERSION`.strip - end -end +require 'queencheck/arbitraries/all'