Files
RobustToolbox/Robust.UnitTesting/Shared/Toolshed/ToolshedParserTest.Bugcheck.cs
T
Leon FriedrichandGitHub 9af119f57a Toolshed Rejig (#5455)
* Toolshed Rejig

* shorten hint string

* Try fix conflicts. Ill make with work later

* bodge

* Fix ProtoIdTypeParser assert

* comment

* AllEntities

* Remove more linq from WhereCommand

* better help strings

* Add ContainsCommand

* loc strings

* Add contains command description

* Add $self variable

* Errors for writing to readonly variables

* A
2024-12-21 17:49:11 +11:00

30 lines
985 B
C#

using System.Threading.Tasks;
using NUnit.Framework;
using Robust.Shared.Toolshed.Syntax;
using Robust.Shared.Toolshed.TypeParsers;
using Robust.Shared.Toolshed.TypeParsers.Math;
namespace Robust.UnitTesting.Shared.Toolshed;
// Find a silly little bug or a goof?
// Add a test here to make sure it doesn't come back.
public sealed partial class ToolshedParserTest
{
// Memorializing the fact I never fixed this shit in BQL reee
[Test, TestOf(typeof(Quantity))]
public async Task Bug_QuantityPercentage_BeforeTime()
{
await Server.WaitAssertion(() => AssertResult("val Quantity 50%", new Quantity(null, 0.5f)));
}
// Toolshed outputting the wrong error kind here, it should not be an unknown command error.
[Test, TestOf(typeof(ValueRef<>))]
public async Task Bug_ValueRefUnknownCommandError_08_22_2023()
{
await Server.WaitAssertion(() =>
{
ParseError<InvalidColor>("val Color 180deg");
});
}
}