1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

Added some new tests

This commit is contained in:
Brian Fiete 2019-11-29 09:22:18 -08:00
parent 64f117b89f
commit a3f1a33c39
5 changed files with 58 additions and 6 deletions

View file

@ -0,0 +1,9 @@
ShowFile("src/Data01.bf")
GotoText("//Test_End")
ToggleBreakpoint()
RunWithCompiling()
AssertEvalEquals("sizeof(Derived)", "13")
AssertEvalEquals("strideof(Derived)", "16")
AssertEvalEquals("alignof(Derived)", "8")
AssertEvalEquals("iVal", "{ 123 }")

View file

@ -1,3 +1,5 @@
#pragma warning disable 168
using System.Threading;
namespace IDETest

View file

@ -0,0 +1,29 @@
using System;
#pragma warning disable 168
namespace IDETest
{
class Data01
{
struct Base
{
int32 mA;
int64 mB;
}
struct Derived : Base
{
int8 mC;
}
public static void Test()
{
//Test_Start
Derived dr = .();
Int iVal = (.)123;
//Test_End
}
}
}

View file

@ -8,6 +8,7 @@ namespace IDETest
Break.Test();
Breakpoints.Test();
Breakpoints02.Test();
Data01.Test();
EnumTester.Test();
HotTester.Test();
HotSwap_BaseChange.Test();