diff --git a/PluralKit.Tests/ProxyTagParserTests.cs b/PluralKit.Tests/ProxyTagParserTests.cs index 568b8b6f..ba8db878 100644 --- a/PluralKit.Tests/ProxyTagParserTests.cs +++ b/PluralKit.Tests/ProxyTagParserTests.cs @@ -73,5 +73,17 @@ namespace PluralKit.Tests [InlineData("{bogus tags, idk}")] public void NoMembersMatchNothing(string input) => Assert.False(parser.TryMatch(new ProxyMember[]{}, input, out _)); + + [Theory] + [InlineData("{hello world}", "{", "}")] + [InlineData("[some other tags]", "[", "]")] + [InlineData("-manytags has multiple sets-", "-", "-")] + [InlineData("", "<", ">")] + public void ReturnedProxyTagsShouldMatchInput(string input, string expectedPrefix, string expectedSuffix) + { + Assert.True(parser.TryMatch(members, input, out var result)); + Assert.Equal(expectedPrefix, result.ProxyTags?.Prefix); + Assert.Equal(expectedSuffix, result.ProxyTags?.Suffix); + } } } \ No newline at end of file