Skip to content

Commit 5450407

Browse files
author
mtu
committed
fix: add tests, add missing copyrights
1 parent f10791f commit 5450407

17 files changed

+1977
-31
lines changed

src/Yaapii.Atoms/Collection/ArrayListAsCollection.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
using System.Collections;
2424
using System.Collections.Concurrent;
25-
using Yaapii.Atoms.Scalar;
25+
using Yaapii.Atoms.Func;
2626

2727
namespace Yaapii.Atoms.Collection
2828
{

src/Yaapii.Atoms/Enumerable/LessThan.cs

+22
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
// MIT License
2+
//
3+
// Copyright(c) 2022 ICARUS Consulting GmbH
4+
//
5+
// Permission is hereby granted, free of charge, to any person obtaining a copy
6+
// of this software and associated documentation files (the "Software"), to deal
7+
// in the Software without restriction, including without limitation the rights
8+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
// copies of the Software, and to permit persons to whom the Software is
10+
// furnished to do so, subject to the following conditions:
11+
//
12+
// The above copyright notice and this permission notice shall be included in all
13+
// copies or substantial portions of the Software.
14+
//
15+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
// SOFTWARE.
22+
123
using System;
224
using System.Collections;
325
using Yaapii.Atoms.Scalar;

src/Yaapii.Atoms/Enumerable/MoreThan.cs

+22
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
// MIT License
2+
//
3+
// Copyright(c) 2022 ICARUS Consulting GmbH
4+
//
5+
// Permission is hereby granted, free of charge, to any person obtaining a copy
6+
// of this software and associated documentation files (the "Software"), to deal
7+
// in the Software without restriction, including without limitation the rights
8+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
// copies of the Software, and to permit persons to whom the Software is
10+
// furnished to do so, subject to the following conditions:
11+
//
12+
// The above copyright notice and this permission notice shall be included in all
13+
// copies or substantial portions of the Software.
14+
//
15+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
// SOFTWARE.
22+
123
using System;
224
using System.Collections;
325
using Yaapii.Atoms.Scalar;

src/Yaapii.Atoms/Enumerable/None.cs

+21-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,24 @@
1-
using System;
2-
using System.Collections;
3-
using System.Collections.Generic;
4-
using System.Text;
1+
// MIT License
2+
//
3+
// Copyright(c) 2022 ICARUS Consulting GmbH
4+
//
5+
// Permission is hereby granted, free of charge, to any person obtaining a copy
6+
// of this software and associated documentation files (the "Software"), to deal
7+
// in the Software without restriction, including without limitation the rights
8+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
// copies of the Software, and to permit persons to whom the Software is
10+
// furnished to do so, subject to the following conditions:
11+
//
12+
// The above copyright notice and this permission notice shall be included in all
13+
// copies or substantial portions of the Software.
14+
//
15+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
// SOFTWARE.
522

623
namespace Yaapii.Atoms.Enumerable
724
{

src/Yaapii.Atoms/Map/EmptyMap.cs

+27-3
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,38 @@
33
namespace Yaapii.Atoms.Map
44
{
55
/// <summary>
6-
/// A map without entries
6+
/// A map which is empty.
77
/// </summary>
88
public sealed class EmptyMap : MapEnvelope
99
{
1010
/// <summary>
11-
/// A map without entries
11+
/// A map which is empty.
1212
/// </summary>
13-
public EmptyMap() : base(() => new MapOf(new ManyOf()), false)
13+
public EmptyMap() : base(() => new MapOf(), false)
14+
{ }
15+
}
16+
17+
/// <summary>
18+
/// A map which is empty.
19+
/// </summary>
20+
public sealed class EmptyMap<Value> : MapEnvelope<Value>
21+
{
22+
/// <summary>
23+
/// A map which is empty.
24+
/// </summary>
25+
public EmptyMap() : base(() => new MapOf<Value>(), false)
26+
{ }
27+
}
28+
29+
/// <summary>
30+
/// A map which is empty.
31+
/// </summary>
32+
public sealed class EmptyMap<Key, Value> : MapEnvelope<Key, Value>
33+
{
34+
/// <summary>
35+
/// A map which is empty.
36+
/// </summary>
37+
public EmptyMap() : base(() => new MapOf<Key, Value>(), false)
1438
{ }
1539
}
1640
}

0 commit comments

Comments
 (0)