• chreng (unregistered)

    Did they Assert the Assert function before these tests?

  • First (unregistered)

    Nobody

  • Haxton (unregistered) in reply to chreng

    Well, they might roll their own Assert implementation. You don't know what's being imported!

  • Descartes (unregistered) in reply to chreng

    They need more unit tests! I bet they didn't even check if 1=1, or that 1+1 =2 !

  • chreng (unregistered)

    my computer is running out of capital letters, don't know why

  • Gray_Hat (unregistered)

    Now that's a rookie mistake, you've got to allow for different widths of browser window or it just looks a mess.

    This sort of oversight is why a lot of things end up here. You did remember leap years so there is that.

  • (nodebb)

    Ah but have you tested the testing frameworks? In my codebase, we always test Mockito. The DAO test class is good place to stick these tests, since the DAO code is specifically written to be hard to test because you can't really know if it's going to get the right data out of the database without doing an end-to-end system test, so unit tests for that would be a waste of time.

    You cant really trust the assertions either, that's why we don't bother with them most of the time, just check the code all runs fine. If it was wrong it'd throw an exception right?

  • Bruce W (unregistered) in reply to chreng

    /me Sends chreng more capital letters -> ABCDEFGHIJKLMNOPQRSTUVWXYZ

  • Captain Obvious (unregistered)

    We'll sometimes run sanity checks against a vendor library we're using to make sure that the interface we need does its job. And for really critical interfaces to vendor libraries, you bet we'll be testing that interface. Learned this the hard way after discovering a bug in a math library from Intel of all places - that was a hard one to track down. But this may be a bit overboard. Just a bit.

  • TimothyB (unregistered)

    So what is REPL? Is it good online documentation?

  • Dave K (unregistered)

    With that naming convention, I expect the next one is called it_rubs_the_lotion_on_its_skin_or_it_gets_the_hose. That one should be pretty easy to test, though.

  • NotBugItsFeature (unregistered)

    That's a lot of copy and paste. I hope I never have to read his code.

  • Norman Diamond (unregistered)

    Ideally, when you’re using other code, like say, the .NET Framework, you don’t write tests that test the framework itself. After all, didn’t Microsoft already do that?

    Yeah, Microsoft probably did write tests that test their own stuff. Next question?

    Next answer: "It worked on my machine. With my sample data all in one language, and all stored in a single disk partition."

  • BoatyMcBoarface (unregistered)

    I have always wondered about 24/7/365. It logically reads as
    24 hours a day 7 days a week 365 WEEKS a year?

    so surely it should be 24/365 or 24/7/52?

  • Kashim (unregistered)

    I have to say, he does make one valid point: TRWTF here is that there is absolutely no limit (or at least no reasonable limit) on comment length, or even a limit on number of comments. Nothing stopping him from not only doing what he did once, but then again, and again, making the problem worse every time. This is clearly a massive oversight by the website admins.

    Aside for the actual article: Writing unit tests of an external framework makes sense if you want to know quickly if you can plug in a new version of a framework into your existing code without breaking it. Not saying that these unit tests make any sense (.NET has lots of tests), but unit tests for external frameworks in general are something that people should do.

  • Michael Amiethyst (unregistered)

    In general, don't test the framework. When it comes to Spring, test the framework. In particular Spring will create multiple "singletons" in a few different cases.

  • Norman Diamond (unregistered)

    I have always wondered about 24/7/365. It logically reads as 24 hours a day 7 days a week 365 WEEKS a year?

    No, that logically reads as 24 hours a day DIVIDED by 7 days a week DIVIDED by 365 weeks a year. You see, dating is even harder for marketers than it is for programmers.

  • Dieter H (unregistered)

    Doesn't strike me as a real WTF. There could be good reasons for this. Like, if it doesn't always work as advertised. Which is possible.

  • nasch (unregistered) in reply to Kashim

    "Writing unit tests of an external framework makes sense if you want to know quickly if you can plug in a new version of a framework into your existing code without breaking it. "

    You don't need to test the framework to know that, though. If you have good test coverage, just run your tests. If everything passes, you're fine. And if you don't have good test coverage, I'd argue your time is better spent working on that than writing tests of 2nd or 3rd party code.

  • DoomedPhil (unregistered)

    This is obviously the result of PTSD from developing with MFC and trying to determine when the documentation said "always" that it really meant "probably."

  • nnm (unregistered)

    Probably the conversion function is locale aware, so the code is actually checking if the system is able to convert a date from a given string. A properly written function would use an ambiguous date (e.g. 01-02-2014) and check if the month and day are in the expected positions after conversion, so 10-10-2014 is a bad choice. Locale depending (or even worst, heuristic) date parsing is the worst idea ever.

  • Anonymous (unregistered) in reply to BoatyMcBoarface

    I have always wondered about 24/7/365. It logically reads as 24 hours a day 7 days a week 365 WEEKS a year?

    It loosely matches the pattern of "Open 9-5, M-F, all days except holidays": Hours (of the day), days (of the week), and days (of the year).

  • Best Salesforce Training in Delhi (unregistered)

    AlmaMate offers the best Salesforce training in Delhi. It is actually regarded as one of the best training institutes in Delhi for Salesforce. We offer best-in-class SFDC development training not only in Delhi but in pan India location. The Salesforce training provided by us is devised to make you ready to deploy.Our Salesforce training is aligned with the industry standards and it has been designed in keeping in view all the necessary inclusions. AlmaMate ensures 100% placement assistance after successful completion of your training. If you are looking forward to making your career in the Information Technology domain then join the best Salesforce training in Delhi.To get further details of our services simply decision India at: (Toll Free) US: +91 9315269123

    https://almamate.in/best-salesforce-training-in-Delhi/

  • deepanshu (unregistered)

    Apni Ludo the best way to spend quality time with your friends and family! Apni Ludo is a classic dice-and-race game. It is a classic ludo game you will fall in love. While playing game does rely on the luck of the dice, there is a bit of strategy in choosing your moves wisely with Apni Ludo games free. Apni Ludo is a strategy board game for two to Six players, in which the players race their four goti from start to finish according to the rolls of a single dice. The match includes four and six red, blue, yellow, orange, green, and purple players Apni Ludo is played between 2 to 6 players and you have the option of playing the game against the computer, against your friends and become a ludo champion.

    https://apniludo.com/

  • varun cinematic films (unregistered)

    Varun Cinematic is One of the Best Wedding Photography in Rohini -Best Photography & Videography in Dwarka Best PRE-Wedding Photography in punjabi bags https://varuncinematicfilms.com/

  • (nodebb)

    About Me Hello There, I`m Varun I have been capturing moments and creating memories for my clients for the past 10 years. I like to call myself a visual artist who can collaborate with clients and create something through my lens which aligns with their vision. I have been doing weddings, landscape and fashion photography […] Varun Cinematic Films, being a group of the best photographers across all of Delhi; offers a wide gamut of services like Wedding Photography, Maternity Shoot, Corporate Shoot, Baby Shoot, Documentary Shoot, etc. While they understand the significance of capturing significant memories and moments in photographs and videos, Varun and his team at Varun Cinematic Films have left no stone unturned in meeting the requirements of their clientele par excellence, which has earned Varun Ji the titles of the Best Wedding Photographers in Rohini, the Best Photography & Videography in Rohini and the Best Candid shoot in rohini. https://varuncinematicfilms.com/

  • (nodebb)

    Varun Cinematic Films, being a group of the best photographers across all of Delhi; offers a wide gamut of services like Wedding Photography, Maternity Shoot, Corporate Shoot, Baby Shoot, Documentary Shoot, etc. While they understand the significance of capturing significant memories and moments in photographs and videos, Varun and his team at Varun Cinematic Films have left no stone unturned in meeting the requirements of their clientele par excellence, which has earned Varun Ji the titles of the Best Wedding photographer in Hauz Khas, Best Photographer in Hauz Khas and the Best Cinematic shoot in Hauz Khas. https://varuncinematicfilms.com/best-cinematic-shoot-in-hauz-khas/

  • (nodebb)

    Portfolio ALL Birthday Pre Wedding Sagan Wedding ALL Birthday Pre Wedding Sagan Wedding Varun Cinematic Films, being a group of the best photographers across all of Delhi; offers a wide gamut of services like Wedding Photography, Maternity Shoot, Corporate Shoot, Baby Shoot, Documentary Shoot, etc. While they understand the significance of capturing significant memories and moments in photographs and videos, Varun and his team at Varun Cinematic Films have left no stone unturned in meeting the requirements of their clientele par excellence, which has earned Varun Ji the titles of the Best wedding videography In Rohini , Best Photography & Videography in Dwarka and the wedding videography In Rohini, Best Wedding photographer. https://varuncinematicfilms.com/best-wedding-photographer/

  • (nodebb)

    Varun Cinematic Films, being a group of the best photographers across all of Delhi; offers a wide gamut of services like Wedding Photography, Maternity Shoot, Corporate Shoot, Baby Shoot, Documentary Shoot, etc. While they understand the significance of capturing significant memories and moments in photographs and videos, Varun and his team at Varun Cinematic Films have left no stone unturned in meeting the requirements of their clientele par excellence, which has earned Varun Ji the titles of the Best Cinematic shoot in Green Park , Best Candid shoot in Green Park and the Best Cinematic shoot in Green Park, Best candid shoot in Green Park, Best Photographer in Green Park. https://varuncinematicfilms.com/best-candid-shoot-in-green-park/

  • (nodebb)

    Varun Cinematic Films, being a group of the best photographers across all of Delhi; offers a wide gamut of services like Wedding Photography, Maternity Shoot, Corporate Shoot, Baby Shoot, Documentary Shoot, etc. While they understand the significance of capturing significant memories and moments in photographs and videos, Varun and his team at Varun Cinematic Films have left no stone unturned in meeting the requirements of their clientele par excellence, which has earned Varun Ji the titles of the Best Cinematic shoot in Green Park , Best Candid shoot in Green Park and the Best Cinematic shoot in Green Park, Best candid shoot in Green Park, Best Photographer in Green Park. https://varuncinematicfilms.com/best-candid-shoot-in-green-park/

  • (nodebb)

    Varun Cinematic Films, being a group of the best photographers across all of Delhi; offers a wide gamut of services like Wedding Photography, Maternity Shoot, Corporate Shoot, Baby Shoot, Documentary Shoot, etc. While they understand the significance of capturing significant memories and moments in photographs and videos, Varun and his team at Varun Cinematic Films have left no stone unturned in meeting the requirements of their clientele par excellence, which has earned Varun Ji the titles of the Best Wedding photographer in Hauz Khas, Best Photographer in Hauz Khas and the Best Cinematic shoot in Hauz Khas. https://varuncinematicfilms.com/blog/

  • (nodebb)

    About Me Hello There, I'm Varun I have been capturing moments and creating memories for my clients for the past 10 years. I like to call myself a visual artist who can collaborate with clients and create something through my lens which aligns with their vision. I have been doing weddings, landscape and fashion photography […] Varun Cinematic Films, being a group of the best photographers across all of Delhi; offers a wide gamut of services like Wedding Photography, Maternity Shoot, Corporate Shoot, Baby Shoot, Documentary Shoot, etc. While they understand the significance of capturing significant memories and moments in photographs and videos, Varun and his team at Varun Cinematic Films have left no stone unturned in meeting the requirements of their clientele par excellence, which has earned Varun Ji the titles of the Best Wedding Photographers in Rohini, the Best Photography & Videography in Rohini and the Best Candid shoot in rohini." https://varuncinematicfilms.com/best-wedding-photographers-in-janakpuri/

  • (nodebb)

    About Me Hello There, I'm Varun I have been capturing moments and creating memories for my clients for the past 10 years. I like to call myself a visual artist who can collaborate with clients and create something through my lens which aligns with their vision. I have been doing weddings, landscape and fashion photography […] Varun Cinematic Films, being a group of the best photographers across all of Delhi; offers a wide gamut of services like Wedding Photography, Maternity Shoot, Corporate Shoot, Baby Shoot, Documentary Shoot, etc. While they understand the significance of capturing significant memories and moments in photographs and videos, Varun and his team at Varun Cinematic Films have left no stone unturned in meeting the requirements of their clientele par excellence, which has earned Varun Ji the titles of the Best Wedding Photographers in Rohini, the Best Photography & Videography in Rohini and the Best Candid shoot in rohini." https://varuncinematicfilms.com/best-wedding-photographers-in-janakpuri/

  • (nodebb)

    Varun Cinematic Films, being a group of the best photographers across all of Delhi; offers a wide gamut of services like Wedding Photography, Maternity Shoot, Corporate Shoot, Baby Shoot, Documentary Shoot, etc. While they understand the significance of capturing significant memories and moments in photographs and videos, Varun and his team at Varun Cinematic Films have left no stone unturned in meeting the requirements of their clientele par excellence, which has earned Varun Ji the titles of the Best Wedding photographer in Hauz Khas, Best Photographer in Hauz Khas and the Best Cinematic shoot in Hauz Khas. https://varuncinematicfilms.com/

  • (nodebb)

    Varun Cinematic Films, being a group of the best photographers across all of Delhi; offers a wide gamut of services like Wedding Photography, Maternity Shoot, Corporate Shoot, Baby Shoot, Documentary Shoot, etc. While they understand the significance of capturing significant memories and moments in photographs and videos, Varun and his team at Varun Cinematic Films have left no stone unturned in meeting the requirements of their clientele par excellence, which has earned Varun Ji the titles of the Best Wedding photographer in Hauz Khas, Best Photographer in Hauz Khas and the Best Cinematic shoot in Hauz Khas. https://varuncinematicfilms.com/best-cinematic-shoot-in-hauz-khas/

  • (nodebb)

    Portfolio ALL Birthday Pre Wedding Sagan Wedding ALL Birthday Pre Wedding Sagan Wedding Varun Cinematic Films, being a group of the best photographers across all of Delhi; offers a wide gamut of services like Wedding Photography, Maternity Shoot, Corporate Shoot, Baby Shoot, Documentary Shoot, etc. While they understand the significance of capturing significant memories and moments in photographs and videos, Varun and his team at Varun Cinematic Films have left no stone unturned in meeting the requirements of their clientele par excellence, which has earned Varun Ji the titles of the Best wedding videography In Rohini , Best Photography & Videography in Dwarka and the wedding videography In Rohini, Best Wedding photographer. https://varuncinematicfilms.com/best-wedding-photographer/

  • (nodebb)

    Portfolio ALL Birthday Pre Wedding Sagan Wedding ALL Birthday Pre Wedding Sagan Wedding Varun Cinematic Films, being a group of the best photographers across all of Delhi; offers a wide gamut of services like Wedding Photography, Maternity Shoot, Corporate Shoot, Baby Shoot, Documentary Shoot, etc. While they understand the significance of capturing significant memories and moments in photographs and videos, Varun and his team at Varun Cinematic Films have left no stone unturned in meeting the requirements of their clientele par excellence, which has earned Varun Ji the titles of the Best wedding videography In Rohini , Best Photography & Videography in Dwarka and the wedding videography In Rohini, Best Wedding photographer. https://varuncinematicfilms.com/best-wedding-photographer/

  • (nodebb)

    Varun Cinematic Films, being a group of the best photographers across all of Delhi; offers a wide gamut of services like Wedding Photography, Maternity Shoot, Corporate Shoot, Baby Shoot, Documentary Shoot, etc. While they understand the significance of capturing significant memories and moments in photographs and videos, Varun and his team at Varun Cinematic Films have left no stone unturned in meeting the requirements of their clientele par excellence, which has earned Varun Ji the titles of the Best Cinematic shoot in Green Park , Best Candid shoot in Green Park and the Best Cinematic shoot in Green Park, Best candid shoot in Green Park, Best Photographer in Green Park. https://varuncinematicfilms.com/best-cinematic-shoot-in-hauz-khas/

  • DjlightIndia (unregistered)

    We are the Professional Manufacturer of DJ Lights and Importer, Wholesaler, Traders & Exporter in India for, DJ Light, Sharpy Lights, Led Par Lights, Laser Light, Smoke Machines, Snow Machine and all kind of DJ Light India and Effects Machines" https://www.djlightsindia.com/ Why Choose Us ? We have a team of hard-core professionals who believe in delivering products which benefits the customers with its numerous features. The skilled team of engineers keeps themselves updated with the latest innovation and accordingly bring out an exclusive range of items. Our team have been dedicatedly inclined towards meeting the demand and deliver high assurance products which are up to the satisfaction of the customers.

  • DjlightIndia (unregistered)

    "We are the Professional Manufacturer of DJ Lights and Importer, Wholesaler, Traders & Exporter in India for, DJ Light, Sharpy Lights, Led Par Lights, Laser Light, Smoke Machines, Snow Machine and all kind of DJ Light India and Effects Machines" https://www.djlightsindia.com/about-us/

  • DjlightIndia (unregistered)
    Comment held for moderation.
  • DjlightIndia (unregistered)

    Our Moto is to feed market with Scientific, Technological & Innovative Designed Products. Over-all constantly tracking the market demand and Product Development Direction, by understanding the Customer Demand, with quality Products on best prices. We are the Professional Manufacturer of DJ Lights and Importer, Wholesaler, Traders & Exporter in India for, DJ Light,all kind of DJ Light India and Effects Machines. https://www.djlightsindia.com/product-category/lightning-controllers/

  • DjlightIndia (unregistered)

    Our Moto is to feed market with Scientific, Technological & Innovative Designed Products. Over-all constantly tracking the market demand and Product Development Direction, by understanding the Customer Demand, with quality Products on best prices. We are the Professional Manufacturer of DJ Lights and Importer, Wholesaler, Traders & Exporter in India for, DJ Light,all kind of DJ Light India and Effects Machines. https://www.djlightsindia.com/product-category/lasers/lasers-lightning/

  • DjlightIndia (unregistered)

    Our Moto is to feed market with Scientific, Technological & Innovative Designed Products. Over-all constantly tracking the market demand and Product Development Direction, by understanding the Customer Demand, with quality Products on best prices. We are the Professional Manufacturer of DJ Lights and Importer, Wholesaler, Traders & Exporter in India for, DJ Light,all kind of DJ Light India and Effects Machines. https://www.djlightsindia.com/product-category/lasers/green-animation/

  • DjlightIndia (unregistered)

    Our Moto is to feed market with Scientific, Technological & Innovative Designed Products. Over-all constantly tracking the market demand and Product Development Direction, by understanding the Customer Demand, with quality Products on best prices. We are the Professional Manufacturer of DJ Lights and Importer, Wholesaler, Traders & Exporter in India for, DJ Light, all kind of DJ Light India and Effects Machines. https://www.djlightsindia.com/product-category/lasers/rgb-lasers/

  • DjlightIndia (unregistered)

    Our Moto is to feed market with Scientific, Technological & Innovative Designed Products. Over-all constantly tracking the market demand and Product Development Direction, by understanding the Customer Demand, with quality Products on best prices. We are the Professional Manufacturer of DJ Lights and Importer, Wholesaler, Traders & Exporter in India for, DJ Light, all kind of DJ Light India and Effects Machines. https://www.djlightsindia.com/product-category/dj-lights/

  • DjlightIndia (unregistered)

    Our Moto is to feed market with Scientific, Technological & Innovative Designed Products. Over-all constantly tracking the market demand and Product Development Direction, by understanding the Customer Demand, with quality Products on best prices. We are the Professional Manufacturer of DJ Lights and Importer, Wholesaler, Traders & Exporter in India for, DJ Light, all kind of DJ Light India and Effects Machines. https://www.djlightsindia.com/product-category/follow-spotlight/

  • DjlightIndia (unregistered)

    Our Moto is to feed market with Scientific, Technological & Innovative Designed Products. Over-all constantly tracking the market demand and Product Development Direction, by understanding the Customer Demand, with quality Products on best prices. We are the Professional Manufacturer of DJ Lights and Importer, Wholesaler, Traders & Exporter in India for, DJ Light, all kind of DJ Light India and Effects Machines. https://www.djlightsindia.com/product-category/smoke-machines/

  • DjlightIndia (unregistered)

    Our Moto is to feed market with Scientific, Technological & Innovative Designed Products. Over-all constantly tracking the market demand and Product Development Direction, by understanding the Customer Demand, with quality Products on best prices. We are the Professional Manufacturer of DJ Lights and Importer, Wholesaler, Traders & Exporter in India for, DJ Light, all kind of DJ Light India and Effects Machines. https://www.djlightsindia.com/contact-us/

  • diet2nourish (unregistered)
    Comment held for moderation.

Leave a comment on “A Type of Test”

Log In or post as a guest

Replying to comment #:

« Return to Article