public static void Main() { Console.WriteLine("[{0}]", Mixing.Mix("Are they here", "yes, they are here")); Console.WriteLine("[{0}]", Mixing.Mix("looping is fun but dangerous", "less dangerous than coding")); Console.WriteLine("[{0}]", Mixing.Mix(" In many languages", " there's a pair of functions")); Console.WriteLine("[{0}]", Mixing.Mix("Lords of the Fallen", "gamekult")); Console.WriteLine("[{0}]", Mixing.Mix("codewars", "codewars")); Console.WriteLine("[{0}]", Mixing.Mix("A generation must confront the looming ", "codewarrs")); }
public static void test2() { Assert.AreEqual("1:ooo/1:uuu/2:sss/=:nnn/1:ii/2:aa/2:dd/2:ee/=:gg", Mixing.Mix("looping is fun but dangerous", "less dangerous than coding")); Assert.AreEqual("1:aaa/1:nnn/1:gg/2:ee/2:ff/2:ii/2:oo/2:rr/2:ss/2:tt", Mixing.Mix(" In many languages", " there's a pair of functions")); Assert.AreEqual("1:ee/1:ll/1:oo", Mixing.Mix("Lords of the Fallen", "gamekult")); Assert.AreEqual("", Mixing.Mix("codewars", "codewars")); Assert.AreEqual("1:nnnnn/1:ooooo/1:tttt/1:eee/1:gg/1:ii/1:mm/=:rr", Mixing.Mix("A generation must confront the looming ", "codewarrs")); }
public static void test1() { Assert.AreEqual("2:eeeee/2:yy/=:hh/=:rr", Mixing.Mix("Are they here", "yes, they are here")); }