Crates.io | ver_count |
lib.rs | ver_count |
version | 0.1.1 |
source | src |
created_at | 2024-06-13 10:23:37.316645 |
updated_at | 2024-06-13 10:23:37.316645 |
description | ver_count |
homepage | https://github.com/i18n-site/rust/tree/main/ver_count |
repository | https://github.com/i18n-site/rust.git |
max_upload_size | |
id | 1270487 |
size | 4,058 |
use aok::{Result, OK};
use static_init::constructor;
use ver_count::VerCount;
#[constructor(0)]
extern "C" fn init() {
loginit::init()
}
// #[tokio::test]
// async fn test() -> Result<()> {
// info!("{}", 123456);
// OK
// }
#[test]
fn test() -> Result<()> {
let ver_li = ["0.1.0", "0.1.3", "0.1.2", "0.1.2"];
let mut vc = VerCount::default();
for i in ver_li {
vc.push(i);
}
println!("{:?}", vc.map());
OK
}