Example #1
0
        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'));
        }
Example #2
0
        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'));
        }