feat: Finish Iteration
All checks were successful
Tests / Unit Testing1 (push) Successful in 43s

This commit is contained in:
2023-11-02 18:23:52 +01:00
parent a00e84e111
commit de2eb52756
9 changed files with 99 additions and 4 deletions

View File

@ -0,0 +1,27 @@
namespace Tests.Recursion;
public class RecursionTest
{
[Theory]
[InlineData("abcdef132", 0, true)]
[InlineData("!abcdef", 0, false)]
[InlineData("!abcdef", 1, true)]
[InlineData("abcdef!", 15, true)]
public void IsAlphanumTest(string s, int i, bool expected)
{
bool actual = Iteration.Recursion.IsAlphanum(s, i);
Assert.Equal(expected, actual);
}
[Theory]
[InlineData("42", 2, "24")]
[InlineData("123", 3, "321")]
[InlineData("ABcdeF",6, "FedcBA")]
public void ReverseStrTest(string source, int lenght, string expected)
{
string actual = Iteration.Recursion.ReverseStr(source, lenght);
Assert.Equal(expected, actual);
}
}

View File

@ -0,0 +1,6 @@
namespace Tests.Stream;
public class StreamTest
{
}