mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-12 05:14:10 +02:00
More tests
This commit is contained in:
parent
480ee883bb
commit
f83875e8ad
3 changed files with 51 additions and 0 deletions
|
@ -8,6 +8,11 @@ WaitForResolve()
|
||||||
SleepTicks(20)
|
SleepTicks(20)
|
||||||
AssertFileErrors()
|
AssertFileErrors()
|
||||||
|
|
||||||
|
ShowFile("src/Declarations.bf")
|
||||||
|
WaitForResolve()
|
||||||
|
SleepTicks(20)
|
||||||
|
AssertFileErrors()
|
||||||
|
|
||||||
ShowFile("src/Defer.bf")
|
ShowFile("src/Defer.bf")
|
||||||
WaitForResolve()
|
WaitForResolve()
|
||||||
SleepTicks(20)
|
SleepTicks(20)
|
||||||
|
|
29
IDE/Tests/CompileFail001/src/Declarations.bf
Normal file
29
IDE/Tests/CompileFail001/src/Declarations.bf
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
namespace IDETest
|
||||||
|
{
|
||||||
|
class Declarations
|
||||||
|
{
|
||||||
|
class ClassA : InnerA //FAIL
|
||||||
|
{
|
||||||
|
class InnerA
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class ClassB : InnerB.Zop //FAIL
|
||||||
|
{
|
||||||
|
class InnerB
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class ClassC : InnerC.Zop //FAIL
|
||||||
|
{
|
||||||
|
class InnerC
|
||||||
|
{
|
||||||
|
public class Zop
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -307,5 +307,22 @@ namespace IDETest
|
||||||
int e = a;
|
int e = a;
|
||||||
int f = b; //FAIL
|
int f = b; //FAIL
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void Local5()
|
||||||
|
{
|
||||||
|
if (!((GetVal(var a)) && (GetVal(var b)))) //FAIL
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Local6()
|
||||||
|
{
|
||||||
|
int b;
|
||||||
|
if (!((GetVal(var a)) && (GetVal(out b))))
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue