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

Decompiler Bug, UnionCaseTest: zero arg unions sprinted with "()" #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
UnionCaseTest expressions should not sprint "()" for zero arg unions:

> source <@ match None with | None -> true | _ -> false @>;;
val it : string =
  "let matchValue = None in (match matchValue with | None() -> true | _ -> false) && true"

should instead produce the following code:

let matchValue = None in (match matchValue with | None -> true | _ -> false) && 
true

Original issue reported on code.google.com by stephen....@gmail.com on 1 Mar 2011 at 1:21

GoogleCodeExporter commented 9 years ago

Original comment by stephen....@gmail.com on 1 Mar 2011 at 7:54

GoogleCodeExporter commented 9 years ago

Original comment by stephen....@gmail.com on 17 Mar 2011 at 4:17