libobil's blog

By libobil, history, 3 years ago, In English

It would be very helpful if you could provide me with some kind of documentation.

Thanks in advance!

  • Vote: I like it
  • +22
  • Vote: I do not like it

»
3 years ago, # |
  Vote: I like it +6 Vote: I do not like it
  • »
    »
    3 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Thanks, but I've already checked those, and I don't think they cover all the capabilities of testlib.

    • »
      »
      »
      3 years ago, # ^ |
        Vote: I like it +6 Vote: I do not like it

      sorry idk of any other sources other than a lot of posts with 'testlib' tag and github link

»
3 years ago, # |
Rev. 2   Vote: I like it +18 Vote: I do not like it

https://mirror.codeforces.com/testlib

On the right side, you should see Generators, Validators, Checkers and Interactors. That should be almost everything you need.

  • »
    »
    3 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Thank you!

    • »
      »
      »
      3 years ago, # ^ |
        Vote: I like it +8 Vote: I do not like it

      Another thing I forgot to mention: at the beginning of testlib.h, on the latestFeatures array, you can find some pretty useful features that aren't mentioned in those blogs, such as rnd.partition(useful for, for example, randomly distributing the values of $$$n$$$ over $$$t$$$ test cases while making multitest with a limit on the sum of $$$n$$$) and opts(to make the command line for generators a lot more readable than just numbers one after another)