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