aboutsummaryrefslogtreecommitdiff
path: root/tests/lib.rs
blob: 8ab75f6206522f9c98638d35c9fffb86e990dda8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Copyright (C) 2019 Robin Krahl <robin.krahl@ireas.org>
// SPDX-License-Identifier: MIT

mod util;

#[test]
fn get_library_version() {
    let version = unwrap_ok!(nitrokey::get_library_version());

    assert!(version.git.is_empty() || version.git.starts_with("v"));
    assert!(version.major > 0);
}