mxfactorial icon indicating copy to clipboard operation
mxfactorial copied to clipboard

cadet todo: fix the rust it_creates_profile_ids_from_vec unit test

Open mxfactorial opened this issue 1 year ago • 0 comments

the ProfileIds struct wraps a HashMap<String, i32> of account names and profile ids

ProfileIds implements the From trait for a vec of string tuples, e.g. vec![("some_account", "1"), ("another_account", "2")]

a failing it_creates_profile_ids_from_vec unit test was added

instructions

  1. comment your request to fork
  2. fork and clone after receiving permission (uncheck "Copy the develop branch only" when forking)
  3. cd mxfactorial
  4. git checkout it_creates_profile_ids_from_vec
  5. cargo test -p types --lib it_creates_profile_ids_from_vec
  6. create a branch
  7. fix test
  8. submit a pull request with your fix

current

running 1 test
test account::tests::it_creates_profile_ids_from_vec ... FAILED

expected

running 1 test
test account::tests::it_creates_profile_ids_from_vec ... ok

mxfactorial avatar May 06 '24 03:05 mxfactorial