Browse Source

Merge branch 'master' of github.com:micropython/micropython

pull/197/head
Damien George 11 years ago
parent
commit
5f7e8dc176
  1. 4
      tests/README
  2. 0
      tests/basics/0prelim.py
  3. 0
      tests/basics/builtin-len1.py
  4. 0
      tests/basics/class-subclass-builtin.py
  5. 0
      tests/basics/class1.py
  6. 0
      tests/basics/class2.py
  7. 0
      tests/basics/class3.py
  8. 0
      tests/basics/class_inherit1.py
  9. 0
      tests/basics/class_item.py
  10. 0
      tests/basics/class_number.py
  11. 0
      tests/basics/class_store.py
  12. 0
      tests/basics/closure1.py
  13. 0
      tests/basics/closure2.py
  14. 0
      tests/basics/comprehension1.py
  15. 0
      tests/basics/containment.py
  16. 0
      tests/basics/dict1.py
  17. 0
      tests/basics/dict2.py
  18. 0
      tests/basics/dict_clear.py
  19. 0
      tests/basics/dict_copy.py
  20. 0
      tests/basics/dict_fromkeys.py
  21. 0
      tests/basics/dict_get.py
  22. 0
      tests/basics/dict_iterator.py
  23. 0
      tests/basics/dict_pop.py
  24. 0
      tests/basics/dict_popitem.py
  25. 0
      tests/basics/dict_setdefault.py
  26. 0
      tests/basics/dict_update.py
  27. 0
      tests/basics/dict_views.py
  28. 0
      tests/basics/enumerate.py
  29. 0
      tests/basics/eval1.py
  30. 0
      tests/basics/exception1.py
  31. 0
      tests/basics/filter.py
  32. 0
      tests/basics/float1.py
  33. 0
      tests/basics/for1.py
  34. 0
      tests/basics/fun1.py
  35. 0
      tests/basics/fun2.py
  36. 0
      tests/basics/fun3.py
  37. 0
      tests/basics/generator1.py
  38. 0
      tests/basics/generator2.py
  39. 0
      tests/basics/import1a.py
  40. 0
      tests/basics/import1b.py
  41. 0
      tests/basics/int-small.py
  42. 0
      tests/basics/int1.py
  43. 0
      tests/basics/is-isnot.py
  44. 0
      tests/basics/lambda1.py
  45. 0
      tests/basics/list1.py
  46. 0
      tests/basics/list_clear.py
  47. 0
      tests/basics/list_compare.py
  48. 0
      tests/basics/list_copy.py
  49. 0
      tests/basics/list_count.py
  50. 0
      tests/basics/list_index.py
  51. 0
      tests/basics/list_insert.py
  52. 0
      tests/basics/list_mult.py
  53. 0
      tests/basics/list_pop.py
  54. 0
      tests/basics/list_remove.py
  55. 0
      tests/basics/list_reverse.py
  56. 0
      tests/basics/list_sort.py
  57. 0
      tests/basics/list_sum.py
  58. 0
      tests/basics/map.py
  59. 0
      tests/basics/set1.py
  60. 0
      tests/basics/set_add.py
  61. 0
      tests/basics/set_binop.py
  62. 0
      tests/basics/set_clear.py
  63. 0
      tests/basics/set_copy.py
  64. 0
      tests/basics/set_difference.py
  65. 0
      tests/basics/set_discard.py
  66. 0
      tests/basics/set_intersection.py
  67. 0
      tests/basics/set_isdisjoint.py
  68. 0
      tests/basics/set_isfooset.py
  69. 0
      tests/basics/set_iter.py
  70. 0
      tests/basics/set_pop.py
  71. 0
      tests/basics/set_remove.py
  72. 0
      tests/basics/set_symmetric_difference.py
  73. 0
      tests/basics/set_union.py
  74. 0
      tests/basics/set_update.py
  75. 0
      tests/basics/sorted.py
  76. 0
      tests/basics/string-format.py
  77. 0
      tests/basics/string-slice.py
  78. 0
      tests/basics/string1.py
  79. 0
      tests/basics/string_find.py
  80. 0
      tests/basics/true-value.py
  81. 0
      tests/basics/try1.py
  82. 0
      tests/basics/try2.py
  83. 0
      tests/basics/try3.py
  84. 0
      tests/basics/try4.py
  85. 0
      tests/basics/types1.py
  86. 0
      tests/basics/while1.py
  87. 0
      tests/basics/zip.py
  88. 3
      tests/io/data/file1
  89. 4
      tests/io/file1.py
  90. 4
      tests/run-tests

4
tests/README

@ -0,0 +1,4 @@
This directory contains tests for various functionality areas of MicroPython.
To run all stable tests, run "run-tests" script in this directory. Note
that bytecode tests are not yet stable and should be run separately in
"bytecode" subdirectory.

0
tests/basics/tests/0prelim.py → tests/basics/0prelim.py

0
tests/basics/tests/builtin-len1.py → tests/basics/builtin-len1.py

0
tests/basics/tests/class-subclass-builtin.py → tests/basics/class-subclass-builtin.py

0
tests/basics/tests/class1.py → tests/basics/class1.py

0
tests/basics/tests/class2.py → tests/basics/class2.py

0
tests/basics/tests/class3.py → tests/basics/class3.py

0
tests/basics/tests/class_inherit1.py → tests/basics/class_inherit1.py

0
tests/basics/tests/class_item.py → tests/basics/class_item.py

0
tests/basics/tests/class_number.py → tests/basics/class_number.py

0
tests/basics/tests/class_store.py → tests/basics/class_store.py

0
tests/basics/tests/closure1.py → tests/basics/closure1.py

0
tests/basics/tests/closure2.py → tests/basics/closure2.py

0
tests/basics/tests/comprehension1.py → tests/basics/comprehension1.py

0
tests/basics/tests/containment.py → tests/basics/containment.py

0
tests/basics/tests/dict1.py → tests/basics/dict1.py

0
tests/basics/tests/dict2.py → tests/basics/dict2.py

0
tests/basics/tests/dict_clear.py → tests/basics/dict_clear.py

0
tests/basics/tests/dict_copy.py → tests/basics/dict_copy.py

0
tests/basics/tests/dict_fromkeys.py → tests/basics/dict_fromkeys.py

0
tests/basics/tests/dict_get.py → tests/basics/dict_get.py

0
tests/basics/tests/dict_iterator.py → tests/basics/dict_iterator.py

0
tests/basics/tests/dict_pop.py → tests/basics/dict_pop.py

0
tests/basics/tests/dict_popitem.py → tests/basics/dict_popitem.py

0
tests/basics/tests/dict_setdefault.py → tests/basics/dict_setdefault.py

0
tests/basics/tests/dict_update.py → tests/basics/dict_update.py

0
tests/basics/tests/dict_views.py → tests/basics/dict_views.py

0
tests/basics/tests/enumerate.py → tests/basics/enumerate.py

0
tests/basics/tests/eval1.py → tests/basics/eval1.py

0
tests/basics/tests/exception1.py → tests/basics/exception1.py

0
tests/basics/tests/filter.py → tests/basics/filter.py

0
tests/basics/tests/float1.py → tests/basics/float1.py

0
tests/basics/tests/for1.py → tests/basics/for1.py

0
tests/basics/tests/fun1.py → tests/basics/fun1.py

0
tests/basics/tests/fun2.py → tests/basics/fun2.py

0
tests/basics/tests/fun3.py → tests/basics/fun3.py

0
tests/basics/tests/generator1.py → tests/basics/generator1.py

0
tests/basics/tests/generator2.py → tests/basics/generator2.py

0
tests/basics/tests/import1a.py → tests/basics/import1a.py

0
tests/basics/tests/import1b.py → tests/basics/import1b.py

0
tests/basics/tests/int-small.py → tests/basics/int-small.py

0
tests/basics/tests/int1.py → tests/basics/int1.py

0
tests/basics/tests/is-isnot.py → tests/basics/is-isnot.py

0
tests/basics/tests/lambda1.py → tests/basics/lambda1.py

0
tests/basics/tests/list1.py → tests/basics/list1.py

0
tests/basics/tests/list_clear.py → tests/basics/list_clear.py

0
tests/basics/tests/list_compare.py → tests/basics/list_compare.py

0
tests/basics/tests/list_copy.py → tests/basics/list_copy.py

0
tests/basics/tests/list_count.py → tests/basics/list_count.py

0
tests/basics/tests/list_index.py → tests/basics/list_index.py

0
tests/basics/tests/list_insert.py → tests/basics/list_insert.py

0
tests/basics/tests/list_mult.py → tests/basics/list_mult.py

0
tests/basics/tests/list_pop.py → tests/basics/list_pop.py

0
tests/basics/tests/list_remove.py → tests/basics/list_remove.py

0
tests/basics/tests/list_reverse.py → tests/basics/list_reverse.py

0
tests/basics/tests/list_sort.py → tests/basics/list_sort.py

0
tests/basics/tests/list_sum.py → tests/basics/list_sum.py

0
tests/basics/tests/map.py → tests/basics/map.py

0
tests/basics/tests/set1.py → tests/basics/set1.py

0
tests/basics/tests/set_add.py → tests/basics/set_add.py

0
tests/basics/tests/set_binop.py → tests/basics/set_binop.py

0
tests/basics/tests/set_clear.py → tests/basics/set_clear.py

0
tests/basics/tests/set_copy.py → tests/basics/set_copy.py

0
tests/basics/tests/set_difference.py → tests/basics/set_difference.py

0
tests/basics/tests/set_discard.py → tests/basics/set_discard.py

0
tests/basics/tests/set_intersection.py → tests/basics/set_intersection.py

0
tests/basics/tests/set_isdisjoint.py → tests/basics/set_isdisjoint.py

0
tests/basics/tests/set_isfooset.py → tests/basics/set_isfooset.py

0
tests/basics/tests/set_iter.py → tests/basics/set_iter.py

0
tests/basics/tests/set_pop.py → tests/basics/set_pop.py

0
tests/basics/tests/set_remove.py → tests/basics/set_remove.py

0
tests/basics/tests/set_symmetric_difference.py → tests/basics/set_symmetric_difference.py

0
tests/basics/tests/set_union.py → tests/basics/set_union.py

0
tests/basics/tests/set_update.py → tests/basics/set_update.py

0
tests/basics/tests/sorted.py → tests/basics/sorted.py

0
tests/basics/tests/string-format.py → tests/basics/string-format.py

0
tests/basics/tests/string-slice.py → tests/basics/string-slice.py

0
tests/basics/tests/string1.py → tests/basics/string1.py

0
tests/basics/tests/string_find.py → tests/basics/string_find.py

0
tests/basics/tests/true-value.py → tests/basics/true-value.py

0
tests/basics/tests/try1.py → tests/basics/try1.py

0
tests/basics/tests/try2.py → tests/basics/try2.py

0
tests/basics/tests/try3.py → tests/basics/try3.py

0
tests/basics/tests/try4.py → tests/basics/try4.py

0
tests/basics/tests/types1.py → tests/basics/types1.py

0
tests/basics/tests/while1.py → tests/basics/while1.py

0
tests/basics/tests/zip.py → tests/basics/zip.py

3
tests/io/data/file1

@ -0,0 +1,3 @@
longer line1
line2
line3

4
tests/io/file1.py

@ -0,0 +1,4 @@
f = open("io/data/file1")
print(f.read(5))
print(f.readline())
print(f.read())

4
tests/basics/run-tests → tests/run-tests

@ -2,7 +2,7 @@
RM="/bin/rm -f"
CPYTHON3=python3.3
MP_PY=../../unix/py
MP_PY=../unix/py
numtests=0
numtestcases=0
@ -10,7 +10,7 @@ numpassed=0
numfailed=0
namefailed=
for infile in tests/*.py
for infile in basics/*.py io/*.py
do
basename=`basename $infile .py`
outfile=${basename}.out
Loading…
Cancel
Save