Snapshot for release 2026.10.19.1 (internal f0bdcf8)
This commit is contained in:
parent
5419838250
commit
39de36d3af
131 changed files with 11266 additions and 520 deletions
|
|
@ -86,6 +86,7 @@ namespace RynthSort.Tests
|
|||
Run("moves: answers for moves within a pack", MoveAnswersInPlace);
|
||||
Run("plan: a fixed inventory runs out of moves", Converges);
|
||||
Run("loop: auto-sort tidies every pack, then stays still", ConvergesInTheLoop);
|
||||
Run("remote: another plugin's \"rsort\" command reaches /rsort, anything else is not ours", RemoteCommand);
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
|
@ -96,6 +97,17 @@ namespace RynthSort.Tests
|
|||
return _fail == 0 ? 0 : 1;
|
||||
}
|
||||
|
||||
// RynthAi sends ub-IT's /ub packsort as SendPluginCommand("RynthSort", "rsort", "now").
|
||||
private static void RemoteCommand()
|
||||
{
|
||||
Eq(RynthSortPlugin.RemoteSortArgument("rsort", "now"), "now", "rsort now");
|
||||
Eq(RynthSortPlugin.RemoteSortArgument("RSort", "status"), "status", "case-insensitive action");
|
||||
Eq(RynthSortPlugin.RemoteSortArgument("rsort", null), "", "no value is an empty /rsort");
|
||||
Check(RynthSortPlugin.RemoteSortArgument("sort", "now") == null, "another action is not ours");
|
||||
Check(RynthSortPlugin.RemoteSortArgument(null, "now") == null, "no action is not ours");
|
||||
Check(RynthSortPlugin.RemoteSortArgument("", "now") == null, "empty action is not ours");
|
||||
}
|
||||
|
||||
private static void Run(string name, Action test)
|
||||
{
|
||||
int before = _fail;
|
||||
|
|
|
|||
Loading…
Reference in a new issue