aboutsummaryrefslogtreecommitdiffstats
path: root/tests/tests.rs
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2024-08-26 22:43:34 -0700
committerPinapelz <yukais@pinapelz.com>2024-08-26 22:52:18 -0700
commit255de158fb98a116f6fcecf1c9dbd26d968eb450 (patch)
tree6b748e4716adbd79c5ecddf31de94635d9fcfa66 /tests/tests.rs
parentdade2699b66c874208e4b036f2ebe80831601b7b (diff)
add unittests for eorzea_time functions
Diffstat (limited to 'tests/tests.rs')
-rw-r--r--tests/tests.rs20
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/tests.rs b/tests/tests.rs
deleted file mode 100644
index 58d409e..0000000
--- a/tests/tests.rs
+++ /dev/null
@@ -1,20 +0,0 @@
-extern crate ffxiv_chronowatcher;
-
-use ffxiv_chronowatcher::eorzean_time::{convert_to_eorzean_date, EorzeanDate};
-
-mod time_tests {
- use super::*;
- #[test]
- fn test_convert_to_eorzean_date() {
- let unix_timestamp = 1661114514;
- let eorzean_date = convert_to_eorzean_date(unix_timestamp);
- assert_eq!(eorzean_date.years, 1);
- assert_eq!(eorzean_date.suns, 12);
- assert_eq!(eorzean_date.bells, 12);
- assert_eq!(eorzean_date.minutes, 4);
- assert_eq!(eorzean_date.guardian, "Halone");
- assert_eq!(eorzean_date.phase, "Waxing Gibbous");
- assert_eq!(eorzean_date.moon, "First Astral Moon");
- }
-}
-
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage