1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-05 15:56:00 +02:00

Added test for adding files during hotload

This commit is contained in:
Brian Fiete 2020-07-19 05:48:22 -07:00
parent c08d1161fb
commit 912fdbe195
6 changed files with 95 additions and 0 deletions

View file

@ -0,0 +1,5 @@
FileVersion = 1
[Project]
Name = "Bug"
StartupObject = "Bug.Program"

View file

@ -0,0 +1,6 @@
FileVersion = 1
Projects = {Bug = {Path = "."}}
[Workspace]
StartupProject = "Bug"

View file

@ -0,0 +1,7 @@
static
{
public static int Extra()
{
return 123;
}
}

View file

@ -0,0 +1,16 @@
# This tests that types that fail generic tests don't create types referenced in methods
# and also that they get deleted immediately when they are dereferenced.
ShowFile("src/Program.bf")
GotoText("//Test_Start")
ToggleBreakpoint()
RunWithCompiling()
ToggleCommentAt("CallExtra_Call")
AddProjectItem("Bug", "", "$(WorkspaceDir)/Extra.bf")
Compile()
StepInto()
StepOver()
AssertEvalEquals("val", "123")

View file

@ -0,0 +1,24 @@
#pragma warning disable 168
using System;
using System.Collections;
namespace Bug
{
class Program
{
public static void CallExtra()
{
/*CallExtra_Call
int val = Extra();
*/
}
static void Main()
{
int ig = 111;
//Test_Start
CallExtra();
}
}
}