Qualified's blog

By Qualified, 4 years ago, In English

Read title... Also, if you generate multiple test cases, how would you do it on a popup window. For example, Dev-C++ has the compile button which if you press it, it opens up a popup window where you can put in data. BTW, I am using GVIM. I saw Errichto's video, but he uses file input and output. Please help. 87387531. This test case consists of 2 strings both of length 1000.

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

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Try to find a small case that breaks your code. Even if you did have a large test case that breaks your code you're probably not going to be able to debug it.

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

    Just manually write small test cases and compare?

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

      That usually works for me.

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

        That takes some time...

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

          If you don't want to spend time on things, do something easier -- like drinking a soda

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

            That feeling when stopping to relax and drink a soda in contest is actually my most effective method of debugging code...