The Artima Developer Community
Sponsored Link

ScalaTest/ScalaUtils Forum
Property labels in Checkers

3 replies on 1 page. Most recent reply: Mar 3, 2009 4:01 PM by Bill Venners

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 3 replies on 1 page
Jyri-Matti Lähteenmäki

Posts: 1
Nickname: inferior
Registered: Feb, 2009

Property labels in Checkers Posted: Feb 9, 2009 12:14 PM
Reply to this message Reply
Advertisement
Please include the label of the failed property to the error message on failure. Otherwise it's difficult to know which property actually failed the test.

Thanks.


Bill Venners

Posts: 2284
Nickname: bv
Registered: Jan, 2002

Re: Property labels in Checkers Posted: Feb 24, 2009 1:33 AM
Reply to this message Reply
> Please include the label of the failed property to the
> error message on failure. Otherwise it's difficult to know
> which property actually failed the test.
>
I'm not sure what label you're talking about. Can you be more specific?

Thanks.

Bill Venners

Posts: 2284
Nickname: bv
Registered: Jan, 2002

Re: Property labels in Checkers Posted: Feb 28, 2009 10:09 AM
Reply to this message Reply
Ah, nevermind. I didn't at first realize you were talking about Checkers. You mean the labels you can put in properties with :|, like :


val complexProp = forAll { (m: Int, n: Int) =>
val res = myMagicFunction(n, m)
(res >= m) :| "result > #1" &&
(res >= n) :| "result > #2" &&
(res < m + n) :| "result not sum"
}


I"ll add this for 0.9.5, which is almost out the door.

Bill Venners

Posts: 2284
Nickname: bv
Registered: Jan, 2002

Re: Property labels in Checkers Posted: Mar 3, 2009 4:01 PM
Reply to this message Reply
Testing 1, 2, 3. Please ignore.

Flat View: This topic has 3 replies on 1 page
Topic: Showing stacktraces for test results Previous Topic   Next Topic Topic: ScalaTest 0.9.4 is out the door

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use