All Downloads are FREE. Search and download functionalities are using the official Maven repository.

spock.genesis.generators.values.DoubleGenerator.groovy Maven / Gradle / Ivy

Go to download

Mostly lazy data generators for property based testing using the Spock test framework

The newest version!
package spock.genesis.generators.values

import groovy.transform.CompileStatic
import spock.genesis.generators.InfiniteGenerator
import spock.genesis.generators.InfiniteIterator

@CompileStatic
class DoubleGenerator extends InfiniteGenerator {

    InfiniteIterator iterator() {
        new InfiniteIterator() {
            @Override
            Double next() {
                random.nextDouble()
            }
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy