aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2014-04-08Display \r and \t escape codes in string reprAndrew Scheller
2014-04-07Add string formatting support for longlong and mpz.Dave Hylands
2014-04-07Merge pull request #445 from lurch/test-sorted-setsDamien George
Modify set tests to print sorted sets directly
2014-04-07Modify set tests to print sorted sets directlyAndrew Scheller
instead of creating temporary lists and sorting those in-place
2014-04-07Add tests for sorted() functionAndrew Scheller
and check that sorted(list) produces same output as list.sort()
2014-04-07tests: Fix more tests which depend on order of elements in set.Paul Sokolovsky
2014-04-07tests: Fix few tests which depend on order of elements in set.Paul Sokolovsky
2014-04-07tests: Fix tests with sets to print sorted set.Damien George
2014-04-07py: Fix str.replace for case when arg 0 or 1 is empty string.Damien George
2014-04-06tests: Fix few tests which depend on order of elements in dict.Paul Sokolovsky
With dict being unordered of course.
2014-04-06tests/dict2.py: Add combined test for dict(dict) and dict equality.Paul Sokolovsky
2014-04-06py: Implement more features in native emitter.Damien George
On x64, native emitter now passes 70 of the tests.
2014-04-06py: str.split: handle non-default separator.Damien George
2014-04-05tests: Add test to check issue #429.Damien George
2014-04-05Merge pull request #435 from dhylands/str-modulo-floatDamien George
Allow floating point arguments with %d,i,u,o,x,X formats
2014-04-05Merge pull request #433 from pfalcon/getattr-3argDamien George
py: Support 3-arg getattr() builtin (with default value).
2014-04-05py: Fix delete operation on map/dict and set objects.Damien George
Hash table can now be completely full (ie now NULL entry) before a resize is triggered. Use sentinel value to indicate delete entry in the table.
2014-04-05Allow floating point arguments with %d,i,u,o,x,X formatsDave Hylands
2014-04-05tests: Add test for dict delete. It fails.Damien George
2014-04-05py: Support 3-arg getattr() builtin (with default value).Paul Sokolovsky
2014-04-05objtype: Add equality test for type types.Paul Sokolovsky
2014-04-05py: Allow types to be hashable.Paul Sokolovsky
Quite natural to have d[int] = handle_int .
2014-04-04run-tests: Elaborate python3 command override capabilities.Paul Sokolovsky
2014-04-04Merge pull request #422 from dhylands/str-moduloDamien George
Str modulo
2014-04-04tests: Make rge-sm.py use less memory (integration step increased).Damien George
In addition to memory allocation failure, other problem was that 10**17 was overflowing. Now passes.
2014-04-04py: Add m_malloc_fail function to handle memory allocation error.Damien George
A malloc/realloc fail now throws MemoryError.
2014-04-04tests/file-with: Add testcase which failed for @dpgeorge.Paul Sokolovsky
Works on x86.
2014-04-03Implements most of str.moduloDave Hylands
The alternate form for floating point doesn't work yet. The %(name)s form doesn't work yet.
2014-04-03Changes to get unix/ port compiling on Cygwin.Damien George
2014-04-03tests: Allow to run tests on pyboard.Damien George
To run the tests on the pyboard you need to set the "test_on_pyboard" variable to "True", and also have tools/pyboard.py available for import (easiest is to symlink to it).
2014-04-03run-tests: Allow to override python3 command to use via environment var.Paul Sokolovsky
2014-04-03unix file: Implement context manager protocol (for "with" statement).Paul Sokolovsky
2014-04-02py: Fix regress for printing of floats and #if.Damien George
Also change formating modifier in test script (it still passes with original format though).
2014-04-02tests/string-format: Add test for formatting ints with float format.Paul Sokolovsky
Fail currently.
2014-04-02Change test scripts to use python3; bytecode tests use python3.4.Damien George
I upgraded to Python 3.4.0, so needed to make these changes. Hopefully the tests still run with Python 3.3.x (the scripts use python3 so are agnostic as to the subversion). Bytecode tests are tightly coupled to the Python version, and now some fail against Python 3.4.
2014-04-02Add more tests.Damien George
2014-04-02py: Factor out static/class method unwrapping code; add tests.Damien George
2014-04-02Add a test.Damien George
2014-04-02py: Add support for sep and end keywords in print.Damien George
2014-04-01py: Fix math.{ceil,floor,trunc} to return int.Damien George
2014-04-01Turn off full tests in string-format.pyDave Hylands
Add some basic coverage tests
2014-04-01tests: Add test for implicit float to int conversion (not allowed!)Paul Sokolovsky
2014-04-01Enhance str.format supportDave Hylands
This adds support for almost everything (the comma isn't currently supported). The "unspecified" type with floats also doesn't behave exactly like python. Tested under unix with float and double Spot tested on stmhal
2014-03-31py: Implement __getattr__.Damien George
It's not completely satisfactory, because a failed call to __getattr__ should not raise an exception. __setattr__ could be implemented, but it would slow down all stores to a user created object. Need to implement some caching system.
2014-03-31objstr: Very basic implementation of % string formatting operator.Paul Sokolovsky
2014-03-31Merge branch 'master' of github.com:micropython/micropythonDamien George
2014-03-31py: Fix bug in optimised for .. range.Damien George
Don't store final, failing value to the loop variable. This fix also makes for .. range a bit more efficient, as it uses less store/load pairs for the loop variable.
2014-03-31tests: Add testcase for multiple inheritance.Paul Sokolovsky
2014-03-31py: Properly implement divide-by-zero handling.Paul Sokolovsky
"1/0" is sacred idiom, the shortest way to break program execution (sys.exit() is too long).
2014-03-30Merge pull request #399 from pfalcon/gen-defargsDamien George
objgenerator: Handle default args to generator functions.