Commit graph

48 commits

Author SHA1 Message Date
José Pedro
5e51301d5c
Added tests for Convert.
Added back plugs for Decimal.
Plugged Int32.ToString(IFormatProvider).
2018-02-26 00:22:06 +00:00
fanoI
c8c2bdfc20 Dictionary<String, T> works finally! 2018-02-04 18:48:58 +01:00
fanoI
46d5c0b63a
Merge branch 'master' into extended-ascii 2018-01-27 21:15:05 +01:00
fanoI
c98978c70c Compiler.Tests.Bcl.System.Text -> Cosmos.Compiler.Tests.Bcl.System.Text 2018-01-27 21:12:08 +01:00
fanoI
7dadc52dc9 Fix merge conflicts 2018-01-27 20:17:17 +01:00
fanoI
4a990ac2af Added the concept of Encoding to the Console for now ASCII (default) and CP437 are supported (for others as CP858 I think it is needed to change font too)
- moved EncodingTest on Text subdir
- added ConsoleTest (not enabled by default)
- removed ASCIIEncodingImpl (it was not needed)
- Made plugs of Console better and added plugs for formatted versions
- Removed code to test Hashtable, Hashtable it will be a separate PR
2018-01-27 20:00:11 +01:00
Charles Betros
560463e461 Comment thread test. 2018-01-26 11:01:46 -06:00
Charles Betros
b6c022848b Test kernel syntax error. 2018-01-25 16:42:50 -06:00
ewoudje
22f67e6549 Thread.Sleep plug and added ThreadTest 2018-01-21 19:15:27 +01:00
José Pedro
71e754fe2f
BCL tests. 2018-01-14 16:58:25 +00:00
fanoI
c50b581d91 More work on Encoding
- Resolved problem with UTF8Enconding.BaseName property
- Started work to plug Hashtable to make the Encoding / Decoding more efficient
2018-01-10 20:29:05 +01:00
fanoI
5d18c212f5 Implemented requested changes 2018-01-05 20:02:53 +01:00
fanoI
f2016193ba Merge branch 'master' of https://github.com/CosmosOS/Cosmos
# Conflicts:
#	Test.sln
#	Tests/Cosmos.Compiler.Tests.Bcl/Kernel.cs
2017-12-24 21:34:41 +01:00
José Pedro
e69656c127
Added tests. 2017-12-17 18:53:30 +00:00
fanoI
299c155f4c Removed a lot of plugs from File: the promise is mantained it uses StreamReader / StreamWriter directly
- CosmosEncoding replacement of Encoding is not needed: Encoding runs perfectly on Cosmos!
- Added tests to BCL for UTF8Encoding
- StreamWriter does not needs a plug anymore, TextWriter is plugged instead but the plug is really the Ctor only
- Commented COSMOSDEBUG
2017-12-01 22:21:15 +01:00
Kudzu
fa4c223452 Move again because of submodules being less than half baked in git. 2017-08-10 16:04:19 -04:00
Kudzu
fa00b78441 New Cosmos parent dir 2017-08-08 11:29:41 -04:00
invisal
6b46e948ce Improve Math.Sqrt() implementation. 2017-07-20 12:31:07 +07:00
fanoI
db5b713090 CGS is finally ready to be used! Let's merge it...
- To solve the slowness of the MemoryBlock Fill() method when the block has a big size I've created a new class for this MemoryOperations that for now contains only the method Fill() with a part implemented in ASM and with some overloads to semplify its usage from managed code. In future in this class will be added other methods to operate fast on memory for example Cmp() and Copy().
- Adding (not passing) test of the Color struct to the BoxingTest kernel
- Removed BoxingTest kernel inside BCL test: it was a duplicate of the BoxingTest kernel
- Restored correct TestKernelSets
- In the CGS Test kernel the last rectangle is now LimeGreen instead of another type of red (more clear that is working correctly)
- Added to X# the generation of the instruction Shuftps
- Added to X# the generation of the instruction MoveUPS
- Modified Guess Demo to wait for a key press to terminate (it closed suddenly in case the number was guessed)
- The VBE IOMemoryBlock has again size of 1920x1200 (the max usable)
- Added CGS Demo
- Code clean up
2017-03-05 20:32:55 +01:00
Charles Betros
4beeee98ab Enable some tests and small change to fat allocation. 2016-11-03 14:02:44 -05:00
Charles Betros
a887cf87a0 Foreach tests. 2016-11-02 13:34:26 -05:00
Charles Betros
04ca044e34 Add array copy test. 2016-11-02 04:36:13 -05:00
fanoI
a277900369 - Fixed ldarga so it will work again with types > bytes
- Fixed typos on DoubleTest
- Restored GetNumberString() as it was on my commit of the end of August
2016-10-10 21:43:38 +02:00
José Pedro
1d6c9ecae8 Tests fixes and minor changes 2016-10-02 18:59:11 +01:00
Charles Betros
73ef14d551 Working on delegates. 2016-09-26 06:55:37 -05:00
Charles Betros
95f4dbad77 More memory work. 2016-09-11 07:53:45 -05:00
Charles Betros
a9cb616f86 Merge from master. 2016-09-07 19:42:40 -05:00
Charles Betros
4f13a49a85 Compiler changes for memory. 2016-09-03 00:40:33 -05:00
Charles Betros
85103e9d9b RAT progress 2016-08-26 07:02:18 -05:00
fanoI
ad960c9a1a Continuation of Float work
- Fixed Single.ToString() on special cases (infinities, NaN and 0) and aumented the range of printable values
- Fixed Double.ToString(): it always printed "Double Overrange" for a bug in opcode ldarga
- Fixed opcode ldarga: the displacement of the argument variable was off of 4 bytes
- Fixed opcodes shr, shr_un and shl when the shift was more that 32 bytes, added to BCL relative tests
- Added BLC tests regarding BitConverter and unsafe code
- Moved the meat of the code of Single.ToString() and Double.ToString() to the class StringHelper together with the analogous methods for numer types
- Re-added _floatsignbit to CosmosAssembler.cs so the neg test should not fail anymore
- Removed all code relative to x87 that I had left under #if false
- Clean up
2016-08-22 16:31:22 +02:00
fanoI
4e1c505e52 Merge branch 'master' of https://github.com/CosmosOS/Cosmos
# Conflicts:
#	Tests/Cosmos.Compiler.Tests.SingleEchoTest/Kernel.cs
#	source/Cosmos.Assembler/Assembler.cs
#	source/Cosmos.IL2CPU/IL/Add.cs
#	source/Cosmos.IL2CPU/IL/Ceq.cs
#	source/Cosmos.IL2CPU/IL/Cgt.cs
#	source/Cosmos.IL2CPU/IL/Cgt_Un.cs
#	source/Cosmos.IL2CPU/IL/Clt.cs
#	source/Cosmos.IL2CPU/IL/Clt_Un.cs
#	source/Cosmos.IL2CPU/IL/Conv_I2.cs
#	source/Cosmos.IL2CPU/IL/Conv_I4.cs
#	source/Cosmos.IL2CPU/IL/Conv_I8.cs
#	source/Cosmos.IL2CPU/IL/Conv_R4.cs
#	source/Cosmos.IL2CPU/IL/Conv_R_Un.cs
#	source/Cosmos.IL2CPU/IL/Conv_U1.cs
#	source/Cosmos.IL2CPU/IL/Conv_U2.cs
#	source/Cosmos.IL2CPU/IL/Div.cs
#	source/Cosmos.IL2CPU/IL/Mul.cs
#	source/Cosmos.IL2CPU/IL/Sub.cs
2016-06-26 15:02:38 +02:00
fanoI
49192ffa24 - Conv.r.un is now partially implemented: an uint can be converted to double, not working code for ulong to double conversion
- Added (not working) test for ulong to double conversion
- Added to Assembler.cs costants needed for floating point conversions
2016-06-21 23:03:37 +02:00
Matthijs ter Woord
d1447458af Implement Object.MemberwiseClone 2016-06-14 13:51:16 -04:00
Matthijs ter Woord
0201b140e8 Add tests for while loops. 2016-06-10 11:09:05 -04:00
fanoI
a5bd158514 Merge branch 'master' of https://github.com/CosmosOS/Cosmos
# Conflicts:
#	Tests/Cosmos.Compiler.Tests.Bcl/Kernel.cs
#	source/Cosmos.Core/CPU.cs
2016-05-28 14:33:11 +02:00
fanoI
58c556f085 - Initial work as for https://github.com/CosmosOS/Cosmos/issues/359
- Added Console.Clear() to Guess Demo (the boot text remained on screen)
- Added to BCL test BitConverterTest (all failing), test for single / double arithmetic operations
- Added to TestRunner BCLTest
2016-05-21 18:55:39 +02:00
Charles Betros
f19063ccc9 Fixed ldelema and disabled float and double tests. 2016-05-15 13:44:09 -05:00
Charles Betros
bf6f97756a Fixed create directory and directory exists. 2016-05-11 22:36:00 -05:00
fanoI
cc9d349b12 - Added Bitconverter tests (fails for Double)
- Added to tests of Long and Ulong conversion between them
2016-03-30 22:04:02 +02:00
fanoI
35583c657a Merge branch 'master' of https://github.com/CosmosOS/Cosmos
# Conflicts:
#	Demos/Guess/GuessOS.cs
#	Tests/Cosmos.Compiler.Tests.Bcl/Kernel.cs
#	source/Cosmos.System.Plugs/Cosmos.System.Plugs.csproj
2016-03-07 21:23:11 +01:00
Charles Betros
4a3b6a50df Fixed up project and solution configurations and remove jetbrains annotations. 2016-03-06 17:33:21 -06:00
fanoI
f167ae91e6 Added a lot of tests for Primitive Types there a lot of failure for compiler bug or native methods that need to be implemented. Indeed the commited version is not compiling for GetHashCode() that cannot be plugged... 2016-02-28 16:32:25 +01:00
Matthijs ter Woord
86c2270b80 Disable UInt64 test. 2016-02-15 11:51:18 +01:00
Charles Betros
303a738e87 Added a test for an interpreter issue. 2015-11-24 00:00:04 -06:00
Matthijs ter Woord
8e35d79602 Reading almost fixed. 2015-10-02 19:39:56 +02:00
Matthijs ter Woord
4769cb2ce6 Fixes for delegates. 2015-09-04 17:51:45 +02:00
Matthijs ter Woord
3b68fb3720 Add some tests. 2015-09-04 14:54:38 +02:00
Matthijs ter Woord
e3e32744f5 Merging. 2015-09-04 14:11:35 +02:00