static void Test_Contains() { RleArray <char> chars = new RleArray <char>(); Set(chars, "aabbcca"); TestUtl.AssertEquals(true, chars.Contains('a')); TestUtl.AssertEquals(true, chars.Contains('b')); TestUtl.AssertEquals(true, chars.Contains('c')); TestUtl.AssertEquals(false, chars.Contains('d')); }
public void Contains() { RleArray <char> chars = new RleArray <char>(); Set(chars, "aabbcca"); Assert.AreEqual(true, chars.Contains('a')); Assert.AreEqual(true, chars.Contains('b')); Assert.AreEqual(true, chars.Contains('c')); Assert.AreEqual(false, chars.Contains('d')); }