mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-20 08:58:00 +02:00
New tests
This commit is contained in:
parent
b3cc0b5be4
commit
fc063a65c1
3 changed files with 57 additions and 0 deletions
|
@ -12,6 +12,16 @@ namespace Tests
|
|||
{
|
||||
mA += addTo;
|
||||
}
|
||||
|
||||
public mixin MixB(var addTo)
|
||||
{
|
||||
void AddIt()
|
||||
{
|
||||
mA += addTo;
|
||||
}
|
||||
|
||||
AddIt();
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
@ -20,6 +30,8 @@ namespace Tests
|
|||
MixClass mc = scope MixClass();
|
||||
mc.MixA!(10);
|
||||
Test.Assert(mc.mA == 110);
|
||||
mc.MixB!(10);
|
||||
Test.Assert(mc.mA == 120);
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
@ -43,5 +55,6 @@ namespace Tests
|
|||
Test.Assert(str0 == null);
|
||||
Test.Assert(str1 == "AB");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue