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