Download codex-rs/app-server-daemon/src/managed_install_tests.rs from SaylorTwift/codex: direct link, hf CLI and curl.
- Browser
- Download file 654 Bytes
-
https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/app-server-daemon/src/managed_install_tests.rs
- Command line
-
hf download hf://SaylorTwift/codex/codex-rs/app-server-daemon/src/managed_install_tests.rs
-
curl -L -o managed_install_tests.rs https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/app-server-daemon/src/managed_install_tests.rs
654 Bytes
| use pretty_assertions::assert_eq; | |
| use super::executable_identity_from_bytes; | |
| use super::parse_codex_version; | |
| fn parses_codex_cli_version_output() { | |
| assert_eq!( | |
| parse_codex_version("codex 1.2.3\n").expect("version"), | |
| "1.2.3" | |
| ); | |
| } | |
| fn rejects_malformed_codex_cli_version_output() { | |
| assert!(parse_codex_version("codex\n").is_err()); | |
| } | |
| fn executable_identity_uses_binary_contents() { | |
| let old = executable_identity_from_bytes(b"old"); | |
| let same = executable_identity_from_bytes(b"old"); | |
| let new = executable_identity_from_bytes(b"new"); | |
| assert_eq!(old, same); | |
| assert_ne!(old, new); | |
| } | |