From 39283057039908acf41ee0a3f658cbfe04981d0a Mon Sep 17 00:00:00 2001
From: "[1000i100] Millicent Billette" <git@1000i100.fr>
Date: Sun, 6 Oct 2019 09:48:37 +0200
Subject: [PATCH] [test] bc-db-reader: add default_personal_difficulty

---
 lib/modules-lib/bc-db-reader/src/current_frame.rs | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/lib/modules-lib/bc-db-reader/src/current_frame.rs b/lib/modules-lib/bc-db-reader/src/current_frame.rs
index 3f8844b1..74482e60 100644
--- a/lib/modules-lib/bc-db-reader/src/current_frame.rs
+++ b/lib/modules-lib/bc-db-reader/src/current_frame.rs
@@ -155,6 +155,14 @@ mod tests {
         assert_eq!(0, handicap(1, 50));
     }
 
+    #[test]
+    fn test_default_personal_difficulty() {
+        assert_eq!(PersonalDifficulty {
+            exclusion_factor: 1,
+            handicap: 0,
+        },PersonalDifficulty::default());
+    }
+
     #[test]
     fn test_compute_personal_difficulty_no_penality() {
         assert_eq!(
-- 
GitLab