MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_format_count_plural

Function test_format_count_plural

atomic-cli/src/commands/mod.rs:960–964  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

958
959 #[test]
960 fn test_format_count_plural() {
961 assert_eq!(format_count(0, "file", "files"), "0 files");
962 assert_eq!(format_count(2, "file", "files"), "2 files");
963 assert_eq!(format_count(100, "change", "changes"), "100 changes");
964 }
965
966 // -------------------------------------------------------------------------
967 // DOT_DIR Constant Test

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected