Skip to content

Fahrenheit

Giuseppe Cannella edited this page Jan 13, 2019 · 2 revisions
Type name example
Fahrenheit -2.2 °F
import com.github.gekomad.regexcollection.Fahrenheit             
import com.github.gekomad.regexcollection.Validate.validate      
                                                                 
assert(validate[Fahrenheit]("133") == None)                      
assert(validate[Fahrenheit]("2 °F") == Some("2 °F"))             
assert(validate[Fahrenheit]("+2 °F") == Some("+2 °F"))           
assert(validate[Fahrenheit]("-2.2 °F") == Some("-2.2 °F"))                                                                                                                                                                             

Clone this wiki locally