mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 12:30:32 +00:00
[*] All conditional branch instructions on longs marked NotImplemented. [!] Someone familiar enough should review compiler's comparisons handling.
51 lines
930 B
C#
51 lines
930 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace TestSuite.Tests
|
|
{
|
|
public class OperatorsTest: TestBase
|
|
{
|
|
public override string Name
|
|
{
|
|
get { return "Operators"; }
|
|
}
|
|
|
|
public override void Initialize()
|
|
{
|
|
|
|
}
|
|
|
|
public override void Teardown()
|
|
{
|
|
|
|
}
|
|
|
|
public override void Test()
|
|
{
|
|
//switch block
|
|
byte c = 42; //BUG: Fails if type is byte - see Work Item #4054
|
|
switch (c)
|
|
{
|
|
case 192:
|
|
Assert(192 == 42,Name);
|
|
break;
|
|
case 224:
|
|
Assert(224 == 42,Name);
|
|
break;
|
|
case 225:
|
|
Assert(225 == 42,Name);
|
|
break;
|
|
case 232:
|
|
Assert(232 == 42,Name);
|
|
break;
|
|
case 235:
|
|
Assert(235 == 42,Name);
|
|
break;
|
|
default:
|
|
Assert(c == 42, Name);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|