Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
auduchinok committed Nov 6, 2020
1 parent fcfd224 commit 0bad662
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/service/Symbols.fs
Original file line number Diff line number Diff line change
Expand Up @@ -72,21 +72,21 @@ extern int private c()
Some SynAccess.Public
Some SynAccess.Private ]
|> List.zip decls
|> List.iter (fun (actual, (expected)) ->
|> List.iter (fun (actual, expected) ->
match actual with
| SynModuleDecl.Let (_, [Binding (accessibility = access)], _) -> access |> should equal expected
| decl -> failwithf "unexpected decl: %O" decl)

[ "a", (true, false, false, false)
"b", (true, false, false, false)
"c", (false, false, false, true) ]
|> List.iter (fun (name, expectedAccess) ->
|> List.iter (fun (name, expected) ->
match findSymbolByName name checkResults with
| :? FSharpMemberOrFunctionOrValue as mfv ->
let access = mfv.Accessibility
(access.IsPublic, access.IsProtected, access.IsInternal, access.IsPrivate)
|> should equal expectedAccess
| _ -> failwith "Couldn't get f")
|> should equal expected
| _ -> failwithf "Couldn't get mfv: %s" name)


module XmlDocSig =
Expand Down

0 comments on commit 0bad662

Please sign in to comment.