Permalink
Cannot retrieve contributors at this time
Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign up
Fetching contributors…
| module Tests.EthABI exposing (..) | |
| import Expect exposing (Expectation) | |
| import Test exposing (..) | |
| import Tests.EthABI.Fuzz | |
| suite : Test | |
| suite = | |
| describe "Round-robin tests to ensure encoding + decoding works as intended." | |
| [ fuzz Tests.EthABI.Fuzz.encoder_decoder_triple | |
| "Encoding <-> Decoding Round-Robin" | |
| (\( input_str, encoded_hexstr, decoded_str ) -> | |
| let | |
| _ = Debug.log "triple" (input_str, encoded_hexstr, decoded_str) | |
| in | |
| Expect.equal input_str decoded_str | |
| |> (Expect.onFail <| | |
| """ | |
| The input string: | |
| """ | |
| ++ input_str ++ | |
| """ | |
| did not match decoded output: | |
| """ | |
| ++ decoded_str ++ | |
| """ | |
| The intermediate encoding was: | |
| """ | |
| ++ toString encoded_hexstr ++ | |
| """ | |
| ) | |
| """ | |
| )) | |
| ] |