mirror of
https://github.com/InsanusMokrassar/krontab.git
synced 2025-11-30 10:05:49 +00:00
rewrite system with offsets
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package dev.inmo.krontab.utils
|
||||
|
||||
import com.soywiz.klock.DateTimeTz
|
||||
import dev.inmo.krontab.KronSchedulerTz
|
||||
import dev.inmo.krontab.buildSchedule
|
||||
import dev.inmo.krontab.internal.offsetRange
|
||||
import kotlinx.coroutines.*
|
||||
@@ -84,9 +85,8 @@ class StringParseTest {
|
||||
|
||||
runTest {
|
||||
for (i in offsetRange) {
|
||||
val kronScheduler = buildSchedule("* * 10 * * ${i}o")
|
||||
val kronScheduler = buildSchedule("* * 10 * * ${i}o") as KronSchedulerTz
|
||||
val next = kronScheduler.next(now)
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ package dev.inmo.krontab.utils
|
||||
|
||||
import com.soywiz.klock.*
|
||||
import dev.inmo.krontab.builder.buildSchedule
|
||||
import dev.inmo.krontab.next
|
||||
import kotlin.test.Test
|
||||
import kotlin.test.assertEquals
|
||||
|
||||
|
||||
Reference in New Issue
Block a user