random-strings-0.1.1.0: Generate random strings with specific qualities

Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.RandomStrings.FlipCase

Description

A helper for randomly changing the case in strings. Useful for generating test-cases for case-insensitive matching.

Synopsis

Documentation

flipCase :: Char -> Char Source

Toggle the case of a Char.

flipCaseString :: String -> String Source

Toggle character case for a String.

randomFlipCase Source

Arguments

:: Rational

range 0 to 1; chance of flipping case

-> Char

Char to flip

-> IO Char 

Randomly flip the case of a Char.

randomFlipCaseString Source

Arguments

:: Rational

range 0 to 1; chance of flipping case

-> String

original String

-> IO String 

Randomly flip the case of a String.