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:
parent
64f117b89f
commit
a3f1a33c39
5 changed files with 58 additions and 6 deletions
9
IDE/Tests/Test1/scripts/Data01.txt
Normal file
9
IDE/Tests/Test1/scripts/Data01.txt
Normal 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 }")
|
|
@ -1,3 +1,5 @@
|
|||
#pragma warning disable 168
|
||||
|
||||
using System.Threading;
|
||||
|
||||
namespace IDETest
|
||||
|
|
29
IDE/Tests/Test1/src/Data01.bf
Normal file
29
IDE/Tests/Test1/src/Data01.bf
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
|
@ -8,6 +8,7 @@ namespace IDETest
|
|||
Break.Test();
|
||||
Breakpoints.Test();
|
||||
Breakpoints02.Test();
|
||||
Data01.Test();
|
||||
EnumTester.Test();
|
||||
HotTester.Test();
|
||||
HotSwap_BaseChange.Test();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue