Skip to content

Commit 02da892

Browse files
abelbraaksmabaronfel
authored andcommitted
Fix next issue difference between CI and local
1 parent 4306eb1 commit 02da892

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

tests/service/ExprTests.fs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,15 @@ let ``Test Unoptimized Declarations Project1`` () =
709709
let file1 = wholeProjectResults.AssemblyContents.ImplementationFiles.[0]
710710
let file2 = wholeProjectResults.AssemblyContents.ImplementationFiles.[1]
711711

712+
// This behaves slightly differently on Mono versions, 'null' is printed somethimes, 'None' other times
713+
// Presumably this is very small differences in Mono reflection causing F# printing to change behavious
714+
// For now just disabling this test. See https://github.com/fsharp/FSharp.Compiler.Service/pull/766
715+
let filterHack l =
716+
l |> List.map (fun (s:string) ->
717+
s.Replace("ILArrayShape [(Some 0, None)]", "ILArrayShapeFIX")
718+
.Replace("ILArrayShape [(Some 0, null)]", "ILArrayShapeFIX")
719+
.Replace("Operators.Hash<Microsoft.FSharp.Core.string> (x)", "x.GetHashCode()"))
720+
712721
let expected = [
713722
"type M"; "type IntAbbrev"; "let boolEx1 = True @ (6,14--6,18)";
714723
"let intEx1 = 1 @ (7,13--7,14)"; "let int64Ex1 = 1 @ (8,15--8,17)";

0 commit comments

Comments
 (0)