From 679791064169a37ad9d88b910b7553ebf7133c07 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Wed, 16 Jan 2019 20:28:31 +0000 Subject: Document and test empty Git versions If libnitrokey has not been built from a clone of the Git repository, the Git version string may be empty. --- tests/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/lib.rs b/tests/lib.rs index 06de0ad..c92e224 100644 --- a/tests/lib.rs +++ b/tests/lib.rs @@ -2,7 +2,6 @@ fn get_library_version() { let version = nitrokey::get_library_version(); - assert!(!version.git.is_empty()); - assert!(version.git.starts_with("v")); + assert!(version.git.is_empty() || version.git.starts_with("v")); assert!(version.major > 0); } -- cgit v1.2.3