1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-10-18 22:06:10 +00:00
Commit Graph

524 Commits

Author SHA1 Message Date
4855ae8bf2
[ci skip] Use file-scoped namespaces for tests 2022-04-21 12:15:29 +01:00
6f96ab795c
Add Sqrt and ComplexSqrt for float/double 2022-04-21 12:06:18 +01:00
b3a4342c77
[ci skip] Document ArithmeticException (#15) 2022-04-21 12:04:17 +01:00
f6c08fedf3
Cast directly to long, not short, for IsPrime 2022-04-21 11:49:21 +01:00
86b6a94adc
Add Sign() for signed numeric types
Behaves as Math.Sign()
2022-04-21 11:04:05 +01:00
3a58ed88c9
Add AsArray/AsEnumerable (#47) 2022-04-20 23:14:16 +01:00
1460e6b6c3
Add LINQ-inspired All/Any for ReadOnly/Span<T> 2022-04-20 19:33:51 +01:00
af9449935f
Fix null input for WithAlternative test 2022-04-20 19:32:34 +01:00
85becd2415
Add Array.Fill 2022-04-20 19:27:06 +01:00
e183c31579
Add Array.AsReadOnly and Array.Clear
Tests were added, implementation was missing
2022-04-20 19:24:42 +01:00
108390a415
Allow null alternative 2022-04-20 19:19:07 +01:00
d4e3c8ab50
Use file-scoped namespaces 2022-04-20 18:51:20 +01:00
37c7b74379
Inline float arithmetic, don't cast 2022-04-20 18:50:06 +01:00
778d8c6cf1
Add Deg<->Rad tests 2022-04-20 18:48:43 +01:00
00571983c6
Force precedence of constant arithemtic
(Relates to previous commit, forgot doubles. Leave me alone)
2022-04-20 18:39:13 +01:00
8f40dd8617
Force precedence of constant arithmetic 2022-04-20 18:37:02 +01:00
1fc22cc99c
Fix RadiansToDegrees formula 2022-04-20 18:36:16 +01:00
b107360190
Use MathF.PI instead of Math.PI with cast 2022-04-20 18:34:49 +01:00
facc0834f0
Separate unwrapped Enum.Next/Previous to Unchecked overloads 2022-04-20 18:16:59 +01:00
d9b60fbb94
Optimize debug builds 2022-04-20 17:35:56 +01:00
2a6df446c2
[ci skip] Format csproj 2022-04-20 17:35:21 +01:00
4c81c218d5
Remove preview features 2022-04-20 17:34:49 +01:00
950c30f267
Update MSTest and Test SDK 2022-04-20 17:33:22 +01:00
3aaee23ebe
Add (some) missing tests 2022-04-20 17:33:02 +01:00
2128814db1
[ci skip] Use explicit type in tests 2022-04-20 17:31:16 +01:00
928fa64ba4
Remove Random.NextInt64
This functionality is built in starting with .NET 6
2022-04-20 17:17:49 +01:00
ea08d0fb9e
[ci skip] Use meaningful parameter names (#14) 2022-04-20 17:11:55 +01:00
1c9bb0d82e
[ci skip] Order methods lexicographically 2022-04-20 17:10:40 +01:00
ed17ce175a
Use improved wording in xmldoc (#15) 2022-04-20 17:05:21 +01:00
6e1f08472d
null-check Random parameter (#42) 2022-04-20 17:04:37 +01:00
244f079133
Favour string.IsNullOrWhiteSpace over Length == 0 (#42) 2022-04-20 17:03:32 +01:00
b6ec67d91f
Remove internal Random in favour of static Shared 2022-04-20 17:02:35 +01:00
684fba043f
Remove IReadOnlyCollection<T>.Split
In the same vein as 0123ec60d6
2022-04-20 16:52:07 +01:00
a645f56204
[ci skip] Add test for Enumerable.Shuffled 2022-04-20 16:47:15 +01:00
c4b82c2619
[ci skip] Fix xmldoc for Shuffle/Shuffled (#15) 2022-04-20 16:46:02 +01:00
66e7e79561
Rename Clusivity enum to InclusiveOptions
https://sonarcloud.io/project/issues?fileUuids=AX9gUgFivY1Q2LeuiUva&pullRequest=43&id=oliverbooth_X10D&open=AX75E353Zn_cGN5aPZcQ
2022-04-20 16:35:44 +01:00
5b5fa42b46
[ci skip] Rename Clusivity.Exclusive to Clusivity.None
https://sonarcloud.io/project/issues?fileUuids=AX9gUgFivY1Q2LeuiUva&pullRequest=43&id=oliverbooth_X10D&open=AX75E353Zn_cGN5aPZcR
2022-04-20 16:33:11 +01:00
d8877a293e
[ci skip] Initialize Clusivity fields with explicit flag values
https://sonarcloud.io/project/issues?fileUuids=AX9gUgFivY1Q2LeuiUva&pullRequest=43&id=oliverbooth_X10D&open=AX75E353Zn_cGN5aPZcR
2022-04-20 16:31:33 +01:00
0123ec60d6
Remove IEnumerable<T>.Split(int)
This functionality has been introduced in .NET 6 with the Chunk method: https://docs.microsoft.com/en-us/dotnet/api/system.linq.enumerable.chunk?view=net-6.0
2022-04-20 16:26:15 +01:00
524f3ff092
Remove redundant throw of FileNotFoundException
OpenRead constructs a FileStream, this constructor throws the same exception
2022-04-20 15:35:09 +01:00
acf57bdfd6
[ci skip] Fix grammar in xmldoc (#15) 2022-04-20 15:20:01 +01:00
91b43790b3
Add selector parameter for key, value, or both (resolves #3)
Allows caller to specify a transformation to apply to key/value, presumably when either (or both) do not have an intended result of ToString
2022-04-20 15:17:33 +01:00
2325c45d84
[ci skip] Fix method naming, rewrite xmldoc (#14) (#15)
Uses coherent nullablility contract
2022-04-20 15:08:31 +01:00
e3af2ce91d
Join GET query with & not ; (fixes #48) 2022-04-20 14:56:00 +01:00
9bfb78a1d6
[ci skip] Ignore folders as namespace providers (#41) 2022-04-20 14:36:53 +01:00
0e63c3a107
Clarify xmldoc for GetHash 2022-04-20 14:32:48 +01:00
374933e45e
Add FileInfo.GetHash<T>
Wraps Stream.GetHash<T>, but saves the caller having to OpenRead themselves
2022-04-20 14:29:45 +01:00
5168948a1d
Use generic Enum.GetValues 2022-04-20 14:09:13 +01:00
3c60340bde
Add Product extension method
Computes the element-wise product, optionally with a transformation delegate
2022-04-20 14:07:16 +01:00
20ea3e46eb
[ci skip] show nightly nuget version 2022-04-20 13:11:36 +01:00