mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-18 21:34:28 -04:00
Replace octal characters from mounts in /proc/mounts
Fixed: Replace octal characters in mount points Closes #1295
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using FluentAssertions;
|
||||
using NUnit.Framework;
|
||||
using NzbDrone.Common.Extensions;
|
||||
|
||||
namespace NzbDrone.Common.Test.ExtensionTests
|
||||
{
|
||||
[TestFixture]
|
||||
public class FromOctalStringFixture
|
||||
{
|
||||
[TestCase("\\040", " ")]
|
||||
[TestCase("\\043", "#")]
|
||||
[TestCase("\\101", "A")]
|
||||
public void should_convert_octal_character_string_to_ascii_string(string octalString, string expected)
|
||||
{
|
||||
octalString.FromOctalString().Should().Be(expected);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -79,6 +79,7 @@
|
||||
<Compile Include="EnvironmentProviderTest.cs" />
|
||||
<Compile Include="EnvironmentTests\EnvironmentProviderTest.cs" />
|
||||
<Compile Include="EnvironmentTests\StartupArgumentsFixture.cs" />
|
||||
<Compile Include="ExtensionTests\FromOctalStringFixture.cs" />
|
||||
<Compile Include="ExtensionTests\Int64ExtensionFixture.cs" />
|
||||
<Compile Include="Http\HttpClientFixture.cs" />
|
||||
<Compile Include="Http\HttpRequestBuilderFixture.cs" />
|
||||
|
||||
Reference in New Issue
Block a user