コード例 #1
0
        public void MinDistanceTest_Same()
        {
            var solution = new _072_EditDistance();
            var result = solution.MinDistance("abc", "abc");

            Assert.AreEqual(0, result);
        }
コード例 #2
0
        public void MinDistanceTest_OneEmpty_2()
        {
            var solution = new _072_EditDistance();
            var result = solution.MinDistance("abc", "");

            Assert.AreEqual(3, result);
        }
コード例 #3
0
        public void MinDistanceTest_BothEmpty()
        {
            var solution = new _072_EditDistance();
            var result = solution.MinDistance("", "");

            Assert.AreEqual(0, result);
        }
コード例 #4
0
        public void MinDistanceTest_BothEmpty()
        {
            var solution = new _072_EditDistance();
            var result   = solution.MinDistance("", "");

            Assert.AreEqual(0, result);
        }
コード例 #5
0
        public void MinDistanceTest_NotSame()
        {
            var solution = new _072_EditDistance();
            var result   = solution.MinDistance("abccb", "abb");

            Assert.AreEqual(2, result);
        }
コード例 #6
0
        public void MinDistanceTest_OneEmpty_2()
        {
            var solution = new _072_EditDistance();
            var result   = solution.MinDistance("abc", "");

            Assert.AreEqual(3, result);
        }