Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

Commit ac8d2fc

Browse files
committed
Test KDoc
1 parent f56b926 commit ac8d2fc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/src/test/kotlin/at/bitfire/ical4android/validation/FixInvalidDayOffsetPreprocessorTest.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ import java.time.Duration
1212

1313
class FixInvalidDayOffsetPreprocessorTest {
1414

15+
/**
16+
* Calls [FixInvalidDayOffsetPreprocessor.fixString] and asserts the result is equal to [expected].
17+
*
18+
* @param expected The expected result
19+
* @param testValue The value to test
20+
* @param parseDuration If `true`, [Duration.parse] is called on the fixed value to make sure it's a valid duration
21+
*/
1522
private fun assertFixedEquals(expected: String, testValue: String, parseDuration: Boolean = true) {
1623
// Fix the duration string
1724
val fixed = FixInvalidDayOffsetPreprocessor.fixString(testValue)

0 commit comments

Comments
 (0)