Skip to content

Exercise 2.4.1.C was changed, but the corresponding Rust file was not updated accordingly? #130

@michielp1807

Description

@michielp1807

It seems that the original 2.4.1.C was removed some time ago in this merge. However, the test case for the old 2.4.1.C is still in the Rust file, causing the test cases to be mislabeled, while the exercises skip from C to E.

Furthermore, some test cases from the other exercises use the as_ref() functionality that was supposed to be implemented by the old 2.4.1.C, which means that these test cases do not work unless you implement as_ref() yourself without the hints and explanations from the original 2.4.1.C.

Some other smaller issues with 2.4.1:

  • There's a typo in the comment for the test it_compiles: "as is can never"
  • The it_removes test for the .remove function calls dbg!(&vec), but the Debug trait is not implemented or explained in the exercise (this line could just be removed, or we could derive the Debug trait for LocalStorageVec)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions