Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. Site Bugs / Suggestions
  4. Pls encourage authors to include cppunit-like verification

Pls encourage authors to include cppunit-like verification

Scheduled Pinned Locked Moved Site Bugs / Suggestions
cssalgorithmsdebuggingtutorialquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    l_d_allan
    wrote on last edited by
    #1

    I am a HUGE fan of CodeProject, and very appreciate of the website. For my purposes, I consider it one of the most valuable resources on the Internet. Thanks! Several things would be helpful and often missing for many articles, especially those which involve algorithms: * Console app using the algorithm. I find these MUCH easier than gui's to figure out with a debugger to step-into and step-around. * Extensive, even exhaustive tests to provide a high degree of confidence that the submitted code actually works. I REALLY want to reuse their code and not "re-invent" the wheel, but I really often wonder how "bullet-proof" the code is. * I looked on the website for "Guidelines for Authors when Submitting Articles" but perhaps didn't look hard enough. EDIT ... found the webpage for Authors ... but would suggest those guidelines put more emphasis on providing test code For example, I'm trying to reuse some submitted code related to tokenizing. I found several applicable articles. It would be VERY valuable for the demo code to have something like the following to show that the code has been rigorously tested:

    char* testStringsWithTokens[] = {
    // Test Expected Result
    "a", "1 <1 a>",
    "a b c", "3 <1 a><1 b><1 c>",
    " a b c ", "3 <1 a><1 b><1 c>",
    "one two three", "3 <3 one><3 two><5 three>",
    "one\ttwo\tthree", "3 <3 one><3 two><5 three>",
    "one,two,,,, ,,, three,,,", "3 <3 one><3 two><5 three>",
    " one two three", "3 <3 one><3 two><5 three>",
    " one\ttwo\tthree", "3 <3 one><3 two><5 three>",
    " one,two,,,, ,,, three,,,", "3 <3 one><3 two><5 three>",
    " one two three ", "3 <3 one><3 two><5 three>",
    " one\ttwo\tthree ", "3 <3 one><3 two><5 three>",
    " one,two,,,, ,,, three,,, ","3 <3 one><3 two><5 three>",
    "one two three ", "3 <3 one><3 two><5 three>",
    "one\ttwo\tthree ", "3 <3 one><3 two><5 three>",
    "one,two,,,, ,,, three,,, ", "3 <3 one><3 two><5 three>",
    // snip .... more tests
    };

    I realize that it isn't CodeProject's responsibility to see that such test code is included, and I'm VERY appreciative for what is available .... but the authors who presumably want their code to be reused are perhaps less aware that they could be of the value of cppunit-like test code .... Again, thanks. -- modified at 17:40 Tuesday 28th February, 2006

    L 1 Reply Last reply
    0
    • L l_d_allan

      I am a HUGE fan of CodeProject, and very appreciate of the website. For my purposes, I consider it one of the most valuable resources on the Internet. Thanks! Several things would be helpful and often missing for many articles, especially those which involve algorithms: * Console app using the algorithm. I find these MUCH easier than gui's to figure out with a debugger to step-into and step-around. * Extensive, even exhaustive tests to provide a high degree of confidence that the submitted code actually works. I REALLY want to reuse their code and not "re-invent" the wheel, but I really often wonder how "bullet-proof" the code is. * I looked on the website for "Guidelines for Authors when Submitting Articles" but perhaps didn't look hard enough. EDIT ... found the webpage for Authors ... but would suggest those guidelines put more emphasis on providing test code For example, I'm trying to reuse some submitted code related to tokenizing. I found several applicable articles. It would be VERY valuable for the demo code to have something like the following to show that the code has been rigorously tested:

      char* testStringsWithTokens[] = {
      // Test Expected Result
      "a", "1 <1 a>",
      "a b c", "3 <1 a><1 b><1 c>",
      " a b c ", "3 <1 a><1 b><1 c>",
      "one two three", "3 <3 one><3 two><5 three>",
      "one\ttwo\tthree", "3 <3 one><3 two><5 three>",
      "one,two,,,, ,,, three,,,", "3 <3 one><3 two><5 three>",
      " one two three", "3 <3 one><3 two><5 three>",
      " one\ttwo\tthree", "3 <3 one><3 two><5 three>",
      " one,two,,,, ,,, three,,,", "3 <3 one><3 two><5 three>",
      " one two three ", "3 <3 one><3 two><5 three>",
      " one\ttwo\tthree ", "3 <3 one><3 two><5 three>",
      " one,two,,,, ,,, three,,, ","3 <3 one><3 two><5 three>",
      "one two three ", "3 <3 one><3 two><5 three>",
      "one\ttwo\tthree ", "3 <3 one><3 two><5 three>",
      "one,two,,,, ,,, three,,, ", "3 <3 one><3 two><5 three>",
      // snip .... more tests
      };

      I realize that it isn't CodeProject's responsibility to see that such test code is included, and I'm VERY appreciative for what is available .... but the authors who presumably want their code to be reused are perhaps less aware that they could be of the value of cppunit-like test code .... Again, thanks. -- modified at 17:40 Tuesday 28th February, 2006

      L Offline
      L Offline
      l_d_allan
      wrote on last edited by
      #2

      [Message Deleted]

      S 1 Reply Last reply
      0
      • L l_d_allan

        [Message Deleted]

        S Offline
        S Offline
        Shog9 0
        wrote on last edited by
        #3

        Try the [Modify link on the bottom right of your post.

        ---- Scripts i've known... CPhog 0.9.9 - make CP better. Forum Bookmark 0.2.5 - bookmark forum posts on Pensieve Print forum 0.1.1 - printer-friendly forums

        L 1 Reply Last reply
        0
        • S Shog9 0

          Try the [Modify link on the bottom right of your post.

          ---- Scripts i've known... CPhog 0.9.9 - make CP better. Forum Bookmark 0.2.5 - bookmark forum posts on Pensieve Print forum 0.1.1 - printer-friendly forums

          L Offline
          L Offline
          l_d_allan
          wrote on last edited by
          #4

          Thanks .... I thought that would be available, but with the word-wrap off, I couldn't see it .... it was far to the right. Apparently, I messed up usage of the < pre > or < code > tags.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups