mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-23 22:25:09 -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user