Ad
  • Default User Avatar

    How about random tests?
    There's not much point in using TS if everything is any. The input should be something like type NestedNumbers = (number | NestedNumbers)[].

  • Custom User Avatar

    It's not really "cheating" if you only test the properties of sorting and not bubble sort in particular.

    If you want to test bubble sorting is implemented correctly, you need to design tests that test specifically that.

  • Default User Avatar

    It's my first one, how can i disable the built in higher order functions.

  • Default User Avatar
    • Easy to cheat (no strict checks to use bubble sort, or good reason for it)
    • No random tests
    • Duplicate / Not a new idea.