예제 #1
0
        public void DifferentCasesCompressionShorter()
        {
            string result = C01q06.CompressString("aaaaaaAAAAAbbbcccCCCCCCc");

            Assert.Equal("a6A5b3c3C6c1", result);
        }
예제 #2
0
        public void DifferentCasesInputShorter()
        {
            string result = C01q06.CompressString("aAbcCc");

            Assert.Equal("aAbcCc", result);
        }
예제 #3
0
        public void Empty()
        {
            string result = C01q06.CompressString("");

            Assert.Equal("", result);
        }
예제 #4
0
        public void CompressedToSameLength()
        {
            string result = C01q06.CompressString("aabccc");

            Assert.Equal("aabccc", result);
        }
예제 #5
0
        public void Sample()
        {
            string result = C01q06.CompressString("aabcccccaaa");

            Assert.Equal("a2b1c5a3", result);
        }