Esempio n. 1
0
 def test_should_handle_overflow(self):
     sert(util.format_si(10**27)).to_equal('999.999?')
Esempio n. 2
0
 def test_should_format_z(self):
     sert(util.format_si(10**21)).to_equal('  1.000Z')
Esempio n. 3
0
 def test_should_format_y(self):
     sert(util.format_si(10**24)).to_equal('  1.000Y')
Esempio n. 4
0
 def test_should_format_p(self):
     sert(util.format_si(10**15)).to_equal('  1.000P')
Esempio n. 5
0
 def test_should_format_e(self):
     sert(util.format_si(10**18)).to_equal('  1.000E')
Esempio n. 6
0
 def test_should_format_t(self):
     sert(util.format_si(10**12)).to_equal('  1.000T')
Esempio n. 7
0
 def test_should_format_g(self):
     sert(util.format_si(10**9)).to_equal('  1.000G')
Esempio n. 8
0
 def test_should_format_m(self):
     sert(util.format_si(10**6)).to_equal('  1.000M')
Esempio n. 9
0
 def test_should_format_k(self):
     sert(util.format_si(10**3)).to_equal('  1.000K')
Esempio n. 10
0
 def test_should_format_number(self):
     sert(util.format_si(999)).to_equal('    999 ')