예제 #1
0
 public void TwoDigits()
 {
     Assert.AreEqual(12, NextSmallerNumber.NextSmaller(21));
 }
예제 #2
0
 public void NineDigits()
 {
     Assert.AreEqual(123456789, NextSmallerNumber.NextSmaller(123456798));
 }
예제 #3
0
 public void FourDigits_and_nosmallerNum()
 {
     Assert.AreEqual(-1, NextSmallerNumber.NextSmaller(1027));
 }
예제 #4
0
 public void ThreeDigits_with_DecSort()
 {
     Assert.AreEqual(513, NextSmallerNumber.NextSmaller(531));
 }
예제 #5
0
 public void ThreeDigits_with_TwoDuplicate()
 {
     Assert.AreEqual(414, NextSmallerNumber.NextSmaller(441));
 }
예제 #6
0
 public void ThreeDigits()
 {
     Assert.AreEqual(790, NextSmallerNumber.NextSmaller(907));
 }