Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfe8661f

Browse files
committed
First batch
1 parent647787a commitfe8661f

File tree

4 files changed

+34
-34
lines changed

4 files changed

+34
-34
lines changed

‎src/fsharp/FSharp.Core.Unittests/FSharp.Core/Microsoft.FSharp.Collections/ArrayModule.fs‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,15 @@ type ArrayModule() =
148148
memberthis.ChunkBySize()=
149149

150150
// int Seq
151-
Assert.AreEqual([|[|1..4|];[|5..8|]|], Array.chunkBySize4[|1..8|])
152-
Assert.AreEqual([|[|1..4|];[|5..8|];[|9..10|]|], Array.chunkBySize4[|1..10|])
153-
Assert.AreEqual([|[|1|];[|2|];[|3|];[|4|]|], Array.chunkBySize1[|1..4|])
151+
Assert.IsTrue([|[|1..4|];[|5..8|]|]= Array.chunkBySize4[|1..8|])
152+
Assert.IsTrue([|[|1..4|];[|5..8|];[|9..10|]|]= Array.chunkBySize4[|1..10|])
153+
Assert.IsTrue([|[|1|];[|2|];[|3|];[|4|]|]= Array.chunkBySize1[|1..4|])
154154

155155
// string Seq
156-
Assert.AreEqual([|[|"a";"b"|];[|"c";"d"|];[|"e"|]|], Array.chunkBySize2[|"a";"b";"c";"d";"e"|])
156+
Assert.IsTrue([|[|"a";"b"|];[|"c";"d"|];[|"e"|]|]= Array.chunkBySize2[|"a";"b";"c";"d";"e"|])
157157

158158
// empty Seq
159-
Assert.AreEqual([||], Array.chunkBySize3[||])
159+
Assert.IsTrue([||]= Array.chunkBySize3[||])
160160

161161
// null Seq
162162
letnullArr:_[]=null
@@ -172,18 +172,18 @@ type ArrayModule() =
172172
memberthis.SplitInto()=
173173

174174
// int array
175-
Assert.AreEqual([|[|1..4|];[|5..7|];[|8..10|]|], Array.splitInto3[|1..10|])
176-
Assert.AreEqual([|[|1..4|];[|5..8|];[|9..11|]|], Array.splitInto3[|1..11|])
177-
Assert.AreEqual([|[|1..4|];[|5..8|];[|9..12|]|], Array.splitInto3[|1..12|])
175+
Assert.IsTrue([|[|1..4|];[|5..7|];[|8..10|]|]= Array.splitInto3[|1..10|])
176+
Assert.IsTrue([|[|1..4|];[|5..8|];[|9..11|]|]= Array.splitInto3[|1..11|])
177+
Assert.IsTrue([|[|1..4|];[|5..8|];[|9..12|]|]= Array.splitInto3[|1..12|])
178178

179-
Assert.AreEqual([|[|1..2|];[|3|];[|4|];[|5|]|], Array.splitInto4[|1..5|])
180-
Assert.AreEqual([|[|1|];[|2|];[|3|];[|4|]|], Array.splitInto20[|1..4|])
179+
Assert.IsTrue([|[|1..2|];[|3|];[|4|];[|5|]|]= Array.splitInto4[|1..5|])
180+
Assert.IsTrue([|[|1|];[|2|];[|3|];[|4|]|]= Array.splitInto20[|1..4|])
181181

182182
// string array
183-
Assert.AreEqual([|[|"a";"b"|];[|"c";"d"|];[|"e"|]|], Array.splitInto3[|"a";"b";"c";"d";"e"|])
183+
Assert.IsTrue([|[|"a";"b"|];[|"c";"d"|];[|"e"|]|]= Array.splitInto3[|"a";"b";"c";"d";"e"|])
184184

185185
// empty array
186-
Assert.AreEqual([||], Array.splitInto3[||])
186+
Assert.IsTrue([||]= Array.splitInto3[||])
187187

188188
// null array
189189
letnullArr:_[]=null

‎src/fsharp/FSharp.Core.Unittests/FSharp.Core/Microsoft.FSharp.Collections/ListModule.fs‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,15 @@ type ListModule() =
112112
memberthis.ChunkBySize()=
113113

114114
// int list
115-
Assert.AreEqual([[1..4];[5..8]], List.chunkBySize4[1..8])
116-
Assert.AreEqual([[1..4];[5..8];[9..10]], List.chunkBySize4[1..10])
117-
Assert.AreEqual([[1];[2];[3];[4]], List.chunkBySize1[1..4])
115+
Assert.IsTrue([[1..4];[5..8]]= List.chunkBySize4[1..8])
116+
Assert.IsTrue([[1..4];[5..8];[9..10]]= List.chunkBySize4[1..10])
117+
Assert.IsTrue([[1];[2];[3];[4]]= List.chunkBySize1[1..4])
118118

119119
// string list
120-
Assert.AreEqual([["a";"b"];["c";"d"];["e"]], List.chunkBySize2["a";"b";"c";"d";"e"])
120+
Assert.IsTrue([["a";"b"];["c";"d"];["e"]]= List.chunkBySize2["a";"b";"c";"d";"e"])
121121

