Method: Minitest.plugin_proptest_init
- Defined in:
- lib/minitest/proptest_plugin.rb
.plugin_proptest_init(options) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/minitest/proptest_plugin.rb', line 12 def self.plugin_proptest_init() %i[Int8 Int16 Int32 Int64 UInt8 UInt16 UInt32 UInt64 Float32 Float64 ASCIIChar Char Bool ].each do |const| unless Minitest::Assertions.const_defined?(const) ::Minitest::Assertions.const_set(const, ::Minitest::Proptest::Gen.const_get(const)) end end self.reporter << Proptest.reporter Proptest.set_seed([:seed]) if .key?(:seed) end |