Skip to content

Doctest required #142

Closed
Closed

Description

@itsvinayak

it will be good if algorithms have Doctest's https://www.npmjs.com/package/doctest

Activity

  1. added
    feature
    help wanted
    on May 4, 2020
  2. cclauss commented on May 12, 2020

    @cclauss
    Member

    Which files in this repo currently have doctests?
    It would be good to have a list of examples in this repo that contributors could review.

  3. itsvinayak commented on May 12, 2020

    @itsvinayak
    MemberAuthor

    @cclauss currently none of the files have Doctest

  4. cclauss commented on May 12, 2020

    @cclauss
    Member

    Todos:

    • Add doctests to at least two algorithms in this repo BogoSort.js: Simplify Array.isSorted() and add doctests #171
    • Help at least one contributor to add doctests to a new algorithm contribution
    • Discuss how difficult it was to complete 1. and 2.
    • Decide if we should make doctests a requirement of new contributions to this repo.
  5. itsvinayak commented on May 12, 2020

    @itsvinayak
    MemberAuthor

    more people of the community should discuss this issue

  6. added a commit that references this issue on May 18, 2020
  7. nandanvasudevan commented on Aug 2, 2020

    @nandanvasudevan
    Contributor

    Can we update the package.json with DocTest?
    It's really easy to use especially for everything in this repo.

  8. cclauss commented on Aug 2, 2020

    @cclauss
    Member

    update the package.json with DocTest?

    Done in 4cbdc9e

  9. 17 remaining items

  10. mhihasan commented on Jun 7, 2021

    @mhihasan
    Contributor

    Some files have jest tests. Should we remove those jest tests and add doctest instead? Because, current doctest version is throwing error on export statement, though next release might fix this

  11. cclauss commented on Jun 8, 2021

    @cclauss
    Member

    Please do not remove tests. Contributors should have the freedom to choose to test with doctest or jest. Contibutors should not have the freedom to have no tests at all.

  12. raklaptudirm commented on Jun 8, 2021

    @raklaptudirm
    Member

    @cclauss We still haven't settled on the issues of doctests failing because some files have none.

  13. Ameya101 commented on Jul 12, 2021

    @Ameya101

    Add it in Contributing.md dont create a new file

  14. defaude commented on Oct 5, 2021

    @defaude
    Contributor

    @raklaptudirm I recommend we close this issue in favour of #742

  15. added
    wontfix
    and removed
    feature
    help wanted
    on Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

wontfix

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions