class Crowbar::Mutators::FloatAnomalies

Overview

Injects IEEE-754 floating-point edge cases and extreme exponents

Defined in:

crowbar/mutators/stress.cr

Constant Summary

FLOAT_BOUNDARIES = ["NaN", "-NaN", "+Infinity", "-Infinity", "Infinity", "0.0", "-0.0", "1e308", "-1e308", "1e-308", "1e-324", "2.2250738585072014e-308", "1.7976931348623157e+308", "1e999999999"]

Instance Method Summary

Instance methods inherited from class Crowbar::Mutator

adjust_score(delta : Int32) adjust_score, aliases : Array(String) aliases, description : String description, effective_weight : Float64 effective_weight, mutate(context : Context, buffer : Buffer, target_range : Tuple(Int32, Int32) | Nil = nil) : Tuple(Bool, Int32) mutate, name : String name, score : Int32 score, score=(score : Int32) score=, weight : Float64 weight, weight=(weight : Float64) weight=

Constructor methods inherited from class Crowbar::Mutator

new(weight : Float64 = 1.0) new

Instance Method Detail

def description : String #

def mutate(context : Context, buffer : Buffer, target_range : Tuple(Int32, Int32) | Nil = nil) : Tuple(Bool, Int32) #

def name : String #