forked from CosmosOS/Cosmos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Added some globalization and culture plugs. Also added string…
… and struct tests." This reverts commit 815f2f7.
- Loading branch information
1 parent
815f2f7
commit 1f104d8
Showing
13 changed files
with
75 additions
and
262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,16 @@ | ||
using System; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
|
||
using Cosmos.Debug.Kernel; | ||
using Cosmos.TestRunner; | ||
|
||
namespace Cosmos.Compiler.Tests.Bcl.System | ||
{ | ||
public static class StringTest | ||
{ | ||
static Debugger mDebugger = new Debugger("Tests", "String Tests"); | ||
|
||
public static void Execute() | ||
{ | ||
Assert.IsTrue(string.Empty == "", "string.Empty == \"\""); | ||
int xResult = string.Compare("a", "a"); | ||
mDebugger.Send(xResult.ToString()); | ||
Assert.IsTrue(xResult == 0, "string.Compare(\"a\", \"a\") == 0"); | ||
|
||
Assert.IsTrue( | ||
string.Compare("abc", "abc") == 0, "string.Compare(\"abc\", \"abc\") == 0"); | ||
Assert.IsTrue(("a" + "b") == "ab", "(\"a\" + \"b\") == \"ab\""); | ||
Assert.IsTrue(("a" + 'b') == "ab", "concatting 1 string and 1 character doesn\"t work"); | ||
Assert.IsTrue(string.Concat("a", "b") == "ab", "string.Concat(\"a\", \"b\") == \"ab\""); | ||
Assert.IsTrue(("a" + "b") == "ab", "concatting 2 string using + doesn't work"); | ||
Assert.IsTrue(("a" + 'b') == "ab", "concatting 1 string and 1 character doesn't work"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 0 additions & 33 deletions
33
source/Cosmos.Core.Plugs/System/Globalization/CompareInfoImpl.cs
This file was deleted.
Oops, something went wrong.
46 changes: 0 additions & 46 deletions
46
source/Cosmos.Core.Plugs/System/Globalization/CultureInfoImpl.cs
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
source/Cosmos.Core.Plugs/System/Globalization/NumberFormatInfoImpl.cs
This file was deleted.
Oops, something went wrong.
34 changes: 0 additions & 34 deletions
34
source/Cosmos.Core.Plugs/System/Globalization/TextInfoImpl.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.