122122
// empty list
123-
Assert.AreEqual([], List.chunkBySize3[])
123+
Assert.IsTrue([]= List.chunkBySize3[])
124124

125125
// invalidArg
126126
CheckThrowsArgumentException(fun()-> List.chunkBySize0[1..10]|> ignore)
@@ -132,18 +132,18 @@ type ListModule() =
132132
memberthis.SplitInto()=
133133

134134
// int list
135-
Assert.AreEqual([[1..4];[5..7];[8..10]], List.splitInto3[1..10])
136-
Assert.AreEqual([[1..4];[5..8];[9..11]], List.splitInto3[1..11])
137-
Assert.AreEqual([[1..4];[5..8];[9..12]], List.splitInto3[1..12])
135+
Assert.IsTrue([[1..4];[5..7];[8..10]]= List.splitInto3[1..10])
136+
Assert.IsTrue([[1..4];[5..8];[9..11]]= List.splitInto3[1..11])
137+
Assert.IsTrue([[1..4];[5..8];[9..12]]= List.splitInto3[1..12])
138138

139-
Assert.AreEqual([[1..2];[3];[4];[5]], List.splitInto4[1..5])
140-
Assert.AreEqual([[1];[2];[3];[4]], List.splitInto20[1..4])
139+
Assert.IsTrue([[1..2];[3];[4];[5]]= List.splitInto4[1..5])
140+
Assert.IsTrue([[1];[2];[3];[4]]= List.splitInto20[1..4])
141141

142142
// string list
143-
Assert.AreEqual([["a";"b"];["c";"d"];["e"]], List.splitInto3["a";"b";"c";"d";"e"])
143+
Assert.IsTrue([["a";"b"];["c";"d"];["e"]]= List.splitInto3["a";"b";"c";"d";"e"])
144144

145145
// empty list
146-
Assert.AreEqual([], List.splitInto3[])
146+
Assert.IsTrue([]= List.splitInto3[])
147147

148148
// invalidArg
149149
CheckThrowsArgumentException(fun()-> List.splitInto0[1..10]|> ignore)
@@ -335,7 +335,7 @@ type ListModule() =
335335
Assert.AreEqual(expectedStrList, List.except strList2 strList1)
336336

337337
// empty list
338-
letemptyIntList=[]
338+
letemptyIntList:int list=[]
339339
Assert.AreEqual([1..100], List.except emptyIntList intList1)
340340
Assert.AreEqual(emptyIntList, List.except intList1 emptyIntList)
341341
Assert.AreEqual(emptyIntList, List.except emptyIntList emptyIntList)

‎src/fsharp/FSharp.Core.Unittests/FSharp.Core/Microsoft.FSharp.Collections/ListModule2.fs‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -811,12 +811,12 @@ type ListModule02() =
811811
Assert.AreEqual(["str1";"str2"], List.truncate2["str1";"str2";"str3"])
812812

813813
// empty list
814-
Assert.AreEqual([], List.truncate0[])
815-
Assert.AreEqual([], List.truncate1[])
814+
Assert.AreEqual(([]: int list), List.truncate0([]: int list))
815+
Assert.AreEqual(([]: int list), List.truncate1([]: int list))
816816

817817
// negative count
818-
Assert.AreEqual([], List.truncate-1[1..5])
819-
Assert.AreEqual([], List.truncate System.Int32.MinValue[1..5])
818+
Assert.AreEqual(([]: int list), List.truncate-1[1..5])
819+
Assert.AreEqual(([]: int list), List.truncate System.Int32.MinValue[1..5])
820820

821821
()
822822

@@ -984,7 +984,7 @@ type ListModule02() =
984984
{
985985
InputList=[1..10]
986986
WindowSize=25
987-
ExpectedList=[]
987+
ExpectedList=([]:int list list)
988988
Exception= None
989989
}|> testWindowed
990990
{
@@ -994,15 +994,15 @@ type ListModule02() =
994994
Exception= None
995995
}|> testWindowed
996996
{
997-
InputList=[]
997+
InputList=([]:int list)
998998
WindowSize=2
999-
ExpectedList=[]
999+
ExpectedList=([]:int list list)
10001000
Exception= None
10011001
}|> testWindowed
10021002
{
10031003
InputList=[1..10]
10041004
WindowSize=0
1005-
ExpectedList=[]
1005+
ExpectedList=([]:int list list)
10061006
Exception= Some typeof<ArgumentException>
10071007
}|> testWindowed
10081008

‎tests/fsharpqa/testenv/src/diff/diff.fsproj‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
1414
<OpenBuildCondition=" '$(OpenBuild)' == ''">True</OpenBuild>
1515
<OpenDrop>..\..\..\..\..\$(Configuration)\net40\bin</OpenDrop>
16-
<TargetFSharpCoreVersion>4.3.1.0</TargetFSharpCoreVersion>
16+
<TargetFSharpCoreVersion>4.4.0.0</TargetFSharpCoreVersion>
1717
<Name>HostedCompilerServer</Name>
1818
</PropertyGroup>
1919
<PropertyGroupCondition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp