MCPcopy Create free account
hub / github.com/cosdata/cosdata / test_decimal_to_binary_vec

Function test_decimal_to_binary_vec

src/metadata/mod.rs:245–248  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

243
244 #[test]
245 fn test_decimal_to_binary_vec() {
246 assert_eq!(vec![0, 1, 1, 1], decimal_to_binary_vec(7, 4));
247 assert_eq!(vec![0, 0, 1, 1], decimal_to_binary_vec(3, 4));
248 }
249
250 #[test]
251 fn test_gen_combinations() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected