Every line of 'remove leading zeros python' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
80 def test_remove_leading_zeros(self): 81 """ 82 Tests removing leading zeros from a number 83 """ 84 for num, stripped in ( 85 ("", ""), 86 ("5", "5"), 87 ("010", "10"), 88 ("M10", "M10"), 89 ("M002", "M2"), 90 ("-09.9", "-9.9"), 91 ("000", "0"), 92 ("M00", "0"), 93 ): 94 self.assertEqual(core.remove_leading_zeros(num), stripped)
Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code