1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-17 07:44:09 +02:00

More tests

This commit is contained in:
Brian Fiete 2020-08-16 08:31:26 -07:00
parent 01d9bfb66f
commit 65d960a6e6
4 changed files with 90 additions and 0 deletions

View file

@ -6,6 +6,14 @@ namespace Tests
{
class Tuples
{
class ClassA
{
public static int operator<=>(Self lhs, Self rhs)
{
return 0;
}
}
public static void Add(ref (int32, float) val)
{
val.0 += 100;
@ -30,6 +38,10 @@ namespace Tests
Add(ref tVal1);
Test.Assert(tVal1 == (a: 102, b: 203));
ClassA ca0 = scope .();
ClassA ca1 = scope .();
Test.Assert((ca0, ca0) == (ca1, ca1));
}
class ValClass