ZenVoich / test

Motoko testing library to run tests with mops
MIT License
6 stars 3 forks source link

Typo in Code Snippet in readme.md for expect.option Example #6

Closed fenixbul closed 10 months ago

fenixbul commented 10 months ago

I've noticed a small typo in the readme.md file, specifically in the code snippet provided for expect.option. The typo is in the variable name used in the example for an optional custom type. The variable is declared as "val", but later referenced as "v". This might cause confusion for users trying to understand or run the example code.

expect.option

  // ... previous code ...

  let val = ?{x = 1; y = 2};

  expect.option(v, showMyType, equalMyType).notEqual(null);
  expect.option(v, showMyType, equalMyType).isSome(); // != null
  expect.option(v, showMyType, equalMyType).equal(?{x = 1; y = 2});
ZenVoich commented 10 months ago

Thank you!

Fixed.