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

Function test_format_tokens_thousands

atomic-core/src/change/attestation.rs:1710–1714  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1708
1709 #[test]
1710 fn test_format_tokens_thousands() {
1711 assert_eq!(format_tokens(1_000), "1.0k");
1712 assert_eq!(format_tokens(8_400), "8.4k");
1713 assert_eq!(format_tokens(526_900), "526.9k");
1714 }
1715
1716 #[test]
1717 fn test_format_tokens_millions() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected