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

#[test]
fn get_library_version() {
    let version = nitrokey::get_library_version().unwrap();

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