helpers4 0.0.6

General-purpose Rust helpers, one crate, one feature per module (string, array, ...)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// This file is part of helpers4.
// Copyright (C) 2025 baxyz
// SPDX-License-Identifier: LGPL-3.0-or-later

use super::*;

#[test]
fn is_a_plausible_current_time() {
    assert!(unix_now().unwrap() > 1_700_000_000);
}

#[test]
fn does_not_go_backwards_between_two_calls() {
    let first = unix_now().unwrap();
    let second = unix_now().unwrap();
    assert!(second >= first);
}