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

main.net.jqwik.kotlin.api.StringArbitraryExtensions.kt Maven / Gradle / Ivy

There is a newer version: 1.9.1
Show newest version
package net.jqwik.kotlin.api

import net.jqwik.api.arbitraries.StringArbitrary
import org.apiguardian.api.API

/**
 * Set the minimum and maximum allowed length of generated strings.
 */
@API(status = API.Status.EXPERIMENTAL, since = "1.6.0")
fun StringArbitrary.ofLength(range: IntRange): StringArbitrary = ofMinLength(range.first).ofMaxLength(range.last)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy