Missed init for ErrStop and ErrInvalidBase in protein-translation

Hi guys,

faced some difficulties during my practice, want to share it with you.

Both errors ErrStop and ErrInvalidBase were initiated in .meta/example.go, but are not visible from protein_translation_test.go. What requires you to put their initialization into code (I mean in the web editor mode).

I think it’s better to either move them to the right file and give student some description about them or remove these checks, because actually there isn’t specific information about those errors in case description and you are not able to achieve this test without diving deeper into github code.

Image

You’re not supposed to need to touch the example file. That’s more to verify the tests work. Exercise use Test Driven Development. You’re expected to run the tests, read the test failures, and update the code accordingly. This includes seeing any missing definitions and adding them to your code.

1 Like

Ok, got it