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