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
285 stars 26 forks source link

Operators defines #144

Closed thinkbeforecoding closed 5 years ago

thinkbeforecoding commented 5 years ago

using the following redefinition of = to == for aligment purpose, Unquote is not decompiling it as expected:

[<AutoOpen>]
module EqualTest =
    let (==) = (=)

decompile <@ 1 == 2 @>

returns "(==) 1 2"

This is due to the InfixCallOrApplication that is not trying to check that parameters are applied one by one