moonbitstack/moonstl/spec does not have a README file
fn hash_seed() -> Inttest {
let a = @spec.hash_seed()
let b = @spec.hash_seed()
@test.assert_eq(a, b)
}fn hash_seed_from(bytes : BytesView) -> Inttest {
@test.assert_eq(
@spec.hash_seed_from(b"moonstl"),
@spec.hash_seed_from(b"moonstl"),
)
@test.assert_not_eq(
@spec.hash_seed_from(b"moonstl"),
@spec.hash_seed_from(b"moonst"),
)
}fn hash_seed_is_random() -> Booltest {
let _ = @spec.hash_seed()
let random = @spec.hash_seed_is_random()
@test.assert_eq(random, @spec.hash_seed_is_random())
}Install
Download zipData structures and algorithms the MoonBit core library leaves out.