SwensenSoftware / unquote

Write F# unit test assertions as quoted expressions, get step-by-step failure messages for free
http://www.swensensoftware.com/unquote
Apache License 2.0
287 stars 25 forks source link

Support TryWith expressions #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
For example,

source <@ try (null:string).Length with | e -> -1 @>

produces

TryWith (PropertyGet (Some (Value (<null>)), Int32 Length, []), e, Value (1), e,
         Value (-1))

Original issue reported on code.google.com by stephen....@gmail.com on 15 Feb 2011 at 1:34

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Note that this feature is low priority because TryWith expressions are not 
expected to be common in Unquote assertions since Unquote already provides the 
raises operator to assert whether a quoted expression raises an expected 
exception.

Original comment by stephen....@gmail.com on 21 Feb 2011 at 3:14

GoogleCodeExporter commented 9 years ago

Original comment by stephen....@gmail.com on 5 Jul 2011 at 3:39

GoogleCodeExporter commented 9 years ago
This needs to implemented for the decompiler and reducer

Original comment by stephen....@gmail.com on 5 Jul 2011 at 3:41

GoogleCodeExporter commented 9 years ago

Original comment by stephen....@gmail.com on 14 Jun 2012 at 11:48

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r603.

Original comment by stephen....@gmail.com on 15 Jun 2012 at 12:42

GoogleCodeExporter commented 9 years ago
Note that we started down the path of doing subexpression decompilation of try 
with expressions in another branch but abandon for now so that we can do a 
release soon and think about it more later.

Original comment by stephen....@gmail.com on 15 Jun 2012 at 12:42

GoogleCodeExporter commented 9 years ago

Original comment by stephen....@gmail.com on 15 Jun 2012 at 12:57