Блог пользователя angel_of_death

Автор angel_of_death, 8 лет назад, По-английски

Hello all, I'd like to share with you a google chrome extension called Sample Case Tester.

Like the name says, it helps you in easily testing your code against the given sample cases for any problem, both in a contest and in practice. It adds an editor to the problem page where you need to just paste your code and run it to see if your code passes the given sample cases for that problem or not.

If your program is giving wrong output for one or more of the sample cases, it'll show you that case along with your program's output and also the expected output. If there are any compilation or runtime errors, it'll show those as well. And ofcourse, if your program gives the right output for all the cases, it'll tell you that your code passed!

It can be very helpful to save time during contests and also when a problem has multiple sample cases and/or very long inputs and outputs.

Currently it supports C, C++, Java, Python, Ruby and Perl. This is the very first version of the extension which I released just yesterday. More languages will be added soon along with a lot more useful functionality in the upcoming versions and the extension will update itself whenever a new version is released.

Another thing I want to mention is that the extension currently does not check your program for TLE. This is one of the things in my to-do list for the coming future. There's a fixed amount of common execution time limit however which I've set in case the code has things like infinite loops.

I'm aware of other tools like hightail but this is just my own addition to the community which is extremely convenient to install and use in a way that you don't even need to switch tabs or switch to a different program and everything you need will be right there on the problem page in the browser itself.

So do check it out, rate it on the webstore and let me know if you guys find any bugs. And if you like it, please consider sharing it with your friends. Thank you! LINK HERE

EDIT: For problems which have multiple correct outputs, it'll say your code failed unless it gets the same output as the sample one. So watch out for that.

UPDATE: I've chosen to DISCONTINUE this extension. It will be unpublished from the chrome store so no new users can install it & will no longer work for existing users either. The reason I chose to do this is because I had built this extension purely out of passion & I'd been spending 20$/month out of my own pocket for the past year to keep the extension running. I was not making any money from the extension & neither did I intend to. My only goal was to make something that'd be helpful to people. When my remote compiler gets overloaded especially during a contest when there are multiple submissions, it's natural that the compiler takes too long to execute your code & might fail with various errors. I was expecting people to understand this & be forgiving which they clearly were not. Also, not only were the users not thankful for something I'd been providing for free at the expense of my own money, some of them were downvoting my replies here when I try to explain my situation, leaving bad reviews & ratings on the chrome store & demanding that the extension should always work for them 24/7 as if they'd paid me for this service. Considering all the above points I'm no longer going to support this extension.

Полный текст и комментарии »

  • Проголосовать: нравится
  • +128
  • Проголосовать: не нравится