Damien George
539681fffd
tests: Rename test scripts, changing - to _ for consistency.
From now on, all new tests must use underscore.
Addresses issue #727 .
10 years ago
Dave Hylands
b69f9fa31f
Fix str.modulo when precision is specified.
11 years ago
Paul Sokolovsky
75ce9256b2
objstr: Implement "%(key)s" % {} formatting for strings and dicts.
Also, make sure that args to "*" format specifiers are bounds-checked
properly and don't lead for segfaults in case of mismatch.
11 years ago
Damien George
5cd0b2227f
tests: Split out those tests requiring float and import.
Tests in basics (which should probably be renamed to core) should not
rely on float, or import any non-built-in files. This way these tests
can be run when those features are not available.
All test in basics now pass on the pyboard using stmhal port, except for
string-repr which has some issues with character hex printing.
11 years ago
Dave Hylands
c4029e5079
Add string formatting support for longlong and mpz.
11 years ago
Dave Hylands
f81a49e464
Allow floating point arguments with %d,i,u,o,x,X formats
11 years ago
Dave Hylands
6756a37a77
Implements most of str.modulo
The alternate form for floating point doesn't work yet.
The %(name)s form doesn't work yet.
11 years ago
Paul Sokolovsky
4db727afea
objstr: Very basic implementation of % string formatting operator.
11 years ago