Skip to content

Commit 7abc6db

Browse files
author
7sharp9
committed
Apply sorting to the test to ensue consistency.
1 parent 23b75f4 commit 7abc6db

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

tests/service/EditorTests.fs

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -99,18 +99,19 @@ let ``GetMethodsAsSymbols should return all overloads of a method as FSharpSymbo
9999
| Some methods ->
100100
[ for ms in methods do
101101
yield ms.Symbol.DisplayName, extractCurriedParams ms ]
102+
|> List.sortBy (fun (name, parameters) -> parameters.Length, (parameters |> List.map snd ))
102103
|> shouldEqual
103-
[("Concat", [("arg0", "obj")])
104-
("Concat", [("args", "obj []")])
105-
("Concat", [("values", "string []")])
106-
("Concat", [("values", "Collections.Generic.IEnumerable<string>")])
107-
("Concat", [("values", "Collections.Generic.IEnumerable<'T>")])
108-
("Concat", [("arg0", "obj"); ("arg1", "obj")])
109-
("Concat", [("str0", "string"); ("str1", "string")])
110-
("Concat", [("arg0", "obj"); ("arg1", "obj"); ("arg2", "obj")])
111-
("Concat", [("str0", "string"); ("str1", "string"); ("str2", "string")])
112-
("Concat", [("arg0", "obj"); ("arg1", "obj"); ("arg2", "obj");("arg3", "obj")]);
113-
("Concat", [("str0", "string"); ("str1", "string"); ("str2", "string");("str3", "string")])]
104+
[("Concat", [("values", "Collections.Generic.IEnumerable<'T>")]);
105+
("Concat", [("values", "Collections.Generic.IEnumerable<string>")]);
106+
("Concat", [("arg0", "obj")]);
107+
("Concat", [("args", "obj []")]);
108+
("Concat", [("values", "string []")]);
109+
("Concat", [("arg0", "obj"); ("arg1", "obj")]);
110+
("Concat", [("str0", "string"); ("str1", "string")]);
111+
("Concat", [("arg0", "obj"); ("arg1", "obj"); ("arg2", "obj")]);
112+
("Concat", [("str0", "string"); ("str1", "string"); ("str2", "string")]);
113+
("Concat", [("arg0", "obj"); ("arg1", "obj"); ("arg2", "obj"); ("arg3", "obj")]);
114+
("Concat", [("str0", "string"); ("str1", "string"); ("str2", "string"); ("str3", "string")])]
114115
| None -> failwith "No symbols returned"
115116

116117

0 commit comments

Comments
 (0)