mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-17 23:56:05 +02:00
Adding new test suite
This commit is contained in:
parent
a13042b96c
commit
61b440ea36
6 changed files with 93 additions and 0 deletions
43
IDE/Tests/DebuggerTest01/src/Container.bf
Normal file
43
IDE/Tests/DebuggerTest01/src/Container.bf
Normal file
|
@ -0,0 +1,43 @@
|
|||
using System.Collections.Generic;
|
||||
using System;
|
||||
|
||||
namespace Test
|
||||
{
|
||||
class Container
|
||||
{
|
||||
static void TestB()
|
||||
{
|
||||
List<int> list = scope .();
|
||||
for (int i < 5)
|
||||
list.Add(i);
|
||||
|
||||
//TestB
|
||||
list.Remove(2);
|
||||
}
|
||||
|
||||
static void TestA()
|
||||
{
|
||||
List<String> list = scope .();
|
||||
list.Add("A");
|
||||
list.Add("AB");
|
||||
list.Add("ABC");
|
||||
list.Add("ABCD");
|
||||
list.Add("ABCDE");
|
||||
list.Add("ABCDEF");
|
||||
|
||||
for (int i < 100)
|
||||
{
|
||||
list.Add(scope:: String()..AppendF("Str{}", i));
|
||||
}
|
||||
|
||||
//TestA
|
||||
list.RemoveAt(3);
|
||||
TestB();
|
||||
}
|
||||
|
||||
public static void Test()
|
||||
{
|
||||
TestA();
|
||||
}
|
||||
}
|
||||
}
|
14
IDE/Tests/DebuggerTest01/src/Program.bf
Normal file
14
IDE/Tests/DebuggerTest01/src/Program.bf
Normal file
|
@ -0,0 +1,14 @@
|
|||
#pragma warning disable 168
|
||||
|
||||
using System;
|
||||
|
||||
namespace Test
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main()
|
||||
{
|
||||
Container.Test();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue