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. The Lounge
  3. I love unit testing

I love unit testing

Scheduled Pinned Locked Moved The Lounge
testingbeta-testing
12 Posts 9 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.
  • N Netblue

    and the awesome messages that I get some times... Assert.AreEqual failed. Expected:<2.65>. Actual:<2.65>.

    P Offline
    P Offline
    Pete OHanlon
    wrote on last edited by
    #2

    I thought you were going with some macho testing theme. "I love the smell of Unit Testing in the morning. You know, one time we had a function recursed for 12 hours. When it was all over, I walked up. We didn't find one of 'em, not one stinkin' Assertion failure. The smell, you know that stale Pizza smell, the whole workstation. Smelled like... victory. Someday this code cycle's gonna end..."

    Deja View - the feeling that you've seen this post before.

    My blog | My articles

    1 Reply Last reply
    0
    • N Netblue

      and the awesome messages that I get some times... Assert.AreEqual failed. Expected:<2.65>. Actual:<2.65>.

      E Offline
      E Offline
      Ennis Ray Lynch Jr
      wrote on last edited by
      #3

      Not to try and debug your cryptic message but you shouldn't use an equals operator on a double which seems to be the case.

      Need a C# Consultant? I'm available.
      Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway

      T Z 2 Replies Last reply
      0
      • N Netblue

        and the awesome messages that I get some times... Assert.AreEqual failed. Expected:<2.65>. Actual:<2.65>.

        M Offline
        M Offline
        Mladen Jankovic
        wrote on last edited by
        #4

        What Every Computer Scientist Should Know About Floating-Point Arithmetic[^]

        [Genetic Algorithm Library]

        P 1 Reply Last reply
        0
        • M Mladen Jankovic

          What Every Computer Scientist Should Know About Floating-Point Arithmetic[^]

          [Genetic Algorithm Library]

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #5

          You know, every year or so this link gets posted in the lounge. You'd think people would have figured it out by now.

          Deja View - the feeling that you've seen this post before.

          My blog | My articles

          E 1 Reply Last reply
          0
          • E Ennis Ray Lynch Jr

            Not to try and debug your cryptic message but you shouldn't use an equals operator on a double which seems to be the case.

            Need a C# Consultant? I'm available.
            Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway

            T Offline
            T Offline
            Todd Smith
            wrote on last edited by
            #6

            He needs to unit test his unit tests!

            Todd Smith

            D V 2 Replies Last reply
            0
            • T Todd Smith

              He needs to unit test his unit tests!

              Todd Smith

              D Offline
              D Offline
              Dirk Higbee
              wrote on last edited by
              #7

              Hmm, I think maybe he just needs to unit test his unit.

              Member number three million seven hundred seventy two thousand nine hundred sixty three

              1 Reply Last reply
              0
              • N Netblue

                and the awesome messages that I get some times... Assert.AreEqual failed. Expected:<2.65>. Actual:<2.65>.

                N Offline
                N Offline
                Netblue
                wrote on last edited by
                #8

                Yes, I know why it failed, I just think it looks funny at a glance. Anyway, if you have ever used VS2008 auto creation tools for unit tests, you'll notice it uses Assert.AreEqual for Doubles.

                1 Reply Last reply
                0
                • E Ennis Ray Lynch Jr

                  Not to try and debug your cryptic message but you shouldn't use an equals operator on a double which seems to be the case.

                  Need a C# Consultant? I'm available.
                  Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway

                  Z Offline
                  Z Offline
                  Zoltan Balazs
                  wrote on last edited by
                  #9

                  Not trying to be a smartass here but I think he should use Assert.AreEqual with tolerance parameter specified.

                  Work @ Network integrated solutions | Flickr | A practical use of the MVC pattern

                  1 Reply Last reply
                  0
                  • T Todd Smith

                    He needs to unit test his unit tests!

                    Todd Smith

                    V Offline
                    V Offline
                    Vasudevan Deepak Kumar
                    wrote on last edited by
                    #10

                    There is nothing on earth which is like does not have a scope for improvement. Going by that global truth, unit testing too needs testing. :)

                    Vasudevan Deepak Kumar Personal Homepage
                    Tech Gossips
                    All the world's a stage, And all the men and women merely players. They have their exits and their entrances; And one man in his time plays many parts... --William Shakespeare

                    1 Reply Last reply
                    0
                    • N Netblue

                      and the awesome messages that I get some times... Assert.AreEqual failed. Expected:<2.65>. Actual:<2.65>.

                      E Offline
                      E Offline
                      El Corazon
                      wrote on last edited by
                      #11

                      I think everyone here is more happy I do unit tests than I am sometimes. :laugh: if you don't get it, ask around. :laugh:

                      _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb) John Andrew Holmes "It is well to remember that the entire universe, with one trifling exception, is composed of others."

                      1 Reply Last reply
                      0
                      • P Pete OHanlon

                        You know, every year or so this link gets posted in the lounge. You'd think people would have figured it out by now.

                        Deja View - the feeling that you've seen this post before.

                        My blog | My articles

                        E Offline
                        E Offline
                        El Corazon
                        wrote on last edited by
                        #12

                        Pete O'Hanlon wrote:

                        You'd think people would have figured it out by now.

                        Which is why I validate to the nearest 0.005 under EGM96 and less or more on others. I actually care about what my accuracy is on the per decimal place. :) Now if I can just stop people from using integer colors!! ;)

                        _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb) John Andrew Holmes "It is well to remember that the entire universe, with one trifling exception, is composed of others."

                        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