libobil's blog

By libobil, history, 2 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

»
2 years ago, # |
  Vote: I like it +6 Vote: I do not like it
  • »
    »
    2 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.

    • »
      »
      »
      2 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

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

https://codeforces.com/testlib

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

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

    Thank you!

    • »
      »
      »
      2 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)