Created
July 19, 2013 11:27
-
-
Save AdamSaleh/6038484 to your computer and use it in GitHub Desktop.
Data driven
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I think you can generate the data something like this | |
(def data-include-exclude | |
[[true "Exclude Errata: %s" "Exclude Errata: RHBA, RHSA" "Exclude Errata: Enhancement: 2013-07-02 - 2013-07-03"] | |
[false "Include Errata: %s" "Include Errata: RHBA, RHSA" "Include Errata: Enhancement: 2013-07-02 - 2013-07-03"]]) | |
(def data-dates [["07/02/2013" "07/03/2013"] | |
["07/02/2014" "07/03/2014"]]) | |
(def data (for [incl-excl data-include-exclude | |
dates data-dates] | |
(into incl-excl dates))) | |
;then just use data instead of the data :D |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment