opencode/packages/codemode/test/cpython/micropython
2026-11-03 11:35:03 -06:00
..
ifcond.py feat(codemode): support Python sequence and call idioms 2026-11-03 11:35:03 -06:00
LICENSE feat(codemode): support Python sequence and call idioms 2026-11-03 11:35:03 -06:00
list_slice_3arg.py feat(codemode): support Python sequence and call idioms 2026-11-03 11:35:03 -06:00
README.md feat(codemode): support Python sequence and call idioms 2026-11-03 11:35:03 -06:00

MicroPython fixtures

These two test programs are unmodified from MicroPython v1.24.1, commit ecfdd5d6f9be971852003c2049600dc7b3e2a838:

  • list_slice_3arg.py: stepped slices, including negative and out-of-bounds indices.
  • ifcond.py: conditional expressions and evaluation order in tuple literals.

The upstream test suite compares printed output against CPython. bun run test:cpython micropython does the same with Code Mode. These are fixtures for the supported subset, not a claim of full MicroPython or CPython compatibility. The upstream license is included in LICENSE.