Searched refs:getFloatOrNull (Results 1 – 2 of 2) sorted by relevance
35 assertThat(settings.getFloatOrNull(floatKey)).isEqualTo(floatVal) in testExpectedValues_returned()43 assertThat(settings.getFloatOrNull("unknown")).isNull() in testUndefinedValues_returnNull()59 assertThat(settings.getFloatOrNull(stringKey)).isNull() in testMismatchedTypes()62 assertThat(settings.getFloatOrNull(longKey)).isWithin(0.00001f).of(Long.MAX_VALUE.toFloat()) in testMismatchedTypes()
84 fun getFloatOrNull(name: String): Float? = getStringOrNull(name)?.toFloatOrNull() method