optionstratlib 0.16.2

OptionStratLib is a comprehensive Rust library for options trading and strategy development across multiple asset classes.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use optionstratlib::version;

#[test]
fn test_version() {
    // Test that the version function returns a non-empty string
    let version_str = version();
    assert!(!version_str.is_empty());

    // Test that the version matches the expected format (e.g., "0.5.1")
    assert!(version_str.chars().any(|c| c.is_ascii_digit()));
    assert!(version_str.contains('.'));

    // Verify it matches the cargo package version
    assert_eq!(version_str, env!("CARGO_PKG_VERSION"));
}