port glob test
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
d3c19a0987
commit
44cf32618f
|
@ -1,5 +1,4 @@
|
|||
#nullable enable
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace IRCRobots
|
||||
{
|
||||
|
|
|
@ -1,11 +1,36 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net6.0</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.1</TargetFramework>
|
||||
<PackageId>IRCRobots</PackageId>
|
||||
<Version>1.4.0</Version>
|
||||
<Authors>Ben Harris</Authors>
|
||||
<Company>tildeverse.org</Company>
|
||||
<IsPackable>true</IsPackable>
|
||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||
<PackageProjectUrl>https://tildegit.org/irctokens/ircsharp</PackageProjectUrl>
|
||||
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||
<RepositoryUrl>https://tildegit.org/irctokens/ircsharp/src/branch/main/IRCRobots</RepositoryUrl>
|
||||
<PublishRepositoryUrl>true</PublishRepositoryUrl>
|
||||
<EmbedUntrackedSources>true</EmbedUntrackedSources>
|
||||
<RepositoryType>git</RepositoryType>
|
||||
<PackageTags>irc</PackageTags>
|
||||
<PackageVersion>1.4.0</PackageVersion>
|
||||
<PackageReadmeFile>README.md</PackageReadmeFile>
|
||||
<DebugType>embedded</DebugType>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\IRCStates\IRCStates.csproj" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\IRCStates\IRCStates.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Include="README.md" Pack="true" PackagePath="\" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.SourceLink.Gitea" Version="8.0.0" PrivateAssets="All"/>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#nullable enable
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using IRCTokens;
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#nullable enable
|
||||
using System.Threading.Tasks;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace IRCRobots
|
||||
{
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\IRCRobots\IRCRobots.csproj" />
|
||||
<ProjectReference Include="..\IRCStates\IRCStates.csproj" />
|
||||
<ProjectReference Include="..\IRCTokens\IRCTokens.csproj" />
|
||||
</ItemGroup>
|
||||
|
|
|
@ -1,13 +1,16 @@
|
|||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using IRCRobots;
|
||||
|
||||
namespace IRCSharp.Tests.Robots
|
||||
namespace IRCSharp.Tests.Robots;
|
||||
|
||||
[TestClass]
|
||||
public class GlobTests
|
||||
{
|
||||
[TestClass]
|
||||
public class Glob
|
||||
[TestMethod]
|
||||
public void GlobCollapse()
|
||||
{
|
||||
[TestMethod]
|
||||
public void GlobCollapse()
|
||||
{
|
||||
}
|
||||
Assert.AreEqual("?*", Glob.Collapse("**?*"));
|
||||
Assert.AreEqual("a?*a*", Glob.Collapse("a**?a*"));
|
||||
Assert.AreEqual("????*a", Glob.Collapse("?*?*?*?*a"));
|
||||
Assert.AreEqual("a?*a?*", Glob.Collapse("a*?*a?**"));
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue