Elixir, Bitcoin, Testing, Software Development, Programming.
Next, we’ll test that long binaries are rejected: property "rejects long binaries" do check all bits <- integer(1..8), bytes <- binary(min_length: 32), data = <<bytes::binary, 0::size(bits)>> do assert Bip39.Mnemonic.encode(data) == {:error, :invalid_data} end end And finally, we’ll test that all