mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-19 00:20:25 +02:00
Beefy::String changes, lambda hotswap fixes
Changed some string internals related to StringViewsma Added an "incompatible capture" error for lambdas when the captures change
This commit is contained in:
parent
767a3fafd9
commit
2f01cc14dd
25 changed files with 544 additions and 180 deletions
|
@ -3051,7 +3051,7 @@ namespace IDE
|
|||
|
||||
if (mRunningTestScript)
|
||||
{
|
||||
if ((mScriptManager.mExpectingError != null) && (text.Contains(mScriptManager.mExpectingError)))
|
||||
if (mScriptManager.IsErrorExpected(text))
|
||||
{
|
||||
DeleteAndNullify!(mScriptManager.mExpectingError);
|
||||
OutputLine("Received expected error: {0}", text);
|
||||
|
@ -10479,7 +10479,7 @@ namespace IDE
|
|||
}
|
||||
else if (cmd == "error")
|
||||
{
|
||||
if ((mRunningTestScript) && (!IsCrashDump))
|
||||
if ((mRunningTestScript) && (!IsCrashDump) && (!mScriptManager.IsErrorExpected(param)))
|
||||
mScriptManager.Fail(param);
|
||||
|
||||
bool isFirstMsg = true;
|
||||
|
@ -10553,7 +10553,6 @@ namespace IDE
|
|||
if (isFirstMsg)
|
||||
{
|
||||
OutputLineSmart(scope String("ERROR: ", errorMsg));
|
||||
Fail(errorMsg);
|
||||
isFirstMsg = false;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -177,6 +177,11 @@ namespace IDE
|
|||
//gApp.mRunningTestScript = false;
|
||||
}
|
||||
|
||||
public bool IsErrorExpected(StringView err)
|
||||
{
|
||||
return (mExpectingError != null) && (err.Contains(mExpectingError));
|
||||
}
|
||||
|
||||
public void Fail(StringView fmt, params Object[] args)
|
||||
{
|
||||
Fail(scope String()..AppendF(fmt, params args));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue