Skip to content

Commit

Permalink
- Misc.
Browse files Browse the repository at this point in the history
  • Loading branch information
tgiphil committed May 18, 2024
1 parent 294893d commit 7e9af6b
Show file tree
Hide file tree
Showing 14 changed files with 104 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ permissions:
contents: write

env:
BUILD_VERSION: 2.5.1.${{ github.run_number }}
BUILD_VERSION: 2.6.0.${{ github.run_number }}

jobs:

Expand All @@ -26,7 +26,7 @@ jobs:
with:
python-version: '3.11'
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive
- name: Update package repository
Expand Down
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![License][source-image]][source-target] [![License][github-license]][github-license-link] [![Discord Chat][discord-image]][discord-chat]

[![Build status][build-status-image]][build-status] [![Test status][test-status-image]][test-status] [![Issues][github-issues]][github-issues-link] [![Stars][github-stars]][github-stars-link] [![Forks][github-forks]][github-forks-link]
[![Build status][build-status-image]][build-status] [![Issues][github-issues]][github-issues-link] [![Stars][github-stars]][github-stars-link] [![Forks][github-forks]][github-forks-link]

[build-status-image]: https://github.com/mosa/MOSA-Project/workflows/Builds/badge.svg?branch=master
[build-status]: https://github.com/mosa/MOSA-Project/actions
Expand Down
2 changes: 1 addition & 1 deletion Source/Mosa.Utility.UnitTests/Numbers/C.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public static IEnumerable<char> Series
{
get
{
if (series == null) series = GetSeries();
series ??= GetSeries();

foreach (var value in series)
yield return value;
Expand Down
13 changes: 12 additions & 1 deletion Source/Mosa.Utility.UnitTests/Numbers/I1.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// Copyright (c) MOSA Project. Licensed under the New BSD License.

using Mosa.Compiler.Common;

namespace Mosa.Utility.UnitTests.Numbers;

public static class I1
Expand All @@ -10,7 +12,7 @@ public static IEnumerable<sbyte> Series
{
get
{
if (series == null) series = GetSeries();
series ??= GetSeries();

foreach (var value in series)
yield return value;
Expand All @@ -33,6 +35,15 @@ public static IList<sbyte> GetSeries()
AddNegatives(list);

list = list.Distinct().ToList();

//for (var i = 0; i < 8; i++)
//{
// var v = 1 << i;
// list.AddIfNew((sbyte)v);
// list.AddIfNew((sbyte)(v + 1));
// list.AddIfNew((sbyte)(v - 2));
//}

list.Sort();

return list;
Expand Down
13 changes: 12 additions & 1 deletion Source/Mosa.Utility.UnitTests/Numbers/I2.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// Copyright (c) MOSA Project. Licensed under the New BSD License.

using Mosa.Compiler.Common;

namespace Mosa.Utility.UnitTests.Numbers;

public static class I2
Expand All @@ -10,7 +12,7 @@ public static IEnumerable<short> Series
{
get
{
if (series == null) series = GetSeries();
series ??= GetSeries();

foreach (var value in series)
yield return value;
Expand Down Expand Up @@ -38,6 +40,15 @@ public static IList<short> GetSeries()

AddNegatives(list);
list = list.Distinct().ToList();

//for (var i = 0; i < 16; i++)
//{
// var v = 1 << i;
// list.AddIfNew((short)v);
// list.AddIfNew((short)(v + 1));
// list.AddIfNew((short)(v - 2));
//}

list.Sort();

return list;
Expand Down
13 changes: 12 additions & 1 deletion Source/Mosa.Utility.UnitTests/Numbers/I4.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// Copyright (c) MOSA Project. Licensed under the New BSD License.

using Mosa.Compiler.Common;

namespace Mosa.Utility.UnitTests.Numbers;

public static class I4
Expand All @@ -10,7 +12,7 @@ public static IEnumerable<int> Series
{
get
{
if (series == null) series = GetSeries();
series ??= GetSeries();

foreach (var value in series)
yield return value;
Expand Down Expand Up @@ -44,6 +46,15 @@ public static IList<int> GetSeries()
AddNegatives(list);

list = list.Distinct().ToList();

//for (var i = 0; i < 32; i++)
//{
// var v = 1 << i;
// list.AddIfNew(v);
// list.AddIfNew(v + 1);
// list.AddIfNew(v - 2);
//}

list.Sort();

return list;
Expand Down
13 changes: 12 additions & 1 deletion Source/Mosa.Utility.UnitTests/Numbers/I8.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// Copyright (c) MOSA Project. Licensed under the New BSD License.

using Mosa.Compiler.Common;

namespace Mosa.Utility.UnitTests.Numbers;

public static class I8
Expand All @@ -10,7 +12,7 @@ public static IEnumerable<long> Series
{
get
{
if (series == null) series = GetSeries();
series ??= GetSeries();

foreach (var value in series)
yield return value;
Expand Down Expand Up @@ -46,6 +48,15 @@ public static IList<long> GetSeries()

AddNegatives(list);
list = list.Distinct().ToList();

//for (var i = 0; i < 64; i++)
//{
// var v = 1 << i;
// list.AddIfNew(v);
// list.AddIfNew(v + 1);
// list.AddIfNew(v - 2);
//}

list.Sort();

return list;
Expand Down
2 changes: 1 addition & 1 deletion Source/Mosa.Utility.UnitTests/Numbers/R4.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public static IEnumerable<float> Series
{
get
{
if (series == null) series = GetSeries();
series ??= GetSeries();

foreach (var value in series)
yield return value;
Expand Down
2 changes: 1 addition & 1 deletion Source/Mosa.Utility.UnitTests/Numbers/R8.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public static IEnumerable<double> Series
{
get
{
if (series == null) series = GetSeries();
series ??= GetSeries();

foreach (var value in series)
yield return value;
Expand Down
14 changes: 12 additions & 2 deletions Source/Mosa.Utility.UnitTests/Numbers/U1.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// Copyright (c) MOSA Project. Licensed under the New BSD License.

using Mosa.Compiler.Common;

namespace Mosa.Utility.UnitTests.Numbers;

public static class U1
Expand All @@ -10,7 +12,7 @@ public static IEnumerable<byte> Series
{
get
{
if (series == null) series = GetSeries();
series ??= GetSeries();

foreach (var value in series)
yield return value;
Expand All @@ -31,8 +33,16 @@ public static IList<byte> GetSeries()
};

list = list.Distinct().ToList();
list.Sort();

//for (var i = 0; i < 8; i++)
//{
// var v = 1 << i;
// list.AddIfNew((byte)v);
// list.AddIfNew((byte)(v + 1));
// list.AddIfNew((byte)(v - 2));
//}

list.Sort();
return list;
}
}
13 changes: 12 additions & 1 deletion Source/Mosa.Utility.UnitTests/Numbers/U2.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// Copyright (c) MOSA Project. Licensed under the New BSD License.

using Mosa.Compiler.Common;

namespace Mosa.Utility.UnitTests.Numbers;

public static class U2
Expand All @@ -10,7 +12,7 @@ public static IEnumerable<ushort> Series
{
get
{
if (series == null) series = GetSeries();
series ??= GetSeries();

foreach (var value in series)
yield return value;
Expand All @@ -35,6 +37,15 @@ public static IList<ushort> GetSeries()
};

list = list.Distinct().ToList();

//for (var i = 0; i < 16; i++)
//{
// var v = 1 << i;
// list.AddIfNew((ushort)v);
// list.AddIfNew((ushort)(v + 1));
// list.AddIfNew((ushort)(v - 2));
//}

list.Sort();

return list;
Expand Down
13 changes: 12 additions & 1 deletion Source/Mosa.Utility.UnitTests/Numbers/U4.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// Copyright (c) MOSA Project. Licensed under the New BSD License.

using Mosa.Compiler.Common;

namespace Mosa.Utility.UnitTests.Numbers;

public static class U4
Expand All @@ -10,7 +12,7 @@ public static IEnumerable<uint> Series
{
get
{
if (series == null) series = GetSeries();
series ??= GetSeries();

foreach (var value in series)
yield return value;
Expand Down Expand Up @@ -39,6 +41,15 @@ public static IList<uint> GetSeries()
};

list = list.Distinct().ToList();

//for (var i = 0; i < 32; i++)
//{
// var v = 1u << i;
// list.AddIfNew(v);
// list.AddIfNew(v + 1);
// list.AddIfNew(v - 2);
//}

list.Sort();

return list;
Expand Down
13 changes: 12 additions & 1 deletion Source/Mosa.Utility.UnitTests/Numbers/U8.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// Copyright (c) MOSA Project. Licensed under the New BSD License.

using Mosa.Compiler.Common;

namespace Mosa.Utility.UnitTests.Numbers;

public static class U8
Expand All @@ -10,7 +12,7 @@ public static IEnumerable<ulong> Series
{
get
{
if (series == null) series = GetSeries();
series ??= GetSeries();

foreach (var value in series)
yield return value;
Expand Down Expand Up @@ -43,6 +45,15 @@ public static IList<ulong> GetSeries()
};

list = list.Distinct().ToList();

//for (var i = 0; i < 64; i++)
//{
// var v = 1ul << i;
// list.AddIfNew(v);
// list.AddIfNew(v + 1);
// list.AddIfNew(v - 2);
//}

list.Sort();

return list;
Expand Down
3 changes: 2 additions & 1 deletion Source/Mosa.sln
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{624E8284-4F0A-4C3F-B5F2-271105E48ECF}"
ProjectSection(SolutionItems) = preProject
..\.github\workflows\builds.yml = ..\.github\workflows\builds.yml
..\.github\workflows\docs.yml = ..\.github\workflows\docs.yml
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Data", "Data", "{A406F567-5C89-45AB-88CE-E20616B28FFD}"
Expand Down Expand Up @@ -252,7 +253,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Template", "Template", "{A1
TemplateLibrary.txt = TemplateLibrary.txt
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mosa.Tool.Explorer.Avalonia", "Mosa.Tool.Explorer.Avalonia\Mosa.Tool.Explorer.Avalonia.csproj", "{763FDCF2-2501-4756-A7A1-62813D610B00}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Mosa.Tool.Explorer.Avalonia", "Mosa.Tool.Explorer.Avalonia\Mosa.Tool.Explorer.Avalonia.csproj", "{763FDCF2-2501-4756-A7A1-62813D610B00}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down

0 comments on commit 7e9af6b

Please sign in to comment.