MCPcopy Create free account
hub / github.com/Noumena-Network/code / parses_python_versions

Function parses_python_versions

rust/py_repl_host/src/main.rs:479–483  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

477
478 #[test]
479 fn parses_python_versions() {
480 assert_eq!(parse_python_version("3.10.0"), Some(vec![3, 10, 0]));
481 assert_eq!(parse_python_version("3.12.3"), Some(vec![3, 12, 3]));
482 assert_eq!(parse_python_version("3.10"), None);
483 }
484
485 #[test]
486 fn compares_python_versions() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected