Elixir, Bitcoin, Testing, Software Development, Programming.
assert Bip39.Mnemonic.decode(mnemonic) == {:ok, data} end Now our test passes, as expected! Tightening Up our Encoding Process While our Bip39.Mnemonic.encode/1 functions works when passed the correct data, it’s probably not a good idea to assume that the developer knows what constitutes “good