Skip to content

Commit

Permalink
chore: naming
Browse files Browse the repository at this point in the history
  • Loading branch information
yamilmedina committed Mar 24, 2024
1 parent 4acb5ec commit 5ddb3b1
Showing 1 changed file with 49 additions and 49 deletions.
98 changes: 49 additions & 49 deletions src/test/kotlin/io/github/yamilmedina/kron/NaturalKronParserTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,55 +16,55 @@ class NaturalKronParserTest {
companion object {

enum class TestParams(val input: String, val expected: String) {
PARAM_1("@yearly", "0 0 1 1 *"),
PARAM_2("@annually", "0 0 1 1 *"),
PARAM_3("@monthly", "0 0 1 * *"),
PARAM_4("@weekly", "0 0 * * 0"),
PARAM_5("@daily", "0 0 * * *"),
PARAM_6("@midnight", "0 0 * * *"),
PARAM_7("@hourly", "0 * * * *"),
PARAM_8("each day", "0 0 * * *"),
PARAM_9("every day", "0 0 * * *"),
PARAM_10("daily", "0 0 * * *"),
PARAM_11("every day at 3 AM", "0 3 * * *"),
PARAM_12("5am", "0 5 * * *"),
PARAM_13("daily at 5am", "0 5 * * *"),
PARAM_14("every friday at 5am", "0 5 * * 5"),
PARAM_15("daily at 17:30", "30 17 * * *"),
PARAM_16("every week", "0 0 * * 0"),
PARAM_17("weekly", "0 0 * * 0"),
PARAM_18("every minute", "* * * * *"),
PARAM_19("every 5 minutes", "*/5 * * * *"),
PARAM_20("every 30 minutes", "*/30 * * * *"),
PARAM_21("every month", "0 0 1 * *"),
PARAM_22("monthly", "0 0 1 * *"),
PARAM_23("every Monday", "0 0 * * 1"),
PARAM_24("every Wednesday", "0 0 * * 3"),
PARAM_25("every Friday", "0 0 * * 5"),
PARAM_26("every hour", "0 * * * *"),
PARAM_27("every 6 hours", "0 */6 * * *"),
PARAM_28("hourly", "0 * * * *"),
PARAM_29("every year", "0 0 1 1 *"),
PARAM_30("yearly", "0 0 1 1 *"),
PARAM_31("annually", "0 0 1 1 *"),
PARAM_32("every day at 9am", "0 9 * * *"),
PARAM_33("every day at 5pm", "0 17 * * *"),
PARAM_34("every day at 5:45pm", "45 17 * * *"),
PARAM_35("every day at 17:00", "0 17 * * *"),
PARAM_36("every day at 17:25", "25 17 * * *"),
PARAM_37("5:15am every Tuesday", "15 5 * * 2"),
PARAM_38("7pm every Thursday", "0 19 * * 4"),
PARAM_39("every May", "0 0 1 5 *"),
PARAM_40("every december", "0 0 1 12 *"),
PARAM_41("midnight", "0 0 * * *"),
PARAM_42("midnight on tuesdays", "0 0 * * 2"),
PARAM_43("every 5 minutes on Tuesdays", "*/5 * * * 2"),
PARAM_44("noon", "0 12 * * *"),
PARAM_45("every 25th", "0 0 25 * *"),
PARAM_46("every 3rd of January", "0 0 3 1 *"),
PARAM_47("11pm every 3rd of december", "0 23 3 12 *"),
PARAM_48("every day at 17:01", "1 17 * * *"),
PARAM_49("every day at 5:01pm", "1 17 * * *"),
CASE_1("@yearly", "0 0 1 1 *"),
CASE_2("@annually", "0 0 1 1 *"),
CASE_3("@monthly", "0 0 1 * *"),
CASE_4("@weekly", "0 0 * * 0"),
CASE_5("@daily", "0 0 * * *"),
CASE_6("@midnight", "0 0 * * *"),
CASE_7("@hourly", "0 * * * *"),
CASE_8("each day", "0 0 * * *"),
CASE_9("every day", "0 0 * * *"),
CASE_10("daily", "0 0 * * *"),
CASE_11("every day at 3 AM", "0 3 * * *"),
CASE_12("5am", "0 5 * * *"),
CASE_13("daily at 5am", "0 5 * * *"),
CASE_14("every friday at 5am", "0 5 * * 5"),
CASE_15("daily at 17:30", "30 17 * * *"),
CASE_16("every week", "0 0 * * 0"),
CASE_17("weekly", "0 0 * * 0"),
CASE_18("every minute", "* * * * *"),
CASE_19("every 5 minutes", "*/5 * * * *"),
CASE_20("every 30 minutes", "*/30 * * * *"),
CASE_21("every month", "0 0 1 * *"),
CASE_22("monthly", "0 0 1 * *"),
CASE_23("every Monday", "0 0 * * 1"),
CASE_24("every Wednesday", "0 0 * * 3"),
CASE_25("every Friday", "0 0 * * 5"),
CASE_26("every hour", "0 * * * *"),
CASE_27("every 6 hours", "0 */6 * * *"),
CASE_28("hourly", "0 * * * *"),
CASE_29("every year", "0 0 1 1 *"),
CASE_30("yearly", "0 0 1 1 *"),
CASE_31("annually", "0 0 1 1 *"),
CASE_32("every day at 9am", "0 9 * * *"),
CASE_33("every day at 5pm", "0 17 * * *"),
CASE_34("every day at 5:45pm", "45 17 * * *"),
CASE_35("every day at 17:00", "0 17 * * *"),
CASE_36("every day at 17:25", "25 17 * * *"),
CASE_37("5:15am every Tuesday", "15 5 * * 2"),
CASE_38("7pm every Thursday", "0 19 * * 4"),
CASE_39("every May", "0 0 1 5 *"),
CASE_40("every december", "0 0 1 12 *"),
CASE_41("midnight", "0 0 * * *"),
CASE_42("midnight on tuesdays", "0 0 * * 2"),
CASE_43("every 5 minutes on Tuesdays", "*/5 * * * 2"),
CASE_44("noon", "0 12 * * *"),
CASE_45("every 25th", "0 0 25 * *"),
CASE_46("every 3rd of January", "0 0 3 1 *"),
CASE_47("11pm every 3rd of december", "0 23 3 12 *"),
CASE_48("every day at 17:01", "1 17 * * *"),
CASE_49("every day at 5:01pm", "1 17 * * *"),
}
}

Expand Down

0 comments on commit 5ddb3b1

Please sign in to comment.