pub const FESTIVAL_VERSION: &str = concat!("v", env!("CARGO_PKG_VERSION"));
pub const FESTIVAL_NAME_VER: &str = concat!("Festival v", env!("CARGO_PKG_VERSION"));
pub const FESTIVAL: &str = "Festival";
pub const COMMIT: &str = include_str!("commit");
pub const BUILD: &str = if cfg!(debug_assertions) { "Debug" } else { "Release" };
pub const COPYRIGHT: &str =
r#"Festival is licensed under the MIT License.
For more information on the project, see link below:
<https://github.com/hinto-janai/festival>"#;
pub const DASH: &str = "--------------------------------------------";
pub const FESTIVAL_HEADER: [u8; 24] = [
45, 45, 45, 45, 45, 66, 69, 71, 73, 78, 32, 70, 69, 83, 84, 73, 86, 65, 76, 45, 45, 45, 45, 45 ];
pub const COLLECTION_VERSION: u8 = 1;
pub const STATE_VERSION: u8 = 1;
pub(crate) const OK: &str = " ... \x1b[1;92mOK\x1b[0m";
pub(crate) const SKIP: &str = " ... \x1b[1;97mSKIP\x1b[0m";
pub(crate) const FAIL: &str = " ... \x1b[1;91mFAIL\x1b[0m";
#[cfg(test)]
mod tests {
use crate::constants::*;
#[test]
fn version_is_semver() {
assert_eq!(FESTIVAL_VERSION.len(), 6);
}
#[test]
fn git_commit_eq_or_gt_40_chars() {
assert!(COMMIT.len() >= 40);
}
}