Menu

Poor assert failed message with assertTrue

Help
2006-06-08
2013-04-17
  • Peter Mularien

    Peter Mularien - 2006-06-08

    I have some code like this:

    <cfset assertTrue(condition=StructKeyExists(bStruct, "a"))/>

    If this condition fails, the test runner gives me the unhelpful error message:

    testSimpleMerge(test.com.xxx.components.structMergeTest): : expected:<...> but was:<...>

    I would assume this should display "expected <true> but was <false>". Is this a bug?

     
    • Peter Mularien

      Peter Mularien - 2006-06-08

      Actually, I'm sorry - I posted the wrong problem. I'll post the one I meant to ask.

       

Log in to post a comment.