def test_next_smaller_72(self):
     self.assertEqual(next_smaller(2002), -1)
 def test_next_smaller_02(self):
     self.assertEqual(next_smaller(21), 12)
 def test_next_smaller_30(self):
     self.assertEqual(next_smaller(4289322), 4289232)
 def test_next_smaller_25(self):
     self.assertEqual(next_smaller(26877994102587), 26877994102578)
 def test_next_smaller_27(self):
     self.assertEqual(next_smaller(84089730347889), 84089709887433)
 def test_next_smaller_21(self):
     self.assertEqual(next_smaller(1023456789), -1)
 def test_next_smaller_23(self):
     self.assertEqual(next_smaller(202233445566), -1)
 def test_next_smaller_10(self):
     self.assertEqual(next_smaller(153), 135)
 def test_next_smaller_11(self):
     self.assertEqual(next_smaller(135), -1)
 def test_next_smaller_08(self):
     self.assertEqual(next_smaller(351), 315)
 def test_next_smaller_09(self):
     self.assertEqual(next_smaller(315), 153)
 def test_next_smaller_74(self):
     self.assertEqual(next_smaller(91608510115689), 91608509865111)
 def test_next_smaller_07(self):
     self.assertEqual(next_smaller(513), 351)
 def test_next_smaller_73(self):
     self.assertEqual(next_smaller(4980313701334789), 4980313498773310)
 def test_next_smaller_19(self):
     self.assertEqual(next_smaller(9999999999), -1)
 def test_next_smaller_12(self):
     self.assertEqual(next_smaller(100), -1)
 def test_next_smaller_20(self):
     self.assertEqual(next_smaller(59884848483559), 59884848459853)
 def test_next_smaller_13(self):
     self.assertEqual(next_smaller(2071), 2017)
 def test_next_smaller_22(self):
     self.assertEqual(next_smaller(51226262651257), 51226262627551)
 def test_next_smaller_14(self):
     self.assertEqual(next_smaller(1207), 1072)
 def test_next_smaller_24(self):
     self.assertEqual(next_smaller(506789), -1)
 def test_next_smaller_15(self):
     self.assertEqual(next_smaller(414), 144)
 def test_next_smaller_26(self):
     self.assertEqual(next_smaller(767552255677), 767527765552)
 def test_next_smaller_17(self):
     self.assertEqual(next_smaller(29009), 20990)
 def test_next_smaller_28(self):
     self.assertEqual(next_smaller(19759037663779930133356677779999),
                      19759037663779919999777766533330)
 def test_next_smaller_18(self):
     self.assertEqual(next_smaller(1234567908), 1234567890)
 def test_next_smaller_29(self):
     self.assertEqual(next_smaller(9013996401346999), 9013996399964410)
 def test_next_smaller_01(self):
     self.assertEqual(next_smaller(907), 790)
 def test_next_smaller_31(self):
     self.assertEqual(next_smaller(2091669108283500112235668899),
                      2091669108283399886655221100)
 def test_next_smaller_71(self):
     self.assertEqual(next_smaller(263949208022346899), 263949206998843220)