diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 51fae5d..a02e339 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -35,7 +35,7 @@ jobs: - id: build run: ./ci-build.sh - name: Run Playwright tests - timeout-minutes: 10 + timeout-minutes: 20 uses: docker://mcr.microsoft.com/playwright:v1.64.1-noble with: args: npx playwright test diff --git a/.prettierignore b/.prettierignore index 2ce4e2e..c71c86f 100644 --- a/.prettierignore +++ b/.prettierignore @@ -2,3 +2,4 @@ term.js src/build lib +micropython-tests/expected diff --git a/README.md b/README.md index d7e406a..81ec209 100644 --- a/README.md +++ b/README.md @@ -341,6 +341,16 @@ abort fails the test. Every file in `src/examples` must have an entry in `e2e/audio.spec.ts` records the simulator's audio output and checks broad statistics (duration, level, pitch, dropouts) rather than exact samples. +The same run includes MicroPython's own tests +(`micropython-tests/`), as the `micropython-tests` Playwright project. Each +test file runs as `main.py` and its serial output must match the test's `.exp` +file or, where it has none, CPython's output for the same file. The CPython +output is checked in under `micropython-tests/expected` so that test runs +don't need a particular Python version. Tests that don't apply to this port +are listed with reasons in `micropython-tests/skip.json`. + + $ npx playwright test --project=micropython-tests + ### Deployments GitHub Actions (`.github/workflows/build.yml`) builds, tests and deploys every @@ -367,6 +377,12 @@ release. See [Versions](#versions) for when to bump the minor version. 1. main.c, src/Makefile and mpconfigport.h all which have simulator versions that may need updates 2. the HAL, which may require implementing in the simulator 3. the filesystem, which has a JavaScript implementation. +3. Regenerate the expected output for MicroPython's tests and review the + changes, along with `micropython-tests/skip.json`. The script asserts a + specific CPython version; update it to match the version MicroPython + uses. + + $ python3.8 micropython-tests/update-expected.py ### Web Assembly debugging diff --git a/e2e/audio.spec.ts b/e2e/audio.spec.ts index c35108b..b39cace 100644 --- a/e2e/audio.spec.ts +++ b/e2e/audio.spec.ts @@ -3,8 +3,22 @@ import { expect, Simulator, test } from "./fixtures"; test.use({ recordAudio: true }); +// The recorder runs on the main thread, which is busy while the simulator +// starts, so it misses the start of a sound made straight away. This holds +// the program until there's serial input, sent once the recorder is running. +const waitForRecorder = + "from microbit import uart as _uart, sleep as _sleep\nwhile not _uart.any():\n _sleep(10)\n_uart.read()\n"; + async function runToEnd(simulator: Simulator, program: string) { - await simulator.run(program); + await simulator.run(waitForRecorder + program); + await expect + .poll(() => + simulator.frame + .locator("body") + .evaluate(() => (window as any).__audioRecording.chunks.length), + ) + .toBeGreaterThan(0); + await simulator.sendSerial("\n"); await simulator.expectFinished({ timeout: 20_000 }); // The last buffer can still be playing when the prompt appears. await simulator.page.waitForTimeout(300); diff --git a/e2e/fixtures.ts b/e2e/fixtures.ts index fd20dad..7741af1 100644 --- a/e2e/fixtures.ts +++ b/e2e/fixtures.ts @@ -298,6 +298,31 @@ export class Simulator { } } +/** Loads the simulator in a page, recording console errors and exceptions. */ +export const createSimulator = async ( + page: Page, + flags: string[], +): Promise => { + // Served by the test rather than the build so it doesn't ship. + await page.route("**/e2e-host.html*", (route) => + route.fulfill({ body: hostHtml, contentType: "text/html" }), + ); + await page.route("**/favicon.ico", (route) => route.fulfill({ body: "" })); + + const simulator = new Simulator(page, flags); + page.on("console", (msg) => { + if (msg.type() === "error") { + simulator.errors.push(`console: ${msg.text()}`); + } + }); + page.on("pageerror", (error) => { + simulator.errors.push(`pageerror: ${error.stack ?? error.message}`); + }); + + await simulator.load(); + return simulator; +}; + export const test = base.extend({ simulatorFlags: [[], { option: true }], recordAudio: [false, { option: true }], @@ -305,23 +330,7 @@ export const test = base.extend({ if (recordAudio) { await page.addInitScript(installAudioRecorder); } - // Served by the test rather than the build so it doesn't ship. - await page.route("**/e2e-host.html*", (route) => - route.fulfill({ body: hostHtml, contentType: "text/html" }), - ); - await page.route("**/favicon.ico", (route) => route.fulfill({ body: "" })); - - const simulator = new Simulator(page, simulatorFlags); - page.on("console", (msg) => { - if (msg.type() === "error") { - simulator.errors.push(`console: ${msg.text()}`); - } - }); - page.on("pageerror", (error) => { - simulator.errors.push(`pageerror: ${error.stack ?? error.message}`); - }); - - await simulator.load(); + const simulator = await createSimulator(page, simulatorFlags); await use(simulator); expect( diff --git a/e2e/micropython.spec.ts b/e2e/micropython.spec.ts index 7b4b335..069307c 100644 --- a/e2e/micropython.spec.ts +++ b/e2e/micropython.spec.ts @@ -1,24 +1,5 @@ import { test } from "./fixtures"; -// Loops over range() compile to a counted loop, so these cover the iterator -// protocol that other tests' loops never reach. -test("for loop over a list", async ({ simulator }) => { - await simulator.run("for x in [1, 2, 3]:\n print(x)\nprint('done')\n"); - await simulator.expectSerial(/1\n2\n3\ndone/); -}); - -test("for loop over a list inside a function", async ({ simulator }) => { - await simulator.run( - "def total(values):\n t = 0\n for v in values:\n t += v\n return t\nprint(total([1, 2, 3]))\n", - ); - await simulator.expectSerial(/^6\n/); -}); - -test("list comprehension", async ({ simulator }) => { - await simulator.run("print([x * 2 for x in 'ab'])\n"); - await simulator.expectSerial(/\['aa', 'bb'\]/); -}); - test("machine.time_pulse_us times out on an idle pin", async ({ simulator, }) => { @@ -52,3 +33,17 @@ test("uncaught exception whose argument's __str__ raises", async ({ await simulator.expectSerial(/line 5, in \nException: \n/); await simulator.expectFinished(); }); + +test("program that ends with the heap locked", async ({ simulator }) => { + await simulator.run("import micropython\nmicropython.heap_lock()\n"); + await simulator.expectFinished(); +}); + +test("uncaught exception with the heap locked", async ({ simulator }) => { + await simulator.run( + "import micropython\nmicropython.heap_lock()\nraise ValueError\n", + ); + await simulator.expectSerial(/ValueError/); + await simulator.skipErrorScroll(); + await simulator.expectFinished(); +}); diff --git a/e2e/simulator.spec.ts b/e2e/simulator.spec.ts index b72dbcb..75a4547 100644 --- a/e2e/simulator.spec.ts +++ b/e2e/simulator.spec.ts @@ -111,6 +111,18 @@ test.describe("limits", () => { await simulator.skipErrorScroll(); }); + // C recursion that doesn't go via Python function calls, so isn't bounded + // by the Python stack. + test("printing a list that contains itself raises RuntimeError", async ({ + simulator, + }) => { + await simulator.run("l = []\nl.append(l)\nprint(l)\n"); + await simulator.expectSerial( + /RuntimeError: maximum recursion depth exceeded/, + ); + await simulator.skipErrorScroll(); + }); + test("running out of heap raises MemoryError", async ({ simulator }) => { await simulator.run("l = []\nwhile True:\n l = [l]\n"); await simulator.expectSerial(/MemoryError/); diff --git a/micropython-tests/expected/basics/0prelim.py.exp b/micropython-tests/expected/basics/0prelim.py.exp new file mode 100644 index 0000000..91f248e --- /dev/null +++ b/micropython-tests/expected/basics/0prelim.py.exp @@ -0,0 +1,2 @@ +1 +abc diff --git a/micropython-tests/expected/basics/andor.py.exp b/micropython-tests/expected/basics/andor.py.exp new file mode 100644 index 0000000..fb16a10 --- /dev/null +++ b/micropython-tests/expected/basics/andor.py.exp @@ -0,0 +1,4 @@ +1 +(1,) +() +1 diff --git a/micropython-tests/expected/basics/array1.py.exp b/micropython-tests/expected/basics/array1.py.exp new file mode 100644 index 0000000..de690e4 --- /dev/null +++ b/micropython-tests/expected/basics/array1.py.exp @@ -0,0 +1,100 @@ +array('B', [1, 2, 3]) 3 +array('I', [1, 2, 3]) 3 +1 +3 +1 -1 +2 +True +0 +array('i') +False +True +False +False +ValueError +True +False +False +True +False +True +False +False +True +False +True +True +True +True +True +True +True +True +True +True +True +True +False +True +True +False +False +True +False +True +False +False +True +True +True +True +False +False +False +True +False +True +False +False +True +True +True +True +False +False +False +True +False +True +False +False +True +True +True +True +False +False +False +True +False +True +False +False +True +True +True +True +False +False +False +True +False +True +False +False +True +True +True +True +False +False diff --git a/micropython-tests/expected/basics/array_add.py.exp b/micropython-tests/expected/basics/array_add.py.exp new file mode 100644 index 0000000..6e7993f --- /dev/null +++ b/micropython-tests/expected/basics/array_add.py.exp @@ -0,0 +1,3 @@ +array('I', [1, 2]) +array('I', [1, 3, 4]) +array('I', [1, 3, 4, 5]) diff --git a/micropython-tests/expected/basics/array_construct.py.exp b/micropython-tests/expected/basics/array_construct.py.exp new file mode 100644 index 0000000..f9db3af --- /dev/null +++ b/micropython-tests/expected/basics/array_construct.py.exp @@ -0,0 +1,7 @@ +array('b', [1, 2]) +array('h', [1, 2]) +array('h', [12850]) +array('h', [0]) +array('i', [0]) +array('H', [1, 2]) +array('b', [1, 2]) diff --git a/micropython-tests/expected/basics/array_construct2.py.exp b/micropython-tests/expected/basics/array_construct2.py.exp new file mode 100644 index 0000000..d20cdb0 --- /dev/null +++ b/micropython-tests/expected/basics/array_construct2.py.exp @@ -0,0 +1 @@ +array('i', [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) diff --git a/micropython-tests/expected/basics/array_construct_endian.py.exp b/micropython-tests/expected/basics/array_construct_endian.py.exp new file mode 100644 index 0000000..49540d3 --- /dev/null +++ b/micropython-tests/expected/basics/array_construct_endian.py.exp @@ -0,0 +1 @@ +array('h', [12849]) diff --git a/micropython-tests/expected/basics/array_intbig.py.exp b/micropython-tests/expected/basics/array_intbig.py.exp new file mode 100644 index 0000000..4d133d7 --- /dev/null +++ b/micropython-tests/expected/basics/array_intbig.py.exp @@ -0,0 +1,10 @@ +array('L', [0, 4294967295]) +array('l', [-2147483648, 0, 2147483647]) +array('q') +array('Q') +array('q', [0]) +array('Q', [0]) +array('q', [-9223372036854775808, -1, 0, 1, 2, 9223372036854775807]) +array('Q', [0, 1, 2, 18446744073709551615]) +b'\xff\xff\xff\xff\xff\xff\xff\xff' +b'\xff\xff\xff\xff\xff\xff\xff\xff' diff --git a/micropython-tests/expected/basics/assign1.py.exp b/micropython-tests/expected/basics/assign1.py.exp new file mode 100644 index 0000000..939c0b3 --- /dev/null +++ b/micropython-tests/expected/basics/assign1.py.exp @@ -0,0 +1,3 @@ +1 +2 2 +3 3 3 diff --git a/micropython-tests/expected/basics/attrtuple1.py.exp b/micropython-tests/expected/basics/attrtuple1.py.exp new file mode 100644 index 0000000..dbde422 --- /dev/null +++ b/micropython-tests/expected/basics/attrtuple1.py.exp @@ -0,0 +1,2 @@ +True +True diff --git a/micropython-tests/expected/basics/bool1.py.exp b/micropython-tests/expected/basics/bool1.py.exp new file mode 100644 index 0000000..3ccbe8c --- /dev/null +++ b/micropython-tests/expected/basics/bool1.py.exp @@ -0,0 +1,27 @@ +True +False +False +True +1 +-1 +True +False +False +True +False +True +True +False +True +True +True +True +False +False +False +False +False +False +True +True +TypeError diff --git a/micropython-tests/expected/basics/boundmeth1.py.exp b/micropython-tests/expected/basics/boundmeth1.py.exp new file mode 100644 index 0000000..5e12f4a --- /dev/null +++ b/micropython-tests/expected/basics/boundmeth1.py.exp @@ -0,0 +1,5 @@ + +0 +1 +21 +AttributeError diff --git a/micropython-tests/expected/basics/break.py.exp b/micropython-tests/expected/basics/break.py.exp new file mode 100644 index 0000000..c1cf933 --- /dev/null +++ b/micropython-tests/expected/basics/break.py.exp @@ -0,0 +1,9 @@ +one 0 +two 0 +one 1 +two 1 +one 2 +two 2 +one 3 +1 +2 diff --git a/micropython-tests/expected/basics/builtin_abs.py.exp b/micropython-tests/expected/basics/builtin_abs.py.exp new file mode 100644 index 0000000..74240c4 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_abs.py.exp @@ -0,0 +1,4 @@ +0 +1 +1 +1 diff --git a/micropython-tests/expected/basics/builtin_abs_intbig.py.exp b/micropython-tests/expected/basics/builtin_abs_intbig.py.exp new file mode 100644 index 0000000..72878e8 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_abs_intbig.py.exp @@ -0,0 +1,5 @@ +123456789012345678901234567890 +123456789012345678901234567890 +1073741824 +4611686018427387904 +70368744177664 diff --git a/micropython-tests/expected/basics/builtin_allany.py.exp b/micropython-tests/expected/basics/builtin_allany.py.exp new file mode 100644 index 0000000..b8d55b1 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_allany.py.exp @@ -0,0 +1,18 @@ +True +True +False +True +False +False +False +True +False +False +False +False +True +True +True +False +True +True diff --git a/micropython-tests/expected/basics/builtin_bin.py.exp b/micropython-tests/expected/basics/builtin_bin.py.exp new file mode 100644 index 0000000..798bc0b --- /dev/null +++ b/micropython-tests/expected/basics/builtin_bin.py.exp @@ -0,0 +1,7 @@ +0b1 +-0b1 +0b1111 +-0b1111 +0b11000000111001 +0b10101 +0b10101010101010101010 diff --git a/micropython-tests/expected/basics/builtin_bin_intbig.py.exp b/micropython-tests/expected/basics/builtin_bin_intbig.py.exp new file mode 100644 index 0000000..e48a611 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_bin_intbig.py.exp @@ -0,0 +1 @@ +0b1010101101010100101010011000110011101011000111110000101011010010 diff --git a/micropython-tests/expected/basics/builtin_callable.py.exp b/micropython-tests/expected/basics/builtin_callable.py.exp new file mode 100644 index 0000000..f9eee9a --- /dev/null +++ b/micropython-tests/expected/basics/builtin_callable.py.exp @@ -0,0 +1,13 @@ +False +False +False +False +False +True +True +True +True +False +True +False +A.f diff --git a/micropython-tests/expected/basics/builtin_chr.py.exp b/micropython-tests/expected/basics/builtin_chr.py.exp new file mode 100644 index 0000000..63f5e7d --- /dev/null +++ b/micropython-tests/expected/basics/builtin_chr.py.exp @@ -0,0 +1,2 @@ +A +ValueError diff --git a/micropython-tests/expected/basics/builtin_compile.py.exp b/micropython-tests/expected/basics/builtin_compile.py.exp new file mode 100644 index 0000000..663a609 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_compile.py.exp @@ -0,0 +1,10 @@ +NameError +1 +2 +3 +11 +12 +13 +ValueError +NameError +1 diff --git a/micropython-tests/expected/basics/builtin_delattr.py.exp b/micropython-tests/expected/basics/builtin_delattr.py.exp new file mode 100644 index 0000000..9969ae3 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_delattr.py.exp @@ -0,0 +1,3 @@ +1 +AttributeError +AttributeError diff --git a/micropython-tests/expected/basics/builtin_dir.py.exp b/micropython-tests/expected/basics/builtin_dir.py.exp new file mode 100644 index 0000000..fc47518 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_dir.py.exp @@ -0,0 +1,7 @@ +True +True +True +True +True +1 1 +1 1 1 1 diff --git a/micropython-tests/expected/basics/builtin_divmod.py.exp b/micropython-tests/expected/basics/builtin_divmod.py.exp new file mode 100644 index 0000000..593b2b1 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_divmod.py.exp @@ -0,0 +1,5 @@ +(0, 0) +(0, 3) +(6, 2) +ZeroDivisionError +TypeError diff --git a/micropython-tests/expected/basics/builtin_divmod_intbig.py.exp b/micropython-tests/expected/basics/builtin_divmod_intbig.py.exp new file mode 100644 index 0000000..74880ba --- /dev/null +++ b/micropython-tests/expected/basics/builtin_divmod_intbig.py.exp @@ -0,0 +1,5 @@ +ZeroDivisionError +(0, 3) +(7378697629483820671, 0) +(1, 3) +(19, 36893488147419103317) diff --git a/micropython-tests/expected/basics/builtin_ellipsis.py.exp b/micropython-tests/expected/basics/builtin_ellipsis.py.exp new file mode 100644 index 0000000..aebaed0 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_ellipsis.py.exp @@ -0,0 +1,4 @@ +Ellipsis +Ellipsis +True + diff --git a/micropython-tests/expected/basics/builtin_enumerate.py.exp b/micropython-tests/expected/basics/builtin_enumerate.py.exp new file mode 100644 index 0000000..c576f54 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_enumerate.py.exp @@ -0,0 +1,8 @@ +[] +[(0, 1), (1, 2), (2, 3)] +[(5, 1), (6, 2), (7, 3)] +[(-5, 1), (-4, 2), (-3, 3)] +[(0, 0), (1, 1), (2, 2), (3, 3), (4, 4), (5, 5), (6, 6), (7, 7), (8, 8), (9, 9), (10, 10), (11, 11), (12, 12), (13, 13), (14, 14), (15, 15), (16, 16), (17, 17), (18, 18), (19, 19), (20, 20), (21, 21), (22, 22), (23, 23), (24, 24), (25, 25), (26, 26), (27, 27), (28, 28), (29, 29), (30, 30), (31, 31), (32, 32), (33, 33), (34, 34), (35, 35), (36, 36), (37, 37), (38, 38), (39, 39), (40, 40), (41, 41), (42, 42), (43, 43), (44, 44), (45, 45), (46, 46), (47, 47), (48, 48), (49, 49), (50, 50), (51, 51), (52, 52), (53, 53), (54, 54), (55, 55), (56, 56), (57, 57), (58, 58), (59, 59), (60, 60), (61, 61), (62, 62), (63, 63), (64, 64), (65, 65), (66, 66), (67, 67), (68, 68), (69, 69), (70, 70), (71, 71), (72, 72), (73, 73), (74, 74), (75, 75), (76, 76), (77, 77), (78, 78), (79, 79), (80, 80), (81, 81), (82, 82), (83, 83), (84, 84), (85, 85), (86, 86), (87, 87), (88, 88), (89, 89), (90, 90), (91, 91), (92, 92), (93, 93), (94, 94), (95, 95), (96, 96), (97, 97), (98, 98), (99, 99)] +[(1, 1), (2, 2), (3, 3)] +[(0, 1), (1, 2), (2, 3)] +[(1, 1), (2, 2), (3, 3)] diff --git a/micropython-tests/expected/basics/builtin_eval.py.exp b/micropython-tests/expected/basics/builtin_eval.py.exp new file mode 100644 index 0000000..e69de29 diff --git a/micropython-tests/expected/basics/builtin_eval_buffer.py.exp b/micropython-tests/expected/basics/builtin_eval_buffer.py.exp new file mode 100644 index 0000000..da7f847 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_eval_buffer.py.exp @@ -0,0 +1,2 @@ +2 +4 diff --git a/micropython-tests/expected/basics/builtin_eval_error.py.exp b/micropython-tests/expected/basics/builtin_eval_error.py.exp new file mode 100644 index 0000000..8729fc4 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_eval_error.py.exp @@ -0,0 +1 @@ +SyntaxError diff --git a/micropython-tests/expected/basics/builtin_exec.py.exp b/micropython-tests/expected/basics/builtin_exec.py.exp new file mode 100644 index 0000000..6ab90b8 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_exec.py.exp @@ -0,0 +1,12 @@ +None +42 +84 +11 +11 +3 +3 +11 +11 +NameError +TypeError +TypeError diff --git a/micropython-tests/expected/basics/builtin_exec_buffer.py.exp b/micropython-tests/expected/basics/builtin_exec_buffer.py.exp new file mode 100644 index 0000000..1191247 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_exec_buffer.py.exp @@ -0,0 +1,2 @@ +1 +2 diff --git a/micropython-tests/expected/basics/builtin_filter.py.exp b/micropython-tests/expected/basics/builtin_filter.py.exp new file mode 100644 index 0000000..1529f6b --- /dev/null +++ b/micropython-tests/expected/basics/builtin_filter.py.exp @@ -0,0 +1,2 @@ +[-3, -1, 1, 3] +[-3, -2, -1, 1, 2, 3] diff --git a/micropython-tests/expected/basics/builtin_getattr.py.exp b/micropython-tests/expected/basics/builtin_getattr.py.exp new file mode 100644 index 0000000..f63bce2 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_getattr.py.exp @@ -0,0 +1,9 @@ +132 +34 +47 +123 +456 +34 +a +a +default diff --git a/micropython-tests/expected/basics/builtin_hasattr.py.exp b/micropython-tests/expected/basics/builtin_hasattr.py.exp new file mode 100644 index 0000000..ae5dacb --- /dev/null +++ b/micropython-tests/expected/basics/builtin_hasattr.py.exp @@ -0,0 +1,10 @@ +True +True +True +False +False +True +False +123 +TypeError +TypeError diff --git a/micropython-tests/expected/basics/builtin_hash.py.exp b/micropython-tests/expected/basics/builtin_hash.py.exp new file mode 100644 index 0000000..cf1aa85 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_hash.py.exp @@ -0,0 +1,11 @@ +0 +1 +{(): 1} +{(1,): 1} +True +TypeError +123 +{a instance: 1} +TypeError +TypeError +1 diff --git a/micropython-tests/expected/basics/builtin_hash_gen.py.exp b/micropython-tests/expected/basics/builtin_hash_gen.py.exp new file mode 100644 index 0000000..693061e --- /dev/null +++ b/micropython-tests/expected/basics/builtin_hash_gen.py.exp @@ -0,0 +1,2 @@ + + diff --git a/micropython-tests/expected/basics/builtin_hash_intbig.py.exp b/micropython-tests/expected/basics/builtin_hash_intbig.py.exp new file mode 100644 index 0000000..37fe998 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_hash_intbig.py.exp @@ -0,0 +1,4 @@ +{73786976294838206464: 1} +{-73786976294838206464: 2} +True +True diff --git a/micropython-tests/expected/basics/builtin_hex.py.exp b/micropython-tests/expected/basics/builtin_hex.py.exp new file mode 100644 index 0000000..34f8138 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_hex.py.exp @@ -0,0 +1,6 @@ +0x1 +-0x1 +0xf +-0xf +0x3039 +0x12345 diff --git a/micropython-tests/expected/basics/builtin_hex_intbig.py.exp b/micropython-tests/expected/basics/builtin_hex_intbig.py.exp new file mode 100644 index 0000000..fbab1fc --- /dev/null +++ b/micropython-tests/expected/basics/builtin_hex_intbig.py.exp @@ -0,0 +1,2 @@ +0xab54a98ceb1f0ad2 +0x12345678901234567890 diff --git a/micropython-tests/expected/basics/builtin_id.py.exp b/micropython-tests/expected/basics/builtin_id.py.exp new file mode 100644 index 0000000..59f73ff --- /dev/null +++ b/micropython-tests/expected/basics/builtin_id.py.exp @@ -0,0 +1,4 @@ +False +True +True +True diff --git a/micropython-tests/expected/basics/builtin_issubclass.py.exp b/micropython-tests/expected/basics/builtin_issubclass.py.exp new file mode 100644 index 0000000..2b9e758 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_issubclass.py.exp @@ -0,0 +1,4 @@ +True +True +TypeError +TypeError diff --git a/micropython-tests/expected/basics/builtin_len1.py.exp b/micropython-tests/expected/basics/builtin_len1.py.exp new file mode 100644 index 0000000..9f84bb9 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_len1.py.exp @@ -0,0 +1,7 @@ +0 +1 +2 +0 +3 +0 +2 diff --git a/micropython-tests/expected/basics/builtin_locals.py.exp b/micropython-tests/expected/basics/builtin_locals.py.exp new file mode 100644 index 0000000..2a54a4b --- /dev/null +++ b/micropython-tests/expected/basics/builtin_locals.py.exp @@ -0,0 +1,4 @@ +123 +False +1 +True diff --git a/micropython-tests/expected/basics/builtin_map.py.exp b/micropython-tests/expected/basics/builtin_map.py.exp new file mode 100644 index 0000000..22d8bdc --- /dev/null +++ b/micropython-tests/expected/basics/builtin_map.py.exp @@ -0,0 +1,4 @@ +[1, 0, 1, 0, 1, 0, 1] +[3, 2, 1, 0, 1, 2, 3] +[(-3,), (-2,), (-1,), (0,), (1,), (2,), (3,)] +[1, 1, 4, 27] diff --git a/micropython-tests/expected/basics/builtin_minmax.py.exp b/micropython-tests/expected/basics/builtin_minmax.py.exp new file mode 100644 index 0000000..3d524d8 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_minmax.py.exp @@ -0,0 +1,24 @@ +0 +0 +-1 +-1 +1 +1 +0 +0 +-1 +4 +1 +4 +4 +4 +4 +1 +1 +1 +ValueError +1 +-1 +5 +-1 +-10 diff --git a/micropython-tests/expected/basics/builtin_next_arg2.py.exp b/micropython-tests/expected/basics/builtin_next_arg2.py.exp new file mode 100644 index 0000000..244c948 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_next_arg2.py.exp @@ -0,0 +1,8 @@ +42 +42 +43 +1 +2 +44 +True +45 diff --git a/micropython-tests/expected/basics/builtin_oct.py.exp b/micropython-tests/expected/basics/builtin_oct.py.exp new file mode 100644 index 0000000..f03325b --- /dev/null +++ b/micropython-tests/expected/basics/builtin_oct.py.exp @@ -0,0 +1,6 @@ +0o1 +-0o1 +0o17 +-0o17 +0o30071 +0o12345 diff --git a/micropython-tests/expected/basics/builtin_oct_intbig.py.exp b/micropython-tests/expected/basics/builtin_oct_intbig.py.exp new file mode 100644 index 0000000..d0865b0 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_oct_intbig.py.exp @@ -0,0 +1,2 @@ +0o1255245230635307605322 +0o12345670123456701234 diff --git a/micropython-tests/expected/basics/builtin_ord.py.exp b/micropython-tests/expected/basics/builtin_ord.py.exp new file mode 100644 index 0000000..322dd00 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_ord.py.exp @@ -0,0 +1,10 @@ +97 +TypeError +97 +0 +1 +127 +128 +255 +TypeError +TypeError diff --git a/micropython-tests/expected/basics/builtin_override.py.exp b/micropython-tests/expected/basics/builtin_override.py.exp new file mode 100644 index 0000000..1bed740 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_override.py.exp @@ -0,0 +1,9 @@ +2 +('class', 'A') +import A None 0 +import a None 0 +import a.b None 0 +import a ('a',) 0 +import a.b ('a', 'b') 0 +import a ('a',) 1 +import a ('a', 'b') 2 diff --git a/micropython-tests/expected/basics/builtin_pow.py.exp b/micropython-tests/expected/basics/builtin_pow.py.exp new file mode 100644 index 0000000..fc0d9f2 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_pow.py.exp @@ -0,0 +1,4 @@ +0 +1 +-8 +6561 diff --git a/micropython-tests/expected/basics/builtin_pow3.py.exp b/micropython-tests/expected/basics/builtin_pow3.py.exp new file mode 100644 index 0000000..752e8f0 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_pow3.py.exp @@ -0,0 +1,8 @@ +4 +0 +0 +0 +1 +TypeError expected +TypeError expected +TypeError expected diff --git a/micropython-tests/expected/basics/builtin_pow3_intbig.py.exp b/micropython-tests/expected/basics/builtin_pow3_intbig.py.exp new file mode 100644 index 0000000..21e13a1 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_pow3_intbig.py.exp @@ -0,0 +1,7 @@ +4 +1 +0x100000000000000000000000000000000000000000000000000 +0x1 +0x1 +0x4515e61ffb379f8ec4a230681519293adc8c6451be409a8e0c767076cebb5a0ad048c56759179bd8b5bac23f87dea31ea6994d2538e213db970831a15bc14d459b87879c9b4782f6ff001034aa88e5fb4e80cd65aeccaae3b8f193c472c8ea9cfccd208bfcb469648c790881abdfc40c15a8d6797b479feaa5df29f1112a1f3262fa9c85b6db113595b +0x0 diff --git a/micropython-tests/expected/basics/builtin_print.py.exp b/micropython-tests/expected/basics/builtin_print.py.exp new file mode 100644 index 0000000..b86f914 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_print.py.exp @@ -0,0 +1,11 @@ + +None + +1 +1 2 + + +x +1 +1112 +1 212[{1: 2}] diff --git a/micropython-tests/expected/basics/builtin_property.py.exp b/micropython-tests/expected/basics/builtin_property.py.exp new file mode 100644 index 0000000..d218181 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_property.py.exp @@ -0,0 +1,20 @@ +x get +1 +AttributeError +x get +3 +x set +x get +4 +x del +x get +5 +x set +x get +6 +x del +AttributeError +AttributeError +AttributeError +42 + diff --git a/micropython-tests/expected/basics/builtin_property_inherit.py.exp b/micropython-tests/expected/basics/builtin_property_inherit.py.exp new file mode 100644 index 0000000..d021ff9 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_property_inherit.py.exp @@ -0,0 +1,14 @@ +A x +123 +A x +123 +A x +123 +A x +123 +foo get +foo get +bar get +bar get +2 +baz get diff --git a/micropython-tests/expected/basics/builtin_range.py.exp b/micropython-tests/expected/basics/builtin_range.py.exp new file mode 100644 index 0000000..47d4ca1 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_range.py.exp @@ -0,0 +1,32 @@ +range(0, 4) +False +True +0 +4 +3 +2 +0 +3 +2 +0 +1 +3 +range(0, 4) +range(1, 4) +range(1, 2) +range(1, 3) +range(1, 4, 2) +range(1, 2, 2) +range(1, 4) +range(1, 4) +range(2, 4) +range(1, 3) +range(7, -5, -4) +range(26, 76, 15) +range(76, 26, -15) +range(75, 25, -15) +range(25, 75, 15) +[] +ValueError +TypeError +TypeError diff --git a/micropython-tests/expected/basics/builtin_range_attrs.py.exp b/micropython-tests/expected/basics/builtin_range_attrs.py.exp new file mode 100644 index 0000000..fcbd2e0 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_range_attrs.py.exp @@ -0,0 +1,4 @@ +1 +2 +3 +AttributeError diff --git a/micropython-tests/expected/basics/builtin_range_binop.py.exp b/micropython-tests/expected/basics/builtin_range_binop.py.exp new file mode 100644 index 0000000..0306768 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_range_binop.py.exp @@ -0,0 +1,13 @@ +True +False +True +True +True +True +True +True +True +True +True +False +TypeError diff --git a/micropython-tests/expected/basics/builtin_reversed.py.exp b/micropython-tests/expected/basics/builtin_reversed.py.exp new file mode 100644 index 0000000..d39b4f3 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_reversed.py.exp @@ -0,0 +1,18 @@ +[] +[1] +[3, 2, 1] +[] +[3, 2, 1] +b +a +52 +51 +50 +49 +2 +1 +0 +3 +2 +1 +[1, 2, 3] diff --git a/micropython-tests/expected/basics/builtin_round.py.exp b/micropython-tests/expected/basics/builtin_round.py.exp new file mode 100644 index 0000000..3040a70 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_round.py.exp @@ -0,0 +1,6 @@ +0 +1 +0 +1 +-1 +10 diff --git a/micropython-tests/expected/basics/builtin_round_int.py.exp b/micropython-tests/expected/basics/builtin_round_int.py.exp new file mode 100644 index 0000000..eaca195 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_round_int.py.exp @@ -0,0 +1,14 @@ +1 +1 +120 +120 +130 +0 +20 +20 +12345 +12340 +12345 +-1234 +-1230 +-1234 diff --git a/micropython-tests/expected/basics/builtin_round_intbig.py.exp b/micropython-tests/expected/basics/builtin_round_intbig.py.exp new file mode 100644 index 0000000..a9a021a --- /dev/null +++ b/micropython-tests/expected/basics/builtin_round_intbig.py.exp @@ -0,0 +1,8 @@ +1180591620717411303424 +1180591620717411303420 +1180591620720000000000 +1180591620717411303424 +-1180591620717411303424 +-1180591620717411303420 +-1180591620720000000000 +-1180591620717411303424 diff --git a/micropython-tests/expected/basics/builtin_setattr.py.exp b/micropython-tests/expected/basics/builtin_setattr.py.exp new file mode 100644 index 0000000..273e85f --- /dev/null +++ b/micropython-tests/expected/basics/builtin_setattr.py.exp @@ -0,0 +1,4 @@ +123 +56 +TypeError +AttributeError/TypeError diff --git a/micropython-tests/expected/basics/builtin_slice.py.exp b/micropython-tests/expected/basics/builtin_slice.py.exp new file mode 100644 index 0000000..c8a77f6 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_slice.py.exp @@ -0,0 +1,2 @@ +slice(1, 2, 3) +True diff --git a/micropython-tests/expected/basics/builtin_sorted.py.exp b/micropython-tests/expected/basics/builtin_sorted.py.exp new file mode 100644 index 0000000..f595c1f --- /dev/null +++ b/micropython-tests/expected/basics/builtin_sorted.py.exp @@ -0,0 +1,3 @@ +[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99] +[0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 65, 67, 69, 71, 73, 75, 77, 79, 81, 83, 85, 87, 89, 91, 93, 95, 97, 99] +TypeError diff --git a/micropython-tests/expected/basics/builtin_sum.py.exp b/micropython-tests/expected/basics/builtin_sum.py.exp new file mode 100644 index 0000000..3575d2c --- /dev/null +++ b/micropython-tests/expected/basics/builtin_sum.py.exp @@ -0,0 +1,12 @@ +0 +-2 +0 +-2 +0 +-2 +1 +-1 +3 +1 +45 +43 diff --git a/micropython-tests/expected/basics/builtin_type.py.exp b/micropython-tests/expected/basics/builtin_type.py.exp new file mode 100644 index 0000000..80f8593 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_type.py.exp @@ -0,0 +1,6 @@ + +TypeError +TypeError +TypeError +TypeError +TypeError diff --git a/micropython-tests/expected/basics/builtin_zip.py.exp b/micropython-tests/expected/basics/builtin_zip.py.exp new file mode 100644 index 0000000..aa1b843 --- /dev/null +++ b/micropython-tests/expected/basics/builtin_zip.py.exp @@ -0,0 +1,2 @@ +[] +[(1, 2)] diff --git a/micropython-tests/expected/basics/bytearray1.py.exp b/micropython-tests/expected/basics/bytearray1.py.exp new file mode 100644 index 0000000..6f93094 --- /dev/null +++ b/micropython-tests/expected/basics/bytearray1.py.exp @@ -0,0 +1,37 @@ +bytearray(b'\x00\x00\x00\x00') + +1 200 +200 +bytearray(b'\x01\x02\xc8') +255 +4 +268 +bytearray(b'\x02\xff\n') +bytearray(b'\x01\x02\xff') +bytearray(b'\xff') +123 +True +False +False +False +True +True +True +True +True +True +True +True +True +False +False +False +False +False +False +False +False +False +True +False +True diff --git a/micropython-tests/expected/basics/bytearray_add.py.exp b/micropython-tests/expected/basics/bytearray_add.py.exp new file mode 100644 index 0000000..e009f5c --- /dev/null +++ b/micropython-tests/expected/basics/bytearray_add.py.exp @@ -0,0 +1,3 @@ +bytearray(b'\x01\x02\x00\x00') +bytearray(b'\x01\x02\x00\x00\x00') +bytearray(b'\x01\x02\x00\x00\x00\x00\x00\x00\x00') diff --git a/micropython-tests/expected/basics/bytearray_append.py.exp b/micropython-tests/expected/basics/bytearray_append.py.exp new file mode 100644 index 0000000..ad7d3b8 --- /dev/null +++ b/micropython-tests/expected/basics/bytearray_append.py.exp @@ -0,0 +1,4 @@ +bytearray(b'\x00\x00\x00\x00') +bytearray(b'\x00\x00\x00\x00\x02') +TypeError +bytearray(b'\x00\x00\x00\x00\x02') diff --git a/micropython-tests/expected/basics/bytearray_construct.py.exp b/micropython-tests/expected/basics/bytearray_construct.py.exp new file mode 100644 index 0000000..46195e4 --- /dev/null +++ b/micropython-tests/expected/basics/bytearray_construct.py.exp @@ -0,0 +1,5 @@ +bytearray(b'123') +bytearray(b'1234') +bytearray(b'12345') +bytearray(b'\x01\x02') +bytearray(b'\x01\x02') diff --git a/micropython-tests/expected/basics/bytearray_construct_array.py.exp b/micropython-tests/expected/basics/bytearray_construct_array.py.exp new file mode 100644 index 0000000..292f980 --- /dev/null +++ b/micropython-tests/expected/basics/bytearray_construct_array.py.exp @@ -0,0 +1,2 @@ +bytearray(b'\x01\x02') +bytearray(b'\x01\x01\x02\x02') diff --git a/micropython-tests/expected/basics/bytearray_construct_endian.py.exp b/micropython-tests/expected/basics/bytearray_construct_endian.py.exp new file mode 100644 index 0000000..69b42f2 --- /dev/null +++ b/micropython-tests/expected/basics/bytearray_construct_endian.py.exp @@ -0,0 +1,2 @@ +bytearray(b'\x01\x00\x02\x00') +bytearray(b'\x01\x00\x00\x00\x02\x00\x00\x00') diff --git a/micropython-tests/expected/basics/bytearray_decode.py.exp b/micropython-tests/expected/basics/bytearray_decode.py.exp new file mode 100644 index 0000000..a62b6e3 --- /dev/null +++ b/micropython-tests/expected/basics/bytearray_decode.py.exp @@ -0,0 +1,2 @@ + +abc diff --git a/micropython-tests/expected/basics/bytearray_intbig.py.exp b/micropython-tests/expected/basics/bytearray_intbig.py.exp new file mode 100644 index 0000000..f8e38e6 --- /dev/null +++ b/micropython-tests/expected/basics/bytearray_intbig.py.exp @@ -0,0 +1 @@ +bytearray(b'\x00') diff --git a/micropython-tests/expected/basics/bytearray_slice_assign.py.exp b/micropython-tests/expected/basics/bytearray_slice_assign.py.exp new file mode 100644 index 0000000..45bad24 --- /dev/null +++ b/micropython-tests/expected/basics/bytearray_slice_assign.py.exp @@ -0,0 +1,15 @@ +bytearray(b'\x00\n\x14\x03\x04\x05\x06\x07\x08\t') +bytearray(b'\x00\n\x03\x04\x05\x06\x07\x08\t') +bytearray(b'\x00\x03\x04\x05\x06\x07\x08\t') +bytearray(b'\x00\x01\x02\x03\x04\x05\x06\x07\x08\t') +bytearray(b'\n\x14\x03\x04\x05\x06\x07\x08\t') +bytearray(b'\x03\x04\x05\x06\x07\x08\t') +bytearray(b'\x00\x01\x02\x03\x04\x05\x06\x07\x08\t') +bytearray(b'\n\x14\x07\x08\t') +bytearray(b'\x07\x08\t') +bytearray(b'\x00\x01\x02\x03\x04\x05\x06\x07\x08\t') +bytearray(b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00') +501 0 0 +bytearray(b'\x00\x01\x02\x03\x00\x01\x02\x03\x04\x05\x06\x07\x08\t') +bytearray(b'\x0012345\x00') +409 bytearray(b'12345678aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab') diff --git a/micropython-tests/expected/basics/bytes.py.exp b/micropython-tests/expected/basics/bytes.py.exp new file mode 100644 index 0000000..19b0441 --- /dev/null +++ b/micropython-tests/expected/basics/bytes.py.exp @@ -0,0 +1,28 @@ +b'123' +b'123' +b'123' +b'\\u1234' +b'' +b'abc' + +b'123' +b'123' +b'123' +49 51 +51 +123 +123 +TypeError +150 +b'abc' +b'abc' +TypeError +TypeError +b'\x00\x00\x00' +b'\x03\x02\x01' +b'\x00\x01\x02\x03\x04' +6 +255 142 254 125 +b'\x80\xff' +b'\x80\xff' +ValueError diff --git a/micropython-tests/expected/basics/bytes_add.py.exp b/micropython-tests/expected/basics/bytes_add.py.exp new file mode 100644 index 0000000..4d4c946 --- /dev/null +++ b/micropython-tests/expected/basics/bytes_add.py.exp @@ -0,0 +1,3 @@ +b'123456' +b'123' +b'123' diff --git a/micropython-tests/expected/basics/bytes_add_array.py.exp b/micropython-tests/expected/basics/bytes_add_array.py.exp new file mode 100644 index 0000000..2d4a09a --- /dev/null +++ b/micropython-tests/expected/basics/bytes_add_array.py.exp @@ -0,0 +1,2 @@ +b'123\x15\x15' +b'\x01\x02\x01\x02' diff --git a/micropython-tests/expected/basics/bytes_add_bytearray.py.exp b/micropython-tests/expected/basics/bytes_add_bytearray.py.exp new file mode 100644 index 0000000..a5a4c6a --- /dev/null +++ b/micropython-tests/expected/basics/bytes_add_bytearray.py.exp @@ -0,0 +1,2 @@ +b'123\x00\x00' +b'\x00' diff --git a/micropython-tests/expected/basics/bytes_add_endian.py.exp b/micropython-tests/expected/basics/bytes_add_endian.py.exp new file mode 100644 index 0000000..dd11af5 --- /dev/null +++ b/micropython-tests/expected/basics/bytes_add_endian.py.exp @@ -0,0 +1 @@ +b'123\x01\x00\x00\x00' diff --git a/micropython-tests/expected/basics/bytes_compare.py.exp b/micropython-tests/expected/basics/bytes_compare.py.exp new file mode 100644 index 0000000..585a8d3 --- /dev/null +++ b/micropython-tests/expected/basics/bytes_compare.py.exp @@ -0,0 +1,47 @@ +True +False +False +False +False +== +False +True +True +False +False +True +True +False +True +False +False +False +False +False +True +True +True +False +False +False +False +True +True +True +False +False +True +False +True +True +True +False +False +True +False +True +True +True +False +False +False diff --git a/micropython-tests/expected/basics/bytes_compare2.py.exp b/micropython-tests/expected/basics/bytes_compare2.py.exp new file mode 100644 index 0000000..bc59c12 --- /dev/null +++ b/micropython-tests/expected/basics/bytes_compare2.py.exp @@ -0,0 +1 @@ +False diff --git a/micropython-tests/expected/basics/bytes_compare_array.py.exp b/micropython-tests/expected/basics/bytes_compare_array.py.exp new file mode 100644 index 0000000..0ca9514 --- /dev/null +++ b/micropython-tests/expected/basics/bytes_compare_array.py.exp @@ -0,0 +1 @@ +True diff --git a/micropython-tests/expected/basics/bytes_compare_bytearray.py.exp b/micropython-tests/expected/basics/bytes_compare_bytearray.py.exp new file mode 100644 index 0000000..a2e704c --- /dev/null +++ b/micropython-tests/expected/basics/bytes_compare_bytearray.py.exp @@ -0,0 +1,4 @@ +True +True +True +True diff --git a/micropython-tests/expected/basics/bytes_construct.py.exp b/micropython-tests/expected/basics/bytes_construct.py.exp new file mode 100644 index 0000000..ff2f5fd --- /dev/null +++ b/micropython-tests/expected/basics/bytes_construct.py.exp @@ -0,0 +1,5 @@ +b'\x01\x02' +b'\x01\x02' +ValueError +ValueError +TypeError diff --git a/micropython-tests/expected/basics/bytes_construct_array.py.exp b/micropython-tests/expected/basics/bytes_construct_array.py.exp new file mode 100644 index 0000000..e35d1b3 --- /dev/null +++ b/micropython-tests/expected/basics/bytes_construct_array.py.exp @@ -0,0 +1,2 @@ +b'\x01\x02' +b'\x01\x01\x02\x02' diff --git a/micropython-tests/expected/basics/bytes_construct_bytearray.py.exp b/micropython-tests/expected/basics/bytes_construct_bytearray.py.exp new file mode 100644 index 0000000..0c8e89b --- /dev/null +++ b/micropython-tests/expected/basics/bytes_construct_bytearray.py.exp @@ -0,0 +1 @@ +b'\x00\x00\x00\x00' diff --git a/micropython-tests/expected/basics/bytes_construct_endian.py.exp b/micropython-tests/expected/basics/bytes_construct_endian.py.exp new file mode 100644 index 0000000..0108a86 --- /dev/null +++ b/micropython-tests/expected/basics/bytes_construct_endian.py.exp @@ -0,0 +1,2 @@ +b'\x01\x00\x02\x00' +b'\x01\x00\x00\x00\x02\x00\x00\x00' diff --git a/micropython-tests/expected/basics/bytes_construct_intbig.py.exp b/micropython-tests/expected/basics/bytes_construct_intbig.py.exp new file mode 100644 index 0000000..194b81c --- /dev/null +++ b/micropython-tests/expected/basics/bytes_construct_intbig.py.exp @@ -0,0 +1 @@ +112 diff --git a/micropython-tests/expected/basics/bytes_count.py.exp b/micropython-tests/expected/basics/bytes_count.py.exp new file mode 100644 index 0000000..3f376aa --- /dev/null +++ b/micropython-tests/expected/basics/bytes_count.py.exp @@ -0,0 +1,39 @@ +1 +0 +2 +1 +0 +0 +4 +3 +1 +1 +0 +5 +4 +2 +1 +1 +0 +3 +2 +1 +2 +2 +1 +1 +0 +1 +1 +3 +1 +2 +0 +4 +3 +4 +4 +3 +1 +1 +3 diff --git a/micropython-tests/expected/basics/bytes_find.py.exp b/micropython-tests/expected/basics/bytes_find.py.exp new file mode 100644 index 0000000..e3c5339 --- /dev/null +++ b/micropython-tests/expected/basics/bytes_find.py.exp @@ -0,0 +1,24 @@ +2 +2 +2 +2 +2 +2 +-1 +-1 +-1 +2 +2 +2 +0 +0 +1 +2 +3 +-1 +-1 +-1 +-1 +-1 +-1 +1 diff --git a/micropython-tests/expected/basics/bytes_gen.py.exp b/micropython-tests/expected/basics/bytes_gen.py.exp new file mode 100644 index 0000000..e99570d --- /dev/null +++ b/micropython-tests/expected/basics/bytes_gen.py.exp @@ -0,0 +1 @@ +b'\x00\x01\x02\x03' diff --git a/micropython-tests/expected/basics/bytes_large.py.exp b/micropython-tests/expected/basics/bytes_large.py.exp new file mode 100644 index 0000000..e69de29 diff --git a/micropython-tests/expected/basics/bytes_mult.py.exp b/micropython-tests/expected/basics/bytes_mult.py.exp new file mode 100644 index 0000000..335f207 --- /dev/null +++ b/micropython-tests/expected/basics/bytes_mult.py.exp @@ -0,0 +1,12 @@ +b'00000' +b'' +b'' +b'' +b'' +b'' +b'' +b'1212' +b'1212' +b'12121212' +b'12121212' +b'123' b'123123123' diff --git a/micropython-tests/expected/basics/bytes_partition.py.exp b/micropython-tests/expected/basics/bytes_partition.py.exp new file mode 100644 index 0000000..9e25937 --- /dev/null +++ b/micropython-tests/expected/basics/bytes_partition.py.exp @@ -0,0 +1,17 @@ +(b'asdf', b'', b'') +(b'', b'a', b'sdf') +(b'a', b's', b'df') +(b'asd', b'f', b'') +(b'as', b'd', b'f') +(b'', b'asd', b'f') +(b'a', b'sdf', b'') +(b'', b'as', b'df') +(b'as', b'df', b'') +(b'', b'asdf', b'') +(b'asdf', b'', b'') +(b'asdf', b'', b'') +(b'asdf', b'', b'') +(b'', b'a', b'bba') +(b'a', b'b', b'ba') +Raised TypeError +Raised ValueError diff --git a/micropython-tests/expected/basics/bytes_replace.py.exp b/micropython-tests/expected/basics/bytes_replace.py.exp new file mode 100644 index 0000000..cb749c8 --- /dev/null +++ b/micropython-tests/expected/basics/bytes_replace.py.exp @@ -0,0 +1,12 @@ +b'' +b'aaa' +b'bbb' +b'bsdfbsdf' +b'ccbbccbbccbbaa' +b'a' +b'testtest' +b'testINGtestING!' +b'1' +b'1A1' +b'1A1B1' +b'12A12B12' diff --git a/micropython-tests/expected/basics/bytes_split.py.exp b/micropython-tests/expected/basics/bytes_split.py.exp new file mode 100644 index 0000000..ddfbe07 --- /dev/null +++ b/micropython-tests/expected/basics/bytes_split.py.exp @@ -0,0 +1,20 @@ +[b'a', b'b'] +[b'a', b'b'] +[b'a', b'b '] +[b'a', b'b'] +[b'a', b'b c '] +[b'a b c '] +[b'a', b'b', b'c'] +ValueError +[b'', b'bc'] +[b'a', b'c'] +[b'ab', b''] +[b'abc'] +[b'', b'c'] +[b'a', b''] +[b'', b''] +[b'abc'] +[b'a', b'a', b''] +[b'abcabc'] +[b'a', b'abc'] +[b'a', b'a', b''] diff --git a/micropython-tests/expected/basics/bytes_strip.py.exp b/micropython-tests/expected/basics/bytes_strip.py.exp new file mode 100644 index 0000000..ba23cda --- /dev/null +++ b/micropython-tests/expected/basics/bytes_strip.py.exp @@ -0,0 +1,11 @@ +b'' +b'' +b'T E S T' +b'abcab' +b'aaa' +b'bc ef' +b'spacious ' +b'example.com' +b' spacious' +b'mississ' +True diff --git a/micropython-tests/expected/basics/bytes_subscr.py.exp b/micropython-tests/expected/basics/bytes_subscr.py.exp new file mode 100644 index 0000000..d3a860f --- /dev/null +++ b/micropython-tests/expected/basics/bytes_subscr.py.exp @@ -0,0 +1,5 @@ +49 +50 +51 +TypeError +TypeError diff --git a/micropython-tests/expected/basics/class1.py.exp b/micropython-tests/expected/basics/class1.py.exp new file mode 100644 index 0000000..94ebaf9 --- /dev/null +++ b/micropython-tests/expected/basics/class1.py.exp @@ -0,0 +1,4 @@ +1 +2 +3 +4 diff --git a/micropython-tests/expected/basics/class2.py.exp b/micropython-tests/expected/basics/class2.py.exp new file mode 100644 index 0000000..8aad7b9 --- /dev/null +++ b/micropython-tests/expected/basics/class2.py.exp @@ -0,0 +1,5 @@ +True +1 +True +4 +TypeError diff --git a/micropython-tests/expected/basics/class3.py.exp b/micropython-tests/expected/basics/class3.py.exp new file mode 100644 index 0000000..e7511fa --- /dev/null +++ b/micropython-tests/expected/basics/class3.py.exp @@ -0,0 +1,12 @@ + + +True +False +True +True +True +False +True +True +A.a() called +A.a() called diff --git a/micropython-tests/expected/basics/class_bases.py.exp b/micropython-tests/expected/basics/class_bases.py.exp new file mode 100644 index 0000000..0e9a501 --- /dev/null +++ b/micropython-tests/expected/basics/class_bases.py.exp @@ -0,0 +1,18 @@ +True +True +True +True +True +True +True +True +True +True +True +True +True +True +True +True +True +True diff --git a/micropython-tests/expected/basics/class_bind_self.py.exp b/micropython-tests/expected/basics/class_bind_self.py.exp new file mode 100644 index 0000000..ed9a5c2 --- /dev/null +++ b/micropython-tests/expected/basics/class_bind_self.py.exp @@ -0,0 +1,14 @@ +('C.f1', True, 1) +('C.f2', True, 2) +('f3', True) +(True, 4) +5 +6 +A.__str__ 7 +('A.__call__', 8) +('A.foo', 9, 9) +10 +11 +A.__str__ 12 +('A.__call__', 13) +('A.foo', 9, 14) diff --git a/micropython-tests/expected/basics/class_binop.py.exp b/micropython-tests/expected/basics/class_binop.py.exp new file mode 100644 index 0000000..50f566c --- /dev/null +++ b/micropython-tests/expected/basics/class_binop.py.exp @@ -0,0 +1,90 @@ +eq +True +lt +False +gt +False +le +True +ge +True +eq +False +lt +True +gt +False +le +True +ge +False +eq +False +lt +True +gt +False +le +True +ge +False +eq +False +lt +False +gt +True +le +False +ge +True +eq +True +lt +False +gt +False +le +True +ge +True +eq +False +lt +True +gt +False +le +True +ge +False +eq +False +lt +False +gt +True +le +False +ge +True +eq +False +lt +False +gt +True +le +False +ge +True +eq +True +lt +False +gt +False +le +True +ge +True diff --git a/micropython-tests/expected/basics/class_call.py.exp b/micropython-tests/expected/basics/class_call.py.exp new file mode 100644 index 0000000..fdd1c20 --- /dev/null +++ b/micropython-tests/expected/basics/class_call.py.exp @@ -0,0 +1,3 @@ +call 1 +item +TypeError diff --git a/micropython-tests/expected/basics/class_contains.py.exp b/micropython-tests/expected/basics/class_contains.py.exp new file mode 100644 index 0000000..0dac781 --- /dev/null +++ b/micropython-tests/expected/basics/class_contains.py.exp @@ -0,0 +1,7 @@ +True +True +True +False +True +True +False diff --git a/micropython-tests/expected/basics/class_delattr_setattr.py.exp b/micropython-tests/expected/basics/class_delattr_setattr.py.exp new file mode 100644 index 0000000..14fea72 --- /dev/null +++ b/micropython-tests/expected/basics/class_delattr_setattr.py.exp @@ -0,0 +1,19 @@ +get foo +1 +set bar 2 +del baz +set __setattr__ 1 +del __delattr__ +1 2 +3 2 +AttributeError +a = 5 +AttributeError +5 +6 +TypeError +del a +5 +AttributeError +AttributeError +AttributeError diff --git a/micropython-tests/expected/basics/class_descriptor.py.exp b/micropython-tests/expected/basics/class_descriptor.py.exp new file mode 100644 index 0000000..f2e1632 --- /dev/null +++ b/micropython-tests/expected/basics/class_descriptor.py.exp @@ -0,0 +1,9 @@ +get +True +True +result +set +True +a +delete +True diff --git a/micropython-tests/expected/basics/class_dict.py.exp b/micropython-tests/expected/basics/class_dict.py.exp new file mode 100644 index 0000000..f616a6b --- /dev/null +++ b/micropython-tests/expected/basics/class_dict.py.exp @@ -0,0 +1,3 @@ +True +1 bar +True diff --git a/micropython-tests/expected/basics/class_emptybases.py.exp b/micropython-tests/expected/basics/class_emptybases.py.exp new file mode 100644 index 0000000..e69de29 diff --git a/micropython-tests/expected/basics/class_getattr.py.exp b/micropython-tests/expected/basics/class_getattr.py.exp new file mode 100644 index 0000000..4e6450c --- /dev/null +++ b/micropython-tests/expected/basics/class_getattr.py.exp @@ -0,0 +1,3 @@ +__getattr__ add +member __add__ +__add__ diff --git a/micropython-tests/expected/basics/class_inherit1.py.exp b/micropython-tests/expected/basics/class_inherit1.py.exp new file mode 100644 index 0000000..f8a4827 --- /dev/null +++ b/micropython-tests/expected/basics/class_inherit1.py.exp @@ -0,0 +1,5 @@ +A init 1 +A init 1 +B init 1 2 +1 2 +1 2 diff --git a/micropython-tests/expected/basics/class_inherit_mul.py.exp b/micropython-tests/expected/basics/class_inherit_mul.py.exp new file mode 100644 index 0000000..5d9ef83 --- /dev/null +++ b/micropython-tests/expected/basics/class_inherit_mul.py.exp @@ -0,0 +1,9 @@ +True +True +A init 1 +B init 2 +Sub init +2 +2 +2 +2 diff --git a/micropython-tests/expected/basics/class_inplace_op.py.exp b/micropython-tests/expected/basics/class_inplace_op.py.exp new file mode 100644 index 0000000..a3cc550 --- /dev/null +++ b/micropython-tests/expected/basics/class_inplace_op.py.exp @@ -0,0 +1,4 @@ +A(8) +A(5) +L([1, 2, 3, 4]) +L([1, 2, 3, 4]) diff --git a/micropython-tests/expected/basics/class_instance_override.py.exp b/micropython-tests/expected/basics/class_instance_override.py.exp new file mode 100644 index 0000000..1191247 --- /dev/null +++ b/micropython-tests/expected/basics/class_instance_override.py.exp @@ -0,0 +1,2 @@ +1 +2 diff --git a/micropython-tests/expected/basics/class_item.py.exp b/micropython-tests/expected/basics/class_item.py.exp new file mode 100644 index 0000000..886d43c --- /dev/null +++ b/micropython-tests/expected/basics/class_item.py.exp @@ -0,0 +1,5 @@ +get 1 +item +set 1 2 +del 3 +TypeError diff --git a/micropython-tests/expected/basics/class_misc.py.exp b/micropython-tests/expected/basics/class_misc.py.exp new file mode 100644 index 0000000..6002b71 --- /dev/null +++ b/micropython-tests/expected/basics/class_misc.py.exp @@ -0,0 +1 @@ +TypeError diff --git a/micropython-tests/expected/basics/class_new.py.exp b/micropython-tests/expected/basics/class_new.py.exp new file mode 100644 index 0000000..7fea824 --- /dev/null +++ b/micropython-tests/expected/basics/class_new.py.exp @@ -0,0 +1,11 @@ +A.__new__ +A.__init__ +A.meth +A.__new__ +A.meth +A.__new__ +A.meth +B.__new__ 1 2 +B inst: None +C.__new__ +True diff --git a/micropython-tests/expected/basics/class_notimpl.py.exp b/micropython-tests/expected/basics/class_notimpl.py.exp new file mode 100644 index 0000000..3f93895 --- /dev/null +++ b/micropython-tests/expected/basics/class_notimpl.py.exp @@ -0,0 +1,9 @@ +C(0) + 1 +TypeError +C(0) - 2 +TypeError +C(0) < 1 +TypeError +- C(0) +NotImplemented + diff --git a/micropython-tests/expected/basics/class_number.py.exp b/micropython-tests/expected/basics/class_number.py.exp new file mode 100644 index 0000000..d495086 --- /dev/null +++ b/micropython-tests/expected/basics/class_number.py.exp @@ -0,0 +1,2 @@ +0 + 1 +0 - 2 diff --git a/micropython-tests/expected/basics/class_staticclassmethod.py.exp b/micropython-tests/expected/basics/class_staticclassmethod.py.exp new file mode 100644 index 0000000..df34b37 --- /dev/null +++ b/micropython-tests/expected/basics/class_staticclassmethod.py.exp @@ -0,0 +1,8 @@ +f 0 +g 0 +sub 1 +add 2 +static get 1 +item +static set 1 2 +static del 3 diff --git a/micropython-tests/expected/basics/class_store.py.exp b/micropython-tests/expected/basics/class_store.py.exp new file mode 100644 index 0000000..20d32c4 --- /dev/null +++ b/micropython-tests/expected/basics/class_store.py.exp @@ -0,0 +1,6 @@ +1 +1 3 +2 3 +2 3 +2 +4 diff --git a/micropython-tests/expected/basics/class_store_class.py.exp b/micropython-tests/expected/basics/class_store_class.py.exp new file mode 100644 index 0000000..709fd51 --- /dev/null +++ b/micropython-tests/expected/basics/class_store_class.py.exp @@ -0,0 +1,2 @@ +b'a' b'b' +All's ok diff --git a/micropython-tests/expected/basics/class_str.py.exp b/micropython-tests/expected/basics/class_str.py.exp new file mode 100644 index 0000000..39154c1 --- /dev/null +++ b/micropython-tests/expected/basics/class_str.py.exp @@ -0,0 +1,7 @@ +str +repr +str +True +repr +repr +str diff --git a/micropython-tests/expected/basics/class_super.py.exp b/micropython-tests/expected/basics/class_super.py.exp new file mode 100644 index 0000000..7ad18a5 --- /dev/null +++ b/micropython-tests/expected/basics/class_super.py.exp @@ -0,0 +1,10 @@ +in Sub meth +in Base meth 1 + [] +[] ^= [] --> [] +[] &= [] --> [] +[] -= [] --> [] +[] == [] = True +[] != [] = False +[] > [] = False +[] >= [] = True +[] < [] = False +[] <= [] = True +[] | [1] = [1] +[] ^ [1] = [1] +[] & [1] = [] +[] - [1] = [] +[] |= [1] --> [1] +[] ^= [1] --> [1] +[] &= [1] --> [] +[] -= [1] --> [] +[] == [1] = False +[] != [1] = True +[] > [1] = False +[] >= [1] = False +[] < [1] = True +[] <= [1] = True +[] | [1, 2] = [1, 2] +[] ^ [1, 2] = [1, 2] +[] & [1, 2] = [] +[] - [1, 2] = [] +[] |= [1, 2] --> [1, 2] +[] ^= [1, 2] --> [1, 2] +[] &= [1, 2] --> [] +[] -= [1, 2] --> [] +[] == [1, 2] = False +[] != [1, 2] = True +[] > [1, 2] = False +[] >= [1, 2] = False +[] < [1, 2] = True +[] <= [1, 2] = True +[] | [1, 2, 3] = [1, 2, 3] +[] ^ [1, 2, 3] = [1, 2, 3] +[] & [1, 2, 3] = [] +[] - [1, 2, 3] = [] +[] |= [1, 2, 3] --> [1, 2, 3] +[] ^= [1, 2, 3] --> [1, 2, 3] +[] &= [1, 2, 3] --> [] +[] -= [1, 2, 3] --> [] +[] == [1, 2, 3] = False +[] != [1, 2, 3] = True +[] > [1, 2, 3] = False +[] >= [1, 2, 3] = False +[] < [1, 2, 3] = True +[] <= [1, 2, 3] = True +[] | [2, 3] = [2, 3] +[] ^ [2, 3] = [2, 3] +[] & [2, 3] = [] +[] - [2, 3] = [] +[] |= [2, 3] --> [2, 3] +[] ^= [2, 3] --> [2, 3] +[] &= [2, 3] --> [] +[] -= [2, 3] --> [] +[] == [2, 3] = False +[] != [2, 3] = True +[] > [2, 3] = False +[] >= [2, 3] = False +[] < [2, 3] = True +[] <= [2, 3] = True +[] | [2, 3, 5] = [2, 3, 5] +[] ^ [2, 3, 5] = [2, 3, 5] +[] & [2, 3, 5] = [] +[] - [2, 3, 5] = [] +[] |= [2, 3, 5] --> [2, 3, 5] +[] ^= [2, 3, 5] --> [2, 3, 5] +[] &= [2, 3, 5] --> [] +[] -= [2, 3, 5] --> [] +[] == [2, 3, 5] = False +[] != [2, 3, 5] = True +[] > [2, 3, 5] = False +[] >= [2, 3, 5] = False +[] < [2, 3, 5] = True +[] <= [2, 3, 5] = True +[] | [5] = [5] +[] ^ [5] = [5] +[] & [5] = [] +[] - [5] = [] +[] |= [5] --> [5] +[] ^= [5] --> [5] +[] &= [5] --> [] +[] -= [5] --> [] +[] == [5] = False +[] != [5] = True +[] > [5] = False +[] >= [5] = False +[] < [5] = True +[] <= [5] = True +[] | [7] = [7] +[] ^ [7] = [7] +[] & [7] = [] +[] - [7] = [] +[] |= [7] --> [7] +[] ^= [7] --> [7] +[] &= [7] --> [] +[] -= [7] --> [] +[] == [7] = False +[] != [7] = True +[] > [7] = False +[] >= [7] = False +[] < [7] = True +[] <= [7] = True +[1] | [] = [1] +[1] ^ [] = [1] +[1] & [] = [] +[1] - [] = [1] +[1] |= [] --> [1] +[1] ^= [] --> [1] +[1] &= [] --> [] +[1] -= [] --> [1] +[1] == [] = False +[1] != [] = True +[1] > [] = True +[1] >= [] = True +[1] < [] = False +[1] <= [] = False +[1] | [1] = [1] +[1] ^ [1] = [] +[1] & [1] = [1] +[1] - [1] = [] +[1] |= [1] --> [1] +[1] ^= [1] --> [] +[1] &= [1] --> [1] +[1] -= [1] --> [] +[1] == [1] = True +[1] != [1] = False +[1] > [1] = False +[1] >= [1] = True +[1] < [1] = False +[1] <= [1] = True +[1] | [1, 2] = [1, 2] +[1] ^ [1, 2] = [2] +[1] & [1, 2] = [1] +[1] - [1, 2] = [] +[1] |= [1, 2] --> [1, 2] +[1] ^= [1, 2] --> [2] +[1] &= [1, 2] --> [1] +[1] -= [1, 2] --> [] +[1] == [1, 2] = False +[1] != [1, 2] = True +[1] > [1, 2] = False +[1] >= [1, 2] = False +[1] < [1, 2] = True +[1] <= [1, 2] = True +[1] | [1, 2, 3] = [1, 2, 3] +[1] ^ [1, 2, 3] = [2, 3] +[1] & [1, 2, 3] = [1] +[1] - [1, 2, 3] = [] +[1] |= [1, 2, 3] --> [1, 2, 3] +[1] ^= [1, 2, 3] --> [2, 3] +[1] &= [1, 2, 3] --> [1] +[1] -= [1, 2, 3] --> [] +[1] == [1, 2, 3] = False +[1] != [1, 2, 3] = True +[1] > [1, 2, 3] = False +[1] >= [1, 2, 3] = False +[1] < [1, 2, 3] = True +[1] <= [1, 2, 3] = True +[1] | [2, 3] = [1, 2, 3] +[1] ^ [2, 3] = [1, 2, 3] +[1] & [2, 3] = [] +[1] - [2, 3] = [1] +[1] |= [2, 3] --> [1, 2, 3] +[1] ^= [2, 3] --> [1, 2, 3] +[1] &= [2, 3] --> [] +[1] -= [2, 3] --> [1] +[1] == [2, 3] = False +[1] != [2, 3] = True +[1] > [2, 3] = False +[1] >= [2, 3] = False +[1] < [2, 3] = False +[1] <= [2, 3] = False +[1] | [2, 3, 5] = [1, 2, 3, 5] +[1] ^ [2, 3, 5] = [1, 2, 3, 5] +[1] & [2, 3, 5] = [] +[1] - [2, 3, 5] = [1] +[1] |= [2, 3, 5] --> [1, 2, 3, 5] +[1] ^= [2, 3, 5] --> [1, 2, 3, 5] +[1] &= [2, 3, 5] --> [] +[1] -= [2, 3, 5] --> [1] +[1] == [2, 3, 5] = False +[1] != [2, 3, 5] = True +[1] > [2, 3, 5] = False +[1] >= [2, 3, 5] = False +[1] < [2, 3, 5] = False +[1] <= [2, 3, 5] = False +[1] | [5] = [1, 5] +[1] ^ [5] = [1, 5] +[1] & [5] = [] +[1] - [5] = [1] +[1] |= [5] --> [1, 5] +[1] ^= [5] --> [1, 5] +[1] &= [5] --> [] +[1] -= [5] --> [1] +[1] == [5] = False +[1] != [5] = True +[1] > [5] = False +[1] >= [5] = False +[1] < [5] = False +[1] <= [5] = False +[1] | [7] = [1, 7] +[1] ^ [7] = [1, 7] +[1] & [7] = [] +[1] - [7] = [1] +[1] |= [7] --> [1, 7] +[1] ^= [7] --> [1, 7] +[1] &= [7] --> [] +[1] -= [7] --> [1] +[1] == [7] = False +[1] != [7] = True +[1] > [7] = False +[1] >= [7] = False +[1] < [7] = False +[1] <= [7] = False +[1, 2] | [] = [1, 2] +[1, 2] ^ [] = [1, 2] +[1, 2] & [] = [] +[1, 2] - [] = [1, 2] +[1, 2] |= [] --> [1, 2] +[1, 2] ^= [] --> [1, 2] +[1, 2] &= [] --> [] +[1, 2] -= [] --> [1, 2] +[1, 2] == [] = False +[1, 2] != [] = True +[1, 2] > [] = True +[1, 2] >= [] = True +[1, 2] < [] = False +[1, 2] <= [] = False +[1, 2] | [1] = [1, 2] +[1, 2] ^ [1] = [2] +[1, 2] & [1] = [1] +[1, 2] - [1] = [2] +[1, 2] |= [1] --> [1, 2] +[1, 2] ^= [1] --> [2] +[1, 2] &= [1] --> [1] +[1, 2] -= [1] --> [2] +[1, 2] == [1] = False +[1, 2] != [1] = True +[1, 2] > [1] = True +[1, 2] >= [1] = True +[1, 2] < [1] = False +[1, 2] <= [1] = False +[1, 2] | [1, 2] = [1, 2] +[1, 2] ^ [1, 2] = [] +[1, 2] & [1, 2] = [1, 2] +[1, 2] - [1, 2] = [] +[1, 2] |= [1, 2] --> [1, 2] +[1, 2] ^= [1, 2] --> [] +[1, 2] &= [1, 2] --> [1, 2] +[1, 2] -= [1, 2] --> [] +[1, 2] == [1, 2] = True +[1, 2] != [1, 2] = False +[1, 2] > [1, 2] = False +[1, 2] >= [1, 2] = True +[1, 2] < [1, 2] = False +[1, 2] <= [1, 2] = True +[1, 2] | [1, 2, 3] = [1, 2, 3] +[1, 2] ^ [1, 2, 3] = [3] +[1, 2] & [1, 2, 3] = [1, 2] +[1, 2] - [1, 2, 3] = [] +[1, 2] |= [1, 2, 3] --> [1, 2, 3] +[1, 2] ^= [1, 2, 3] --> [3] +[1, 2] &= [1, 2, 3] --> [1, 2] +[1, 2] -= [1, 2, 3] --> [] +[1, 2] == [1, 2, 3] = False +[1, 2] != [1, 2, 3] = True +[1, 2] > [1, 2, 3] = False +[1, 2] >= [1, 2, 3] = False +[1, 2] < [1, 2, 3] = True +[1, 2] <= [1, 2, 3] = True +[1, 2] | [2, 3] = [1, 2, 3] +[1, 2] ^ [2, 3] = [1, 3] +[1, 2] & [2, 3] = [2] +[1, 2] - [2, 3] = [1] +[1, 2] |= [2, 3] --> [1, 2, 3] +[1, 2] ^= [2, 3] --> [1, 3] +[1, 2] &= [2, 3] --> [2] +[1, 2] -= [2, 3] --> [1] +[1, 2] == [2, 3] = False +[1, 2] != [2, 3] = True +[1, 2] > [2, 3] = False +[1, 2] >= [2, 3] = False +[1, 2] < [2, 3] = False +[1, 2] <= [2, 3] = False +[1, 2] | [2, 3, 5] = [1, 2, 3, 5] +[1, 2] ^ [2, 3, 5] = [1, 3, 5] +[1, 2] & [2, 3, 5] = [2] +[1, 2] - [2, 3, 5] = [1] +[1, 2] |= [2, 3, 5] --> [1, 2, 3, 5] +[1, 2] ^= [2, 3, 5] --> [1, 3, 5] +[1, 2] &= [2, 3, 5] --> [2] +[1, 2] -= [2, 3, 5] --> [1] +[1, 2] == [2, 3, 5] = False +[1, 2] != [2, 3, 5] = True +[1, 2] > [2, 3, 5] = False +[1, 2] >= [2, 3, 5] = False +[1, 2] < [2, 3, 5] = False +[1, 2] <= [2, 3, 5] = False +[1, 2] | [5] = [1, 2, 5] +[1, 2] ^ [5] = [1, 2, 5] +[1, 2] & [5] = [] +[1, 2] - [5] = [1, 2] +[1, 2] |= [5] --> [1, 2, 5] +[1, 2] ^= [5] --> [1, 2, 5] +[1, 2] &= [5] --> [] +[1, 2] -= [5] --> [1, 2] +[1, 2] == [5] = False +[1, 2] != [5] = True +[1, 2] > [5] = False +[1, 2] >= [5] = False +[1, 2] < [5] = False +[1, 2] <= [5] = False +[1, 2] | [7] = [1, 2, 7] +[1, 2] ^ [7] = [1, 2, 7] +[1, 2] & [7] = [] +[1, 2] - [7] = [1, 2] +[1, 2] |= [7] --> [1, 2, 7] +[1, 2] ^= [7] --> [1, 2, 7] +[1, 2] &= [7] --> [] +[1, 2] -= [7] --> [1, 2] +[1, 2] == [7] = False +[1, 2] != [7] = True +[1, 2] > [7] = False +[1, 2] >= [7] = False +[1, 2] < [7] = False +[1, 2] <= [7] = False +[1, 2, 3] | [] = [1, 2, 3] +[1, 2, 3] ^ [] = [1, 2, 3] +[1, 2, 3] & [] = [] +[1, 2, 3] - [] = [1, 2, 3] +[1, 2, 3] |= [] --> [1, 2, 3] +[1, 2, 3] ^= [] --> [1, 2, 3] +[1, 2, 3] &= [] --> [] +[1, 2, 3] -= [] --> [1, 2, 3] +[1, 2, 3] == [] = False +[1, 2, 3] != [] = True +[1, 2, 3] > [] = True +[1, 2, 3] >= [] = True +[1, 2, 3] < [] = False +[1, 2, 3] <= [] = False +[1, 2, 3] | [1] = [1, 2, 3] +[1, 2, 3] ^ [1] = [2, 3] +[1, 2, 3] & [1] = [1] +[1, 2, 3] - [1] = [2, 3] +[1, 2, 3] |= [1] --> [1, 2, 3] +[1, 2, 3] ^= [1] --> [2, 3] +[1, 2, 3] &= [1] --> [1] +[1, 2, 3] -= [1] --> [2, 3] +[1, 2, 3] == [1] = False +[1, 2, 3] != [1] = True +[1, 2, 3] > [1] = True +[1, 2, 3] >= [1] = True +[1, 2, 3] < [1] = False +[1, 2, 3] <= [1] = False +[1, 2, 3] | [1, 2] = [1, 2, 3] +[1, 2, 3] ^ [1, 2] = [3] +[1, 2, 3] & [1, 2] = [1, 2] +[1, 2, 3] - [1, 2] = [3] +[1, 2, 3] |= [1, 2] --> [1, 2, 3] +[1, 2, 3] ^= [1, 2] --> [3] +[1, 2, 3] &= [1, 2] --> [1, 2] +[1, 2, 3] -= [1, 2] --> [3] +[1, 2, 3] == [1, 2] = False +[1, 2, 3] != [1, 2] = True +[1, 2, 3] > [1, 2] = True +[1, 2, 3] >= [1, 2] = True +[1, 2, 3] < [1, 2] = False +[1, 2, 3] <= [1, 2] = False +[1, 2, 3] | [1, 2, 3] = [1, 2, 3] +[1, 2, 3] ^ [1, 2, 3] = [] +[1, 2, 3] & [1, 2, 3] = [1, 2, 3] +[1, 2, 3] - [1, 2, 3] = [] +[1, 2, 3] |= [1, 2, 3] --> [1, 2, 3] +[1, 2, 3] ^= [1, 2, 3] --> [] +[1, 2, 3] &= [1, 2, 3] --> [1, 2, 3] +[1, 2, 3] -= [1, 2, 3] --> [] +[1, 2, 3] == [1, 2, 3] = True +[1, 2, 3] != [1, 2, 3] = False +[1, 2, 3] > [1, 2, 3] = False +[1, 2, 3] >= [1, 2, 3] = True +[1, 2, 3] < [1, 2, 3] = False +[1, 2, 3] <= [1, 2, 3] = True +[1, 2, 3] | [2, 3] = [1, 2, 3] +[1, 2, 3] ^ [2, 3] = [1] +[1, 2, 3] & [2, 3] = [2, 3] +[1, 2, 3] - [2, 3] = [1] +[1, 2, 3] |= [2, 3] --> [1, 2, 3] +[1, 2, 3] ^= [2, 3] --> [1] +[1, 2, 3] &= [2, 3] --> [2, 3] +[1, 2, 3] -= [2, 3] --> [1] +[1, 2, 3] == [2, 3] = False +[1, 2, 3] != [2, 3] = True +[1, 2, 3] > [2, 3] = True +[1, 2, 3] >= [2, 3] = True +[1, 2, 3] < [2, 3] = False +[1, 2, 3] <= [2, 3] = False +[1, 2, 3] | [2, 3, 5] = [1, 2, 3, 5] +[1, 2, 3] ^ [2, 3, 5] = [1, 5] +[1, 2, 3] & [2, 3, 5] = [2, 3] +[1, 2, 3] - [2, 3, 5] = [1] +[1, 2, 3] |= [2, 3, 5] --> [1, 2, 3, 5] +[1, 2, 3] ^= [2, 3, 5] --> [1, 5] +[1, 2, 3] &= [2, 3, 5] --> [2, 3] +[1, 2, 3] -= [2, 3, 5] --> [1] +[1, 2, 3] == [2, 3, 5] = False +[1, 2, 3] != [2, 3, 5] = True +[1, 2, 3] > [2, 3, 5] = False +[1, 2, 3] >= [2, 3, 5] = False +[1, 2, 3] < [2, 3, 5] = False +[1, 2, 3] <= [2, 3, 5] = False +[1, 2, 3] | [5] = [1, 2, 3, 5] +[1, 2, 3] ^ [5] = [1, 2, 3, 5] +[1, 2, 3] & [5] = [] +[1, 2, 3] - [5] = [1, 2, 3] +[1, 2, 3] |= [5] --> [1, 2, 3, 5] +[1, 2, 3] ^= [5] --> [1, 2, 3, 5] +[1, 2, 3] &= [5] --> [] +[1, 2, 3] -= [5] --> [1, 2, 3] +[1, 2, 3] == [5] = False +[1, 2, 3] != [5] = True +[1, 2, 3] > [5] = False +[1, 2, 3] >= [5] = False +[1, 2, 3] < [5] = False +[1, 2, 3] <= [5] = False +[1, 2, 3] | [7] = [1, 2, 3, 7] +[1, 2, 3] ^ [7] = [1, 2, 3, 7] +[1, 2, 3] & [7] = [] +[1, 2, 3] - [7] = [1, 2, 3] +[1, 2, 3] |= [7] --> [1, 2, 3, 7] +[1, 2, 3] ^= [7] --> [1, 2, 3, 7] +[1, 2, 3] &= [7] --> [] +[1, 2, 3] -= [7] --> [1, 2, 3] +[1, 2, 3] == [7] = False +[1, 2, 3] != [7] = True +[1, 2, 3] > [7] = False +[1, 2, 3] >= [7] = False +[1, 2, 3] < [7] = False +[1, 2, 3] <= [7] = False +[2, 3] | [] = [2, 3] +[2, 3] ^ [] = [2, 3] +[2, 3] & [] = [] +[2, 3] - [] = [2, 3] +[2, 3] |= [] --> [2, 3] +[2, 3] ^= [] --> [2, 3] +[2, 3] &= [] --> [] +[2, 3] -= [] --> [2, 3] +[2, 3] == [] = False +[2, 3] != [] = True +[2, 3] > [] = True +[2, 3] >= [] = True +[2, 3] < [] = False +[2, 3] <= [] = False +[2, 3] | [1] = [1, 2, 3] +[2, 3] ^ [1] = [1, 2, 3] +[2, 3] & [1] = [] +[2, 3] - [1] = [2, 3] +[2, 3] |= [1] --> [1, 2, 3] +[2, 3] ^= [1] --> [1, 2, 3] +[2, 3] &= [1] --> [] +[2, 3] -= [1] --> [2, 3] +[2, 3] == [1] = False +[2, 3] != [1] = True +[2, 3] > [1] = False +[2, 3] >= [1] = False +[2, 3] < [1] = False +[2, 3] <= [1] = False +[2, 3] | [1, 2] = [1, 2, 3] +[2, 3] ^ [1, 2] = [1, 3] +[2, 3] & [1, 2] = [2] +[2, 3] - [1, 2] = [3] +[2, 3] |= [1, 2] --> [1, 2, 3] +[2, 3] ^= [1, 2] --> [1, 3] +[2, 3] &= [1, 2] --> [2] +[2, 3] -= [1, 2] --> [3] +[2, 3] == [1, 2] = False +[2, 3] != [1, 2] = True +[2, 3] > [1, 2] = False +[2, 3] >= [1, 2] = False +[2, 3] < [1, 2] = False +[2, 3] <= [1, 2] = False +[2, 3] | [1, 2, 3] = [1, 2, 3] +[2, 3] ^ [1, 2, 3] = [1] +[2, 3] & [1, 2, 3] = [2, 3] +[2, 3] - [1, 2, 3] = [] +[2, 3] |= [1, 2, 3] --> [1, 2, 3] +[2, 3] ^= [1, 2, 3] --> [1] +[2, 3] &= [1, 2, 3] --> [2, 3] +[2, 3] -= [1, 2, 3] --> [] +[2, 3] == [1, 2, 3] = False +[2, 3] != [1, 2, 3] = True +[2, 3] > [1, 2, 3] = False +[2, 3] >= [1, 2, 3] = False +[2, 3] < [1, 2, 3] = True +[2, 3] <= [1, 2, 3] = True +[2, 3] | [2, 3] = [2, 3] +[2, 3] ^ [2, 3] = [] +[2, 3] & [2, 3] = [2, 3] +[2, 3] - [2, 3] = [] +[2, 3] |= [2, 3] --> [2, 3] +[2, 3] ^= [2, 3] --> [] +[2, 3] &= [2, 3] --> [2, 3] +[2, 3] -= [2, 3] --> [] +[2, 3] == [2, 3] = True +[2, 3] != [2, 3] = False +[2, 3] > [2, 3] = False +[2, 3] >= [2, 3] = True +[2, 3] < [2, 3] = False +[2, 3] <= [2, 3] = True +[2, 3] | [2, 3, 5] = [2, 3, 5] +[2, 3] ^ [2, 3, 5] = [5] +[2, 3] & [2, 3, 5] = [2, 3] +[2, 3] - [2, 3, 5] = [] +[2, 3] |= [2, 3, 5] --> [2, 3, 5] +[2, 3] ^= [2, 3, 5] --> [5] +[2, 3] &= [2, 3, 5] --> [2, 3] +[2, 3] -= [2, 3, 5] --> [] +[2, 3] == [2, 3, 5] = False +[2, 3] != [2, 3, 5] = True +[2, 3] > [2, 3, 5] = False +[2, 3] >= [2, 3, 5] = False +[2, 3] < [2, 3, 5] = True +[2, 3] <= [2, 3, 5] = True +[2, 3] | [5] = [2, 3, 5] +[2, 3] ^ [5] = [2, 3, 5] +[2, 3] & [5] = [] +[2, 3] - [5] = [2, 3] +[2, 3] |= [5] --> [2, 3, 5] +[2, 3] ^= [5] --> [2, 3, 5] +[2, 3] &= [5] --> [] +[2, 3] -= [5] --> [2, 3] +[2, 3] == [5] = False +[2, 3] != [5] = True +[2, 3] > [5] = False +[2, 3] >= [5] = False +[2, 3] < [5] = False +[2, 3] <= [5] = False +[2, 3] | [7] = [2, 3, 7] +[2, 3] ^ [7] = [2, 3, 7] +[2, 3] & [7] = [] +[2, 3] - [7] = [2, 3] +[2, 3] |= [7] --> [2, 3, 7] +[2, 3] ^= [7] --> [2, 3, 7] +[2, 3] &= [7] --> [] +[2, 3] -= [7] --> [2, 3] +[2, 3] == [7] = False +[2, 3] != [7] = True +[2, 3] > [7] = False +[2, 3] >= [7] = False +[2, 3] < [7] = False +[2, 3] <= [7] = False +[2, 3, 5] | [] = [2, 3, 5] +[2, 3, 5] ^ [] = [2, 3, 5] +[2, 3, 5] & [] = [] +[2, 3, 5] - [] = [2, 3, 5] +[2, 3, 5] |= [] --> [2, 3, 5] +[2, 3, 5] ^= [] --> [2, 3, 5] +[2, 3, 5] &= [] --> [] +[2, 3, 5] -= [] --> [2, 3, 5] +[2, 3, 5] == [] = False +[2, 3, 5] != [] = True +[2, 3, 5] > [] = True +[2, 3, 5] >= [] = True +[2, 3, 5] < [] = False +[2, 3, 5] <= [] = False +[2, 3, 5] | [1] = [1, 2, 3, 5] +[2, 3, 5] ^ [1] = [1, 2, 3, 5] +[2, 3, 5] & [1] = [] +[2, 3, 5] - [1] = [2, 3, 5] +[2, 3, 5] |= [1] --> [1, 2, 3, 5] +[2, 3, 5] ^= [1] --> [1, 2, 3, 5] +[2, 3, 5] &= [1] --> [] +[2, 3, 5] -= [1] --> [2, 3, 5] +[2, 3, 5] == [1] = False +[2, 3, 5] != [1] = True +[2, 3, 5] > [1] = False +[2, 3, 5] >= [1] = False +[2, 3, 5] < [1] = False +[2, 3, 5] <= [1] = False +[2, 3, 5] | [1, 2] = [1, 2, 3, 5] +[2, 3, 5] ^ [1, 2] = [1, 3, 5] +[2, 3, 5] & [1, 2] = [2] +[2, 3, 5] - [1, 2] = [3, 5] +[2, 3, 5] |= [1, 2] --> [1, 2, 3, 5] +[2, 3, 5] ^= [1, 2] --> [1, 3, 5] +[2, 3, 5] &= [1, 2] --> [2] +[2, 3, 5] -= [1, 2] --> [3, 5] +[2, 3, 5] == [1, 2] = False +[2, 3, 5] != [1, 2] = True +[2, 3, 5] > [1, 2] = False +[2, 3, 5] >= [1, 2] = False +[2, 3, 5] < [1, 2] = False +[2, 3, 5] <= [1, 2] = False +[2, 3, 5] | [1, 2, 3] = [1, 2, 3, 5] +[2, 3, 5] ^ [1, 2, 3] = [1, 5] +[2, 3, 5] & [1, 2, 3] = [2, 3] +[2, 3, 5] - [1, 2, 3] = [5] +[2, 3, 5] |= [1, 2, 3] --> [1, 2, 3, 5] +[2, 3, 5] ^= [1, 2, 3] --> [1, 5] +[2, 3, 5] &= [1, 2, 3] --> [2, 3] +[2, 3, 5] -= [1, 2, 3] --> [5] +[2, 3, 5] == [1, 2, 3] = False +[2, 3, 5] != [1, 2, 3] = True +[2, 3, 5] > [1, 2, 3] = False +[2, 3, 5] >= [1, 2, 3] = False +[2, 3, 5] < [1, 2, 3] = False +[2, 3, 5] <= [1, 2, 3] = False +[2, 3, 5] | [2, 3] = [2, 3, 5] +[2, 3, 5] ^ [2, 3] = [5] +[2, 3, 5] & [2, 3] = [2, 3] +[2, 3, 5] - [2, 3] = [5] +[2, 3, 5] |= [2, 3] --> [2, 3, 5] +[2, 3, 5] ^= [2, 3] --> [5] +[2, 3, 5] &= [2, 3] --> [2, 3] +[2, 3, 5] -= [2, 3] --> [5] +[2, 3, 5] == [2, 3] = False +[2, 3, 5] != [2, 3] = True +[2, 3, 5] > [2, 3] = True +[2, 3, 5] >= [2, 3] = True +[2, 3, 5] < [2, 3] = False +[2, 3, 5] <= [2, 3] = False +[2, 3, 5] | [2, 3, 5] = [2, 3, 5] +[2, 3, 5] ^ [2, 3, 5] = [] +[2, 3, 5] & [2, 3, 5] = [2, 3, 5] +[2, 3, 5] - [2, 3, 5] = [] +[2, 3, 5] |= [2, 3, 5] --> [2, 3, 5] +[2, 3, 5] ^= [2, 3, 5] --> [] +[2, 3, 5] &= [2, 3, 5] --> [2, 3, 5] +[2, 3, 5] -= [2, 3, 5] --> [] +[2, 3, 5] == [2, 3, 5] = True +[2, 3, 5] != [2, 3, 5] = False +[2, 3, 5] > [2, 3, 5] = False +[2, 3, 5] >= [2, 3, 5] = True +[2, 3, 5] < [2, 3, 5] = False +[2, 3, 5] <= [2, 3, 5] = True +[2, 3, 5] | [5] = [2, 3, 5] +[2, 3, 5] ^ [5] = [2, 3] +[2, 3, 5] & [5] = [5] +[2, 3, 5] - [5] = [2, 3] +[2, 3, 5] |= [5] --> [2, 3, 5] +[2, 3, 5] ^= [5] --> [2, 3] +[2, 3, 5] &= [5] --> [5] +[2, 3, 5] -= [5] --> [2, 3] +[2, 3, 5] == [5] = False +[2, 3, 5] != [5] = True +[2, 3, 5] > [5] = True +[2, 3, 5] >= [5] = True +[2, 3, 5] < [5] = False +[2, 3, 5] <= [5] = False +[2, 3, 5] | [7] = [2, 3, 5, 7] +[2, 3, 5] ^ [7] = [2, 3, 5, 7] +[2, 3, 5] & [7] = [] +[2, 3, 5] - [7] = [2, 3, 5] +[2, 3, 5] |= [7] --> [2, 3, 5, 7] +[2, 3, 5] ^= [7] --> [2, 3, 5, 7] +[2, 3, 5] &= [7] --> [] +[2, 3, 5] -= [7] --> [2, 3, 5] +[2, 3, 5] == [7] = False +[2, 3, 5] != [7] = True +[2, 3, 5] > [7] = False +[2, 3, 5] >= [7] = False +[2, 3, 5] < [7] = False +[2, 3, 5] <= [7] = False +[5] | [] = [5] +[5] ^ [] = [5] +[5] & [] = [] +[5] - [] = [5] +[5] |= [] --> [5] +[5] ^= [] --> [5] +[5] &= [] --> [] +[5] -= [] --> [5] +[5] == [] = False +[5] != [] = True +[5] > [] = True +[5] >= [] = True +[5] < [] = False +[5] <= [] = False +[5] | [1] = [1, 5] +[5] ^ [1] = [1, 5] +[5] & [1] = [] +[5] - [1] = [5] +[5] |= [1] --> [1, 5] +[5] ^= [1] --> [1, 5] +[5] &= [1] --> [] +[5] -= [1] --> [5] +[5] == [1] = False +[5] != [1] = True +[5] > [1] = False +[5] >= [1] = False +[5] < [1] = False +[5] <= [1] = False +[5] | [1, 2] = [1, 2, 5] +[5] ^ [1, 2] = [1, 2, 5] +[5] & [1, 2] = [] +[5] - [1, 2] = [5] +[5] |= [1, 2] --> [1, 2, 5] +[5] ^= [1, 2] --> [1, 2, 5] +[5] &= [1, 2] --> [] +[5] -= [1, 2] --> [5] +[5] == [1, 2] = False +[5] != [1, 2] = True +[5] > [1, 2] = False +[5] >= [1, 2] = False +[5] < [1, 2] = False +[5] <= [1, 2] = False +[5] | [1, 2, 3] = [1, 2, 3, 5] +[5] ^ [1, 2, 3] = [1, 2, 3, 5] +[5] & [1, 2, 3] = [] +[5] - [1, 2, 3] = [5] +[5] |= [1, 2, 3] --> [1, 2, 3, 5] +[5] ^= [1, 2, 3] --> [1, 2, 3, 5] +[5] &= [1, 2, 3] --> [] +[5] -= [1, 2, 3] --> [5] +[5] == [1, 2, 3] = False +[5] != [1, 2, 3] = True +[5] > [1, 2, 3] = False +[5] >= [1, 2, 3] = False +[5] < [1, 2, 3] = False +[5] <= [1, 2, 3] = False +[5] | [2, 3] = [2, 3, 5] +[5] ^ [2, 3] = [2, 3, 5] +[5] & [2, 3] = [] +[5] - [2, 3] = [5] +[5] |= [2, 3] --> [2, 3, 5] +[5] ^= [2, 3] --> [2, 3, 5] +[5] &= [2, 3] --> [] +[5] -= [2, 3] --> [5] +[5] == [2, 3] = False +[5] != [2, 3] = True +[5] > [2, 3] = False +[5] >= [2, 3] = False +[5] < [2, 3] = False +[5] <= [2, 3] = False +[5] | [2, 3, 5] = [2, 3, 5] +[5] ^ [2, 3, 5] = [2, 3] +[5] & [2, 3, 5] = [5] +[5] - [2, 3, 5] = [] +[5] |= [2, 3, 5] --> [2, 3, 5] +[5] ^= [2, 3, 5] --> [2, 3] +[5] &= [2, 3, 5] --> [5] +[5] -= [2, 3, 5] --> [] +[5] == [2, 3, 5] = False +[5] != [2, 3, 5] = True +[5] > [2, 3, 5] = False +[5] >= [2, 3, 5] = False +[5] < [2, 3, 5] = True +[5] <= [2, 3, 5] = True +[5] | [5] = [5] +[5] ^ [5] = [] +[5] & [5] = [5] +[5] - [5] = [] +[5] |= [5] --> [5] +[5] ^= [5] --> [] +[5] &= [5] --> [5] +[5] -= [5] --> [] +[5] == [5] = True +[5] != [5] = False +[5] > [5] = False +[5] >= [5] = True +[5] < [5] = False +[5] <= [5] = True +[5] | [7] = [5, 7] +[5] ^ [7] = [5, 7] +[5] & [7] = [] +[5] - [7] = [5] +[5] |= [7] --> [5, 7] +[5] ^= [7] --> [5, 7] +[5] &= [7] --> [] +[5] -= [7] --> [5] +[5] == [7] = False +[5] != [7] = True +[5] > [7] = False +[5] >= [7] = False +[5] < [7] = False +[5] <= [7] = False +[7] | [] = [7] +[7] ^ [] = [7] +[7] & [] = [] +[7] - [] = [7] +[7] |= [] --> [7] +[7] ^= [] --> [7] +[7] &= [] --> [] +[7] -= [] --> [7] +[7] == [] = False +[7] != [] = True +[7] > [] = True +[7] >= [] = True +[7] < [] = False +[7] <= [] = False +[7] | [1] = [1, 7] +[7] ^ [1] = [1, 7] +[7] & [1] = [] +[7] - [1] = [7] +[7] |= [1] --> [1, 7] +[7] ^= [1] --> [1, 7] +[7] &= [1] --> [] +[7] -= [1] --> [7] +[7] == [1] = False +[7] != [1] = True +[7] > [1] = False +[7] >= [1] = False +[7] < [1] = False +[7] <= [1] = False +[7] | [1, 2] = [1, 2, 7] +[7] ^ [1, 2] = [1, 2, 7] +[7] & [1, 2] = [] +[7] - [1, 2] = [7] +[7] |= [1, 2] --> [1, 2, 7] +[7] ^= [1, 2] --> [1, 2, 7] +[7] &= [1, 2] --> [] +[7] -= [1, 2] --> [7] +[7] == [1, 2] = False +[7] != [1, 2] = True +[7] > [1, 2] = False +[7] >= [1, 2] = False +[7] < [1, 2] = False +[7] <= [1, 2] = False +[7] | [1, 2, 3] = [1, 2, 3, 7] +[7] ^ [1, 2, 3] = [1, 2, 3, 7] +[7] & [1, 2, 3] = [] +[7] - [1, 2, 3] = [7] +[7] |= [1, 2, 3] --> [1, 2, 3, 7] +[7] ^= [1, 2, 3] --> [1, 2, 3, 7] +[7] &= [1, 2, 3] --> [] +[7] -= [1, 2, 3] --> [7] +[7] == [1, 2, 3] = False +[7] != [1, 2, 3] = True +[7] > [1, 2, 3] = False +[7] >= [1, 2, 3] = False +[7] < [1, 2, 3] = False +[7] <= [1, 2, 3] = False +[7] | [2, 3] = [2, 3, 7] +[7] ^ [2, 3] = [2, 3, 7] +[7] & [2, 3] = [] +[7] - [2, 3] = [7] +[7] |= [2, 3] --> [2, 3, 7] +[7] ^= [2, 3] --> [2, 3, 7] +[7] &= [2, 3] --> [] +[7] -= [2, 3] --> [7] +[7] == [2, 3] = False +[7] != [2, 3] = True +[7] > [2, 3] = False +[7] >= [2, 3] = False +[7] < [2, 3] = False +[7] <= [2, 3] = False +[7] | [2, 3, 5] = [2, 3, 5, 7] +[7] ^ [2, 3, 5] = [2, 3, 5, 7] +[7] & [2, 3, 5] = [] +[7] - [2, 3, 5] = [7] +[7] |= [2, 3, 5] --> [2, 3, 5, 7] +[7] ^= [2, 3, 5] --> [2, 3, 5, 7] +[7] &= [2, 3, 5] --> [] +[7] -= [2, 3, 5] --> [7] +[7] == [2, 3, 5] = False +[7] != [2, 3, 5] = True +[7] > [2, 3, 5] = False +[7] >= [2, 3, 5] = False +[7] < [2, 3, 5] = False +[7] <= [2, 3, 5] = False +[7] | [5] = [5, 7] +[7] ^ [5] = [5, 7] +[7] & [5] = [] +[7] - [5] = [7] +[7] |= [5] --> [5, 7] +[7] ^= [5] --> [5, 7] +[7] &= [5] --> [] +[7] -= [5] --> [7] +[7] == [5] = False +[7] != [5] = True +[7] > [5] = False +[7] >= [5] = False +[7] < [5] = False +[7] <= [5] = False +[7] | [7] = [7] +[7] ^ [7] = [] +[7] & [7] = [7] +[7] - [7] = [] +[7] |= [7] --> [7] +[7] ^= [7] --> [] +[7] &= [7] --> [7] +[7] -= [7] --> [] +[7] == [7] = True +[7] != [7] = False +[7] > [7] = False +[7] >= [7] = True +[7] < [7] = False +[7] <= [7] = True diff --git a/micropython-tests/expected/basics/frozenset_copy.py.exp b/micropython-tests/expected/basics/frozenset_copy.py.exp new file mode 100644 index 0000000..80ef15e --- /dev/null +++ b/micropython-tests/expected/basics/frozenset_copy.py.exp @@ -0,0 +1,3 @@ + +[1, 2, 3, 4] +[1, 2, 3, 4] diff --git a/micropython-tests/expected/basics/frozenset_difference.py.exp b/micropython-tests/expected/basics/frozenset_difference.py.exp new file mode 100644 index 0000000..d5fee90 --- /dev/null +++ b/micropython-tests/expected/basics/frozenset_difference.py.exp @@ -0,0 +1,5 @@ + [1, 2, 3, 4] + [2, 3, 4] + [3, 4] + [4] +AttributeError diff --git a/micropython-tests/expected/basics/frozenset_set.py.exp b/micropython-tests/expected/basics/frozenset_set.py.exp new file mode 100644 index 0000000..0ca9514 --- /dev/null +++ b/micropython-tests/expected/basics/frozenset_set.py.exp @@ -0,0 +1 @@ +True diff --git a/micropython-tests/expected/basics/fun1.py.exp b/micropython-tests/expected/basics/fun1.py.exp new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/micropython-tests/expected/basics/fun1.py.exp @@ -0,0 +1 @@ +1 diff --git a/micropython-tests/expected/basics/fun2.py.exp b/micropython-tests/expected/basics/fun2.py.exp new file mode 100644 index 0000000..dd80f6a --- /dev/null +++ b/micropython-tests/expected/basics/fun2.py.exp @@ -0,0 +1,2 @@ +7 +13 diff --git a/micropython-tests/expected/basics/fun3.py.exp b/micropython-tests/expected/basics/fun3.py.exp new file mode 100644 index 0000000..188ccfe --- /dev/null +++ b/micropython-tests/expected/basics/fun3.py.exp @@ -0,0 +1 @@ +225 diff --git a/micropython-tests/expected/basics/fun_annotations.py.exp b/micropython-tests/expected/basics/fun_annotations.py.exp new file mode 100644 index 0000000..d67916c --- /dev/null +++ b/micropython-tests/expected/basics/fun_annotations.py.exp @@ -0,0 +1 @@ +{1: [2, 3]} diff --git a/micropython-tests/expected/basics/fun_calldblstar.py.exp b/micropython-tests/expected/basics/fun_calldblstar.py.exp new file mode 100644 index 0000000..8cbc209 --- /dev/null +++ b/micropython-tests/expected/basics/fun_calldblstar.py.exp @@ -0,0 +1,5 @@ +1 2 +1 0 +TypeError +1 2 +1 0 diff --git a/micropython-tests/expected/basics/fun_calldblstar2.py.exp b/micropython-tests/expected/basics/fun_calldblstar2.py.exp new file mode 100644 index 0000000..a247b96 --- /dev/null +++ b/micropython-tests/expected/basics/fun_calldblstar2.py.exp @@ -0,0 +1,2 @@ +1 +123 diff --git a/micropython-tests/expected/basics/fun_calldblstar3.py.exp b/micropython-tests/expected/basics/fun_calldblstar3.py.exp new file mode 100644 index 0000000..24cd487 --- /dev/null +++ b/micropython-tests/expected/basics/fun_calldblstar3.py.exp @@ -0,0 +1 @@ +[('a', 1), ('abcdefghijklmnopqrst', 2), ('b', 2), ('c', 2)] diff --git a/micropython-tests/expected/basics/fun_callstar.py.exp b/micropython-tests/expected/basics/fun_callstar.py.exp new file mode 100644 index 0000000..5e717ec --- /dev/null +++ b/micropython-tests/expected/basics/fun_callstar.py.exp @@ -0,0 +1,14 @@ +1 2 3 +1 2 3 +1 2 3 +1 2 3 +1 2 100 +0 1 2 +1 2 3 +(0, 1, 2, 3, 4, 5, 6, 7, 8, 9) +1 2 3 +1 2 3 +1 2 3 +1 2 3 +1 2 100 +0 1 2 diff --git a/micropython-tests/expected/basics/fun_callstardblstar.py.exp b/micropython-tests/expected/basics/fun_callstardblstar.py.exp new file mode 100644 index 0000000..bbba707 --- /dev/null +++ b/micropython-tests/expected/basics/fun_callstardblstar.py.exp @@ -0,0 +1,4 @@ +1 2 3 4 +1 2 3 4 +1 2 3 4 +1 2 3 4 diff --git a/micropython-tests/expected/basics/fun_defargs.py.exp b/micropython-tests/expected/basics/fun_defargs.py.exp new file mode 100644 index 0000000..2ea0fdd --- /dev/null +++ b/micropython-tests/expected/basics/fun_defargs.py.exp @@ -0,0 +1,10 @@ +5 +10 +1 100 foo +1 None foo +0 bar 200 +TypeError +TypeError +1 +1 +2 diff --git a/micropython-tests/expected/basics/fun_defargs2.py.exp b/micropython-tests/expected/basics/fun_defargs2.py.exp new file mode 100644 index 0000000..31f4129 --- /dev/null +++ b/micropython-tests/expected/basics/fun_defargs2.py.exp @@ -0,0 +1,4 @@ +1 333 +1 333 +2 333 +1 two diff --git a/micropython-tests/expected/basics/fun_error.py.exp b/micropython-tests/expected/basics/fun_error.py.exp new file mode 100644 index 0000000..ffaeb40 --- /dev/null +++ b/micropython-tests/expected/basics/fun_error.py.exp @@ -0,0 +1,7 @@ +TypeError +TypeError +TypeError +TypeError +TypeError +TypeError +TypeError diff --git a/micropython-tests/expected/basics/fun_error2.py.exp b/micropython-tests/expected/basics/fun_error2.py.exp new file mode 100644 index 0000000..6002b71 --- /dev/null +++ b/micropython-tests/expected/basics/fun_error2.py.exp @@ -0,0 +1 @@ +TypeError diff --git a/micropython-tests/expected/basics/fun_globals.py.exp b/micropython-tests/expected/basics/fun_globals.py.exp new file mode 100644 index 0000000..6cc5d75 --- /dev/null +++ b/micropython-tests/expected/basics/fun_globals.py.exp @@ -0,0 +1,4 @@ + +True +123 +AttributeError diff --git a/micropython-tests/expected/basics/fun_kwargs.py.exp b/micropython-tests/expected/basics/fun_kwargs.py.exp new file mode 100644 index 0000000..1c8c52c --- /dev/null +++ b/micropython-tests/expected/basics/fun_kwargs.py.exp @@ -0,0 +1,11 @@ +123 +123 +TypeError +1 2 +3 4 +6 5 +7 8 +TypeError +1 3 () +TypeError +TypeError diff --git a/micropython-tests/expected/basics/fun_kwonly.py.exp b/micropython-tests/expected/basics/fun_kwonly.py.exp new file mode 100644 index 0000000..c79621c --- /dev/null +++ b/micropython-tests/expected/basics/fun_kwonly.py.exp @@ -0,0 +1,19 @@ +1 +1 2 +2 1 +1 3 4 +1 4 3 +1 3 4 +TypeError +TypeError +TypeError +1 2 {} +1 2 {'c': 3} +() 1 2 +() 2 1 +1 () 2 +1 (2,) 3 +1 () 3 +1 +1 +2 diff --git a/micropython-tests/expected/basics/fun_kwonlydef.py.exp b/micropython-tests/expected/basics/fun_kwonlydef.py.exp new file mode 100644 index 0000000..69f4d2d --- /dev/null +++ b/micropython-tests/expected/basics/fun_kwonlydef.py.exp @@ -0,0 +1,15 @@ +1 +2 +1 2 +2 3 +1 2 3 +1 3 4 +1 2 3 +1 3 4 +1 2 3 4 5 6 +11 2 3 4 5 6 +11 2 33 4 55 6 +11 2 33 4 55 6 +1 4 () 8 +1 4 () 9 +1 44 () 9 diff --git a/micropython-tests/expected/basics/fun_kwvarargs.py.exp b/micropython-tests/expected/basics/fun_kwvarargs.py.exp new file mode 100644 index 0000000..efd7cf2 --- /dev/null +++ b/micropython-tests/expected/basics/fun_kwvarargs.py.exp @@ -0,0 +1,11 @@ +{} +{'a': 1} +1 {} +1 {'b': 2} +1 () {} +1 (2,) {} +1 () {'b': 2} +1 (2,) {'b': 3} +(1, 2) {} +() {'kw_arg': 3} +(1, 2) {'kw_arg': 3} diff --git a/micropython-tests/expected/basics/fun_largestate.py.exp b/micropython-tests/expected/basics/fun_largestate.py.exp new file mode 100644 index 0000000..e69de29 diff --git a/micropython-tests/expected/basics/fun_name.py.exp b/micropython-tests/expected/basics/fun_name.py.exp new file mode 100644 index 0000000..b8762a7 --- /dev/null +++ b/micropython-tests/expected/basics/fun_name.py.exp @@ -0,0 +1,5 @@ +Fun +__init__ +Fun +Fun +outer diff --git a/micropython-tests/expected/basics/fun_str.py.exp b/micropython-tests/expected/basics/fun_str.py.exp new file mode 100644 index 0000000..80db03c --- /dev/null +++ b/micropython-tests/expected/basics/fun_str.py.exp @@ -0,0 +1 @@ + +456 +1 +ValueError +1 +TypeError diff --git a/micropython-tests/expected/basics/generator1.py.exp b/micropython-tests/expected/basics/generator1.py.exp new file mode 100644 index 0000000..988c717 --- /dev/null +++ b/micropython-tests/expected/basics/generator1.py.exp @@ -0,0 +1,16 @@ +a +b +c +d +2 +e +c +d +1 +e +c +d +0 +e +f + (42,) + () diff --git a/micropython-tests/expected/basics/generator_send.py.exp b/micropython-tests/expected/basics/generator_send.py.exp new file mode 100644 index 0000000..2894831 --- /dev/null +++ b/micropython-tests/expected/basics/generator_send.py.exp @@ -0,0 +1,14 @@ +caught +1 +100 +101 +200 +201 +entering +0 +1 +2 +returning 1 +returning 2 +caught +caught diff --git a/micropython-tests/expected/basics/generator_throw.py.exp b/micropython-tests/expected/basics/generator_throw.py.exp new file mode 100644 index 0000000..8750d32 --- /dev/null +++ b/micropython-tests/expected/basics/generator_throw.py.exp @@ -0,0 +1,16 @@ +123 +got KeyError from downstream! +1 +got StopIteration +123 +GeneratorExit () +456 +123 +GeneratorExit () +456 +123 +GeneratorExit () +456 +123 +GeneratorExit (123,) +456 diff --git a/micropython-tests/expected/basics/generator_throw_nested.py.exp b/micropython-tests/expected/basics/generator_throw_nested.py.exp new file mode 100644 index 0000000..5b01efa --- /dev/null +++ b/micropython-tests/expected/basics/generator_throw_nested.py.exp @@ -0,0 +1,48 @@ +1 +8 +1 +2 +6 +1 +2 +3 +4 +1 +2 +3 +5 +6 +1 +2 +3 +5 +7 +8 +1 +2 +3 +5 +7 +9 +ValueError +1 +2 +3 +5 +7 +9 +StopIteration +1 +2 +3 +5 +7 +9 +StopIteration +1 +2 +3 +5 +7 +9 +StopIteration diff --git a/micropython-tests/expected/basics/getattr.py.exp b/micropython-tests/expected/basics/getattr.py.exp new file mode 100644 index 0000000..d198390 --- /dev/null +++ b/micropython-tests/expected/basics/getattr.py.exp @@ -0,0 +1,3 @@ +1 2 +123 +456 diff --git a/micropython-tests/expected/basics/getitem.py.exp b/micropython-tests/expected/basics/getitem.py.exp new file mode 100644 index 0000000..5d665b0 --- /dev/null +++ b/micropython-tests/expected/basics/getitem.py.exp @@ -0,0 +1,28 @@ +getitem 0 +getitem 1 +getitem 0 +getitem 1 +getitem 2 +getitem 3 +getitem 4 +getitem 5 +getitem 6 +getitem 7 +getitem 8 +getitem 9 +getitem 10 +getitem 11 +getitem 0 +getitem 1 +getitem 2 +getitem 3 +getitem 4 +getitem 5 +getitem 6 +getitem 7 +getitem 8 +getitem 9 +getitem 10 +getitem 11 +[] +TypeError diff --git a/micropython-tests/expected/basics/globals_del.py.exp b/micropython-tests/expected/basics/globals_del.py.exp new file mode 100644 index 0000000..a719acb --- /dev/null +++ b/micropython-tests/expected/basics/globals_del.py.exp @@ -0,0 +1,2 @@ + 0 = False +0 <= 0 = True +0 >= 0 = True +0 == 1 = False +0 != 1 = True +0 < 1 = True +0 > 1 = False +0 <= 1 = True +0 >= 1 = False +0 == -1 = False +0 != -1 = True +0 < -1 = False +0 > -1 = True +0 <= -1 = False +0 >= -1 = True +0 == 36893488147419103232 = False +0 != 36893488147419103232 = True +0 < 36893488147419103232 = True +0 > 36893488147419103232 = False +0 <= 36893488147419103232 = True +0 >= 36893488147419103232 = False +0 == -36893488147419103232 = False +0 != -36893488147419103232 = True +0 < -36893488147419103232 = False +0 > -36893488147419103232 = True +0 <= -36893488147419103232 = False +0 >= -36893488147419103232 = True +0 == 36893488147419103233 = False +0 != 36893488147419103233 = True +0 < 36893488147419103233 = True +0 > 36893488147419103233 = False +0 <= 36893488147419103233 = True +0 >= 36893488147419103233 = False +0 == -36893488147419103233 = False +0 != -36893488147419103233 = True +0 < -36893488147419103233 = False +0 > -36893488147419103233 = True +0 <= -36893488147419103233 = False +0 >= -36893488147419103233 = True +1 == 0 = False +1 != 0 = True +1 < 0 = False +1 > 0 = True +1 <= 0 = False +1 >= 0 = True +1 == 1 = True +1 != 1 = False +1 < 1 = False +1 > 1 = False +1 <= 1 = True +1 >= 1 = True +1 == -1 = False +1 != -1 = True +1 < -1 = False +1 > -1 = True +1 <= -1 = False +1 >= -1 = True +1 == 36893488147419103232 = False +1 != 36893488147419103232 = True +1 < 36893488147419103232 = True +1 > 36893488147419103232 = False +1 <= 36893488147419103232 = True +1 >= 36893488147419103232 = False +1 == -36893488147419103232 = False +1 != -36893488147419103232 = True +1 < -36893488147419103232 = False +1 > -36893488147419103232 = True +1 <= -36893488147419103232 = False +1 >= -36893488147419103232 = True +1 == 36893488147419103233 = False +1 != 36893488147419103233 = True +1 < 36893488147419103233 = True +1 > 36893488147419103233 = False +1 <= 36893488147419103233 = True +1 >= 36893488147419103233 = False +1 == -36893488147419103233 = False +1 != -36893488147419103233 = True +1 < -36893488147419103233 = False +1 > -36893488147419103233 = True +1 <= -36893488147419103233 = False +1 >= -36893488147419103233 = True +-1 == 0 = False +-1 != 0 = True +-1 < 0 = True +-1 > 0 = False +-1 <= 0 = True +-1 >= 0 = False +-1 == 1 = False +-1 != 1 = True +-1 < 1 = True +-1 > 1 = False +-1 <= 1 = True +-1 >= 1 = False +-1 == -1 = True +-1 != -1 = False +-1 < -1 = False +-1 > -1 = False +-1 <= -1 = True +-1 >= -1 = True +-1 == 36893488147419103232 = False +-1 != 36893488147419103232 = True +-1 < 36893488147419103232 = True +-1 > 36893488147419103232 = False +-1 <= 36893488147419103232 = True +-1 >= 36893488147419103232 = False +-1 == -36893488147419103232 = False +-1 != -36893488147419103232 = True +-1 < -36893488147419103232 = False +-1 > -36893488147419103232 = True +-1 <= -36893488147419103232 = False +-1 >= -36893488147419103232 = True +-1 == 36893488147419103233 = False +-1 != 36893488147419103233 = True +-1 < 36893488147419103233 = True +-1 > 36893488147419103233 = False +-1 <= 36893488147419103233 = True +-1 >= 36893488147419103233 = False +-1 == -36893488147419103233 = False +-1 != -36893488147419103233 = True +-1 < -36893488147419103233 = False +-1 > -36893488147419103233 = True +-1 <= -36893488147419103233 = False +-1 >= -36893488147419103233 = True +36893488147419103232 == 0 = False +36893488147419103232 != 0 = True +36893488147419103232 < 0 = False +36893488147419103232 > 0 = True +36893488147419103232 <= 0 = False +36893488147419103232 >= 0 = True +36893488147419103232 == 1 = False +36893488147419103232 != 1 = True +36893488147419103232 < 1 = False +36893488147419103232 > 1 = True +36893488147419103232 <= 1 = False +36893488147419103232 >= 1 = True +36893488147419103232 == -1 = False +36893488147419103232 != -1 = True +36893488147419103232 < -1 = False +36893488147419103232 > -1 = True +36893488147419103232 <= -1 = False +36893488147419103232 >= -1 = True +36893488147419103232 == 36893488147419103232 = True +36893488147419103232 != 36893488147419103232 = False +36893488147419103232 < 36893488147419103232 = False +36893488147419103232 > 36893488147419103232 = False +36893488147419103232 <= 36893488147419103232 = True +36893488147419103232 >= 36893488147419103232 = True +36893488147419103232 == -36893488147419103232 = False +36893488147419103232 != -36893488147419103232 = True +36893488147419103232 < -36893488147419103232 = False +36893488147419103232 > -36893488147419103232 = True +36893488147419103232 <= -36893488147419103232 = False +36893488147419103232 >= -36893488147419103232 = True +36893488147419103232 == 36893488147419103233 = False +36893488147419103232 != 36893488147419103233 = True +36893488147419103232 < 36893488147419103233 = True +36893488147419103232 > 36893488147419103233 = False +36893488147419103232 <= 36893488147419103233 = True +36893488147419103232 >= 36893488147419103233 = False +36893488147419103232 == -36893488147419103233 = False +36893488147419103232 != -36893488147419103233 = True +36893488147419103232 < -36893488147419103233 = False +36893488147419103232 > -36893488147419103233 = True +36893488147419103232 <= -36893488147419103233 = False +36893488147419103232 >= -36893488147419103233 = True +-36893488147419103232 == 0 = False +-36893488147419103232 != 0 = True +-36893488147419103232 < 0 = True +-36893488147419103232 > 0 = False +-36893488147419103232 <= 0 = True +-36893488147419103232 >= 0 = False +-36893488147419103232 == 1 = False +-36893488147419103232 != 1 = True +-36893488147419103232 < 1 = True +-36893488147419103232 > 1 = False +-36893488147419103232 <= 1 = True +-36893488147419103232 >= 1 = False +-36893488147419103232 == -1 = False +-36893488147419103232 != -1 = True +-36893488147419103232 < -1 = True +-36893488147419103232 > -1 = False +-36893488147419103232 <= -1 = True +-36893488147419103232 >= -1 = False +-36893488147419103232 == 36893488147419103232 = False +-36893488147419103232 != 36893488147419103232 = True +-36893488147419103232 < 36893488147419103232 = True +-36893488147419103232 > 36893488147419103232 = False +-36893488147419103232 <= 36893488147419103232 = True +-36893488147419103232 >= 36893488147419103232 = False +-36893488147419103232 == -36893488147419103232 = True +-36893488147419103232 != -36893488147419103232 = False +-36893488147419103232 < -36893488147419103232 = False +-36893488147419103232 > -36893488147419103232 = False +-36893488147419103232 <= -36893488147419103232 = True +-36893488147419103232 >= -36893488147419103232 = True +-36893488147419103232 == 36893488147419103233 = False +-36893488147419103232 != 36893488147419103233 = True +-36893488147419103232 < 36893488147419103233 = True +-36893488147419103232 > 36893488147419103233 = False +-36893488147419103232 <= 36893488147419103233 = True +-36893488147419103232 >= 36893488147419103233 = False +-36893488147419103232 == -36893488147419103233 = False +-36893488147419103232 != -36893488147419103233 = True +-36893488147419103232 < -36893488147419103233 = False +-36893488147419103232 > -36893488147419103233 = True +-36893488147419103232 <= -36893488147419103233 = False +-36893488147419103232 >= -36893488147419103233 = True +36893488147419103233 == 0 = False +36893488147419103233 != 0 = True +36893488147419103233 < 0 = False +36893488147419103233 > 0 = True +36893488147419103233 <= 0 = False +36893488147419103233 >= 0 = True +36893488147419103233 == 1 = False +36893488147419103233 != 1 = True +36893488147419103233 < 1 = False +36893488147419103233 > 1 = True +36893488147419103233 <= 1 = False +36893488147419103233 >= 1 = True +36893488147419103233 == -1 = False +36893488147419103233 != -1 = True +36893488147419103233 < -1 = False +36893488147419103233 > -1 = True +36893488147419103233 <= -1 = False +36893488147419103233 >= -1 = True +36893488147419103233 == 36893488147419103232 = False +36893488147419103233 != 36893488147419103232 = True +36893488147419103233 < 36893488147419103232 = False +36893488147419103233 > 36893488147419103232 = True +36893488147419103233 <= 36893488147419103232 = False +36893488147419103233 >= 36893488147419103232 = True +36893488147419103233 == -36893488147419103232 = False +36893488147419103233 != -36893488147419103232 = True +36893488147419103233 < -36893488147419103232 = False +36893488147419103233 > -36893488147419103232 = True +36893488147419103233 <= -36893488147419103232 = False +36893488147419103233 >= -36893488147419103232 = True +36893488147419103233 == 36893488147419103233 = True +36893488147419103233 != 36893488147419103233 = False +36893488147419103233 < 36893488147419103233 = False +36893488147419103233 > 36893488147419103233 = False +36893488147419103233 <= 36893488147419103233 = True +36893488147419103233 >= 36893488147419103233 = True +36893488147419103233 == -36893488147419103233 = False +36893488147419103233 != -36893488147419103233 = True +36893488147419103233 < -36893488147419103233 = False +36893488147419103233 > -36893488147419103233 = True +36893488147419103233 <= -36893488147419103233 = False +36893488147419103233 >= -36893488147419103233 = True +-36893488147419103233 == 0 = False +-36893488147419103233 != 0 = True +-36893488147419103233 < 0 = True +-36893488147419103233 > 0 = False +-36893488147419103233 <= 0 = True +-36893488147419103233 >= 0 = False +-36893488147419103233 == 1 = False +-36893488147419103233 != 1 = True +-36893488147419103233 < 1 = True +-36893488147419103233 > 1 = False +-36893488147419103233 <= 1 = True +-36893488147419103233 >= 1 = False +-36893488147419103233 == -1 = False +-36893488147419103233 != -1 = True +-36893488147419103233 < -1 = True +-36893488147419103233 > -1 = False +-36893488147419103233 <= -1 = True +-36893488147419103233 >= -1 = False +-36893488147419103233 == 36893488147419103232 = False +-36893488147419103233 != 36893488147419103232 = True +-36893488147419103233 < 36893488147419103232 = True +-36893488147419103233 > 36893488147419103232 = False +-36893488147419103233 <= 36893488147419103232 = True +-36893488147419103233 >= 36893488147419103232 = False +-36893488147419103233 == -36893488147419103232 = False +-36893488147419103233 != -36893488147419103232 = True +-36893488147419103233 < -36893488147419103232 = True +-36893488147419103233 > -36893488147419103232 = False +-36893488147419103233 <= -36893488147419103232 = True +-36893488147419103233 >= -36893488147419103232 = False +-36893488147419103233 == 36893488147419103233 = False +-36893488147419103233 != 36893488147419103233 = True +-36893488147419103233 < 36893488147419103233 = True +-36893488147419103233 > 36893488147419103233 = False +-36893488147419103233 <= 36893488147419103233 = True +-36893488147419103233 >= 36893488147419103233 = False +-36893488147419103233 == -36893488147419103233 = True +-36893488147419103233 != -36893488147419103233 = False +-36893488147419103233 < -36893488147419103233 = False +-36893488147419103233 > -36893488147419103233 = False +-36893488147419103233 <= -36893488147419103233 = True +-36893488147419103233 >= -36893488147419103233 = True diff --git a/micropython-tests/expected/basics/int_big_div.py.exp b/micropython-tests/expected/basics/int_big_div.py.exp new file mode 100644 index 0000000..ab3e174 --- /dev/null +++ b/micropython-tests/expected/basics/int_big_div.py.exp @@ -0,0 +1,2220 @@ +1000000000000000000000000 +500000000000000000000000 +333333333333333333333333 +250000000000000000000000 +200000000000000000000000 +166666666666666666666666 +142857142857142857142857 +125000000000000000000000 +111111111111111111111111 +100000000000000000000000 +90909090909090909090909 +83333333333333333333333 +76923076923076923076923 +71428571428571428571428 +66666666666666666666666 +62500000000000000000000 +58823529411764705882352 +55555555555555555555555 +52631578947368421052631 +50000000000000000000000 +47619047619047619047619 +45454545454545454545454 +43478260869565217391304 +41666666666666666666666 +40000000000000000000000 +38461538461538461538461 +37037037037037037037037 +35714285714285714285714 +34482758620689655172413 +33333333333333333333333 +32258064516129032258064 +31250000000000000000000 +30303030303030303030303 +29411764705882352941176 +28571428571428571428571 +27777777777777777777777 +27027027027027027027027 +26315789473684210526315 +25641025641025641025641 +25000000000000000000000 +24390243902439024390243 +23809523809523809523809 +23255813953488372093023 +22727272727272727272727 +22222222222222222222222 +21739130434782608695652 +21276595744680851063829 +20833333333333333333333 +20408163265306122448979 +20000000000000000000000 +19607843137254901960784 +19230769230769230769230 +18867924528301886792452 +18518518518518518518518 +18181818181818181818181 +17857142857142857142857 +17543859649122807017543 +17241379310344827586206 +16949152542372881355932 +16666666666666666666666 +16393442622950819672131 +16129032258064516129032 +15873015873015873015873 +15625000000000000000000 +15384615384615384615384 +15151515151515151515151 +14925373134328358208955 +14705882352941176470588 +14492753623188405797101 +14285714285714285714285 +14084507042253521126760 +13888888888888888888888 +13698630136986301369863 +13513513513513513513513 +13333333333333333333333 +13157894736842105263157 +12987012987012987012987 +12820512820512820512820 +12658227848101265822784 +12500000000000000000000 +12345679012345679012345 +12195121951219512195121 +12048192771084337349397 +11904761904761904761904 +11764705882352941176470 +11627906976744186046511 +11494252873563218390804 +11363636363636363636363 +11235955056179775280898 +11111111111111111111111 +10989010989010989010989 +10869565217391304347826 +10752688172043010752688 +10638297872340425531914 +10526315789473684210526 +10416666666666666666666 +10309278350515463917525 +10204081632653061224489 +10101010101010101010101 +10000000000000000000000 +9900990099009900990099 +9803921568627450980392 +9708737864077669902912 +9615384615384615384615 +9523809523809523809523 +9433962264150943396226 +9345794392523364485981 +9259259259259259259259 +9174311926605504587155 +9090909090909090909090 +9009009009009009009009 +8928571428571428571428 +8849557522123893805309 +8771929824561403508771 +8695652173913043478260 +8620689655172413793103 +8547008547008547008547 +8474576271186440677966 +8403361344537815126050 +8333333333333333333333 +8264462809917355371900 +8196721311475409836065 +8130081300813008130081 +8064516129032258064516 +8000000000000000000000 +7936507936507936507936 +7874015748031496062992 +7812500000000000000000 +7751937984496124031007 +7692307692307692307692 +7633587786259541984732 +7575757575757575757575 +7518796992481203007518 +7462686567164179104477 +7407407407407407407407 +7352941176470588235294 +7299270072992700729927 +7246376811594202898550 +7194244604316546762589 +7142857142857142857142 +7092198581560283687943 +7042253521126760563380 +6993006993006993006993 +6944444444444444444444 +6896551724137931034482 +6849315068493150684931 +6802721088435374149659 +6756756756756756756756 +6711409395973154362416 +6666666666666666666666 +6622516556291390728476 +6578947368421052631578 +6535947712418300653594 +6493506493506493506493 +6451612903225806451612 +6410256410256410256410 +6369426751592356687898 +6329113924050632911392 +6289308176100628930817 +6250000000000000000000 +6211180124223602484472 +6172839506172839506172 +6134969325153374233128 +6097560975609756097560 +6060606060606060606060 +6024096385542168674698 +5988023952095808383233 +5952380952380952380952 +5917159763313609467455 +5882352941176470588235 +5847953216374269005847 +5813953488372093023255 +5780346820809248554913 +5747126436781609195402 +5714285714285714285714 +5681818181818181818181 +5649717514124293785310 +5617977528089887640449 +5586592178770949720670 +5555555555555555555555 +5524861878453038674033 +5494505494505494505494 +5464480874316939890710 +5434782608695652173913 +5405405405405405405405 +5376344086021505376344 +5347593582887700534759 +5319148936170212765957 +5291005291005291005291 +5263157894736842105263 +5235602094240837696335 +5208333333333333333333 +5181347150259067357512 +5154639175257731958762 +5128205128205128205128 +5102040816326530612244 +5076142131979695431472 +5050505050505050505050 +5025125628140703517587 +5000000000000000000000 +4975124378109452736318 +4950495049504950495049 +4926108374384236453201 +4901960784313725490196 +4878048780487804878048 +4854368932038834951456 +4830917874396135265700 +4807692307692307692307 +4784688995215311004784 +4761904761904761904761 +4739336492890995260663 +4716981132075471698113 +4694835680751173708920 +4672897196261682242990 +4651162790697674418604 +4629629629629629629629 +4608294930875576036866 +4587155963302752293577 +4566210045662100456621 +4545454545454545454545 +4524886877828054298642 +4504504504504504504504 +4484304932735426008968 +4464285714285714285714 +4444444444444444444444 +4424778761061946902654 +4405286343612334801762 +4385964912280701754385 +4366812227074235807860 +4347826086956521739130 +4329004329004329004329 +4310344827586206896551 +4291845493562231759656 +4273504273504273504273 +4255319148936170212765 +4237288135593220338983 +4219409282700421940928 +4201680672268907563025 +4184100418410041841004 +4166666666666666666666 +4149377593360995850622 +4132231404958677685950 +4115226337448559670781 +4098360655737704918032 +4081632653061224489795 +4065040650406504065040 +4048582995951417004048 +4032258064516129032258 +4016064257028112449799 +4000000000000000000000 +3984063745019920318725 +3968253968253968253968 +3952569169960474308300 +3937007874015748031496 +3921568627450980392156 +3906250000000000000000 +3891050583657587548638 +3875968992248062015503 +3861003861003861003861 +3846153846153846153846 +3831417624521072796934 +3816793893129770992366 +3802281368821292775665 +3787878787878787878787 +3773584905660377358490 +3759398496240601503759 +3745318352059925093632 +3731343283582089552238 +3717472118959107806691 +3703703703703703703703 +3690036900369003690036 +3676470588235294117647 +3663003663003663003663 +3649635036496350364963 +3636363636363636363636 +3623188405797101449275 +3610108303249097472924 +3597122302158273381294 +3584229390681003584229 +3571428571428571428571 +3558718861209964412811 +3546099290780141843971 +3533568904593639575971 +3521126760563380281690 +3508771929824561403508 +3496503496503496503496 +3484320557491289198606 +3472222222222222222222 +3460207612456747404844 +3448275862068965517241 +3436426116838487972508 +3424657534246575342465 +3412969283276450511945 +3401360544217687074829 +3389830508474576271186 +3378378378378378378378 +3367003367003367003367 +3355704697986577181208 +3344481605351170568561 +3333333333333333333333 +3322259136212624584717 +3311258278145695364238 +3300330033003300330033 +3289473684210526315789 +3278688524590163934426 +3267973856209150326797 +3257328990228013029315 +3246753246753246753246 +3236245954692556634304 +3225806451612903225806 +3215434083601286173633 +3205128205128205128205 +3194888178913738019169 +3184713375796178343949 +3174603174603174603174 +3164556962025316455696 +3154574132492113564668 +3144654088050314465408 +3134796238244514106583 +3125000000000000000000 +3115264797507788161993 +3105590062111801242236 +3095975232198142414860 +3086419753086419753086 +3076923076923076923076 +3067484662576687116564 +3058103975535168195718 +3048780487804878048780 +3039513677811550151975 +3030303030303030303030 +3021148036253776435045 +3012048192771084337349 +3003003003003003003003 +2994011976047904191616 +2985074626865671641791 +2976190476190476190476 +2967359050445103857566 +2958579881656804733727 +2949852507374631268436 +2941176470588235294117 +2932551319648093841642 +2923976608187134502923 +2915451895043731778425 +2906976744186046511627 +2898550724637681159420 +2890173410404624277456 +2881844380403458213256 +2873563218390804597701 +2865329512893982808022 +2857142857142857142857 +2849002849002849002849 +2840909090909090909090 +2832861189801699716713 +2824858757062146892655 +2816901408450704225352 +2808988764044943820224 +2801120448179271708683 +2793296089385474860335 +2785515320334261838440 +2777777777777777777777 +2770083102493074792243 +2762430939226519337016 +2754820936639118457300 +2747252747252747252747 +2739726027397260273972 +2732240437158469945355 +2724795640326975476839 +2717391304347826086956 +2710027100271002710027 +2702702702702702702702 +2695417789757412398921 +2688172043010752688172 +2680965147453083109919 +2673796791443850267379 +2666666666666666666666 +2659574468085106382978 +2652519893899204244031 +2645502645502645502645 +2638522427440633245382 +2631578947368421052631 +2624671916010498687664 +2617801047120418848167 +2610966057441253263707 +2604166666666666666666 +2597402597402597402597 +2590673575129533678756 +2583979328165374677002 +2577319587628865979381 +2570694087403598971722 +2564102564102564102564 +2557544757033248081841 +2551020408163265306122 +2544529262086513994910 +2538071065989847715736 +2531645569620253164556 +2525252525252525252525 +2518891687657430730478 +2512562814070351758793 +2506265664160401002506 +2500000000000000000000 +2493765586034912718204 +2487562189054726368159 +2481389578163771712158 +2475247524752475247524 +2469135802469135802469 +2463054187192118226600 +2457002457002457002457 +2450980392156862745098 +2444987775061124694376 +2439024390243902439024 +2433090024330900243309 +2427184466019417475728 +2421307506053268765133 +2415458937198067632850 +2409638554216867469879 +2403846153846153846153 +2398081534772182254196 +2392344497607655502392 +2386634844868735083532 +2380952380952380952380 +2375296912114014251781 +2369668246445497630331 +2364066193853427895981 +2358490566037735849056 +2352941176470588235294 +2347417840375586854460 +2341920374707259953161 +2336448598130841121495 +2331002331002331002331 +2325581395348837209302 +2320185614849187935034 +2314814814814814814814 +2309468822170900692840 +2304147465437788018433 +2298850574712643678160 +2293577981651376146788 +2288329519450800915331 +2283105022831050228310 +2277904328018223234624 +2272727272727272727272 +2267573696145124716553 +2262443438914027149321 +2257336343115124153498 +2252252252252252252252 +2247191011235955056179 +2242152466367713004484 +2237136465324384787472 +2232142857142857142857 +2227171492204899777282 +2222222222222222222222 +2217294900221729490022 +2212389380530973451327 +2207505518763796909492 +2202643171806167400881 +2197802197802197802197 +2192982456140350877192 +2188183807439824945295 +2183406113537117903930 +2178649237472766884531 +2173913043478260869565 +2169197396963123644251 +2164502164502164502164 +2159827213822894168466 +2155172413793103448275 +2150537634408602150537 +2145922746781115879828 +2141327623126338329764 +2136752136752136752136 +2132196162046908315565 +2127659574468085106382 +2123142250530785562632 +2118644067796610169491 +2114164904862579281183 +2109704641350210970464 +2105263157894736842105 +2100840336134453781512 +2096436058700209643605 +2092050209205020920502 +2087682672233820459290 +2083333333333333333333 +2079002079002079002079 +2074688796680497925311 +2070393374741200828157 +2066115702479338842975 +2061855670103092783505 +2057613168724279835390 +2053388090349075975359 +2049180327868852459016 +2044989775051124744376 +2040816326530612244897 +2036659877800407331975 +2032520325203252032520 +2028397565922920892494 +2024291497975708502024 +2020202020202020202020 +2016129032258064516129 +2012072434607645875251 +2008032128514056224899 +2004008016032064128256 +2000000000000000000000 +1996007984031936127744 +1992031872509960159362 +1988071570576540755467 +1984126984126984126984 +1980198019801980198019 +1976284584980237154150 +1972386587771203155818 +1968503937007874015748 +1964636542239685658153 +1960784313725490196078 +1956947162426614481409 +1953125000000000000000 +1949317738791423001949 +1945525291828793774319 +1941747572815533980582 +1937984496124031007751 +1934235976789168278529 +1930501930501930501930 +1926782273603082851637 +1923076923076923076923 +1919385796545105566218 +1915708812260536398467 +1912045889101338432122 +1908396946564885496183 +1904761904761904761904 +1901140684410646387832 +1897533206831119544592 +1893939393939393939393 +1890359168241965973534 +1886792452830188679245 +1883239171374764595103 +1879699248120300751879 +1876172607879924953095 +1872659176029962546816 +1869158878504672897196 +1865671641791044776119 +1862197392923649906890 +1858736059479553903345 +1855287569573283858998 +1851851851851851851851 +1848428835489833641404 +1845018450184501845018 +1841620626151012891344 +1838235294117647058823 +1834862385321100917431 +1831501831501831501831 +1828153564899451553930 +1824817518248175182481 +1821493624772313296903 +1818181818181818181818 +1814882032667876588021 +1811594202898550724637 +1808318264014466546112 +1805054151624548736462 +10000000000100000000000000 +5000000000050000000000000 +3333333333366666666666666 +2500000000025000000000000 +2000000000020000000000000 +1666666666683333333333333 +1428571428585714285714285 +1250000000012500000000000 +1111111111122222222222222 +1000000000010000000000000 +909090909100000000000000 +833333333341666666666666 +769230769238461538461538 +714285714292857142857142 +666666666673333333333333 +625000000006250000000000 +588235294123529411764705 +555555555561111111111111 +526315789478947368421052 +500000000005000000000000 +476190476195238095238095 +454545454550000000000000 +434782608700000000000000 +416666666670833333333333 +400000000004000000000000 +384615384619230769230769 +370370370374074074074074 +357142857146428571428571 +344827586210344827586206 +333333333336666666666666 +322580645164516129032258 +312500000003125000000000 +303030303033333333333333 +294117647061764705882352 +285714285717142857142857 +277777777780555555555555 +270270270272972972972972 +263157894739473684210526 +256410256412820512820512 +250000000002500000000000 +243902439026829268292682 +238095238097619047619047 +232558139537209302325581 +227272727275000000000000 +222222222224444444444444 +217391304350000000000000 +212765957448936170212765 +208333333335416666666666 +204081632655102040816326 +200000000002000000000000 +196078431374509803921568 +192307692309615384615384 +188679245284905660377358 +185185185187037037037037 +181818181820000000000000 +178571428573214285714285 +175438596492982456140350 +172413793105172413793103 +169491525425423728813559 +166666666668333333333333 +163934426231147540983606 +161290322582258064516129 +158730158731746031746031 +156250000001562500000000 +153846153847692307692307 +151515151516666666666666 +149253731344776119402985 +147058823530882352941176 +144927536233333333333333 +142857142858571428571428 +140845070423943661971830 +138888888890277777777777 +136986301371232876712328 +135135135136486486486486 +133333333334666666666666 +131578947369736842105263 +129870129871428571428571 +128205128206410256410256 +126582278482278481012658 +125000000001250000000000 +123456790124691358024691 +121951219513414634146341 +120481927712048192771084 +119047619048809523809523 +117647058824705882352941 +116279069768604651162790 +114942528736781609195402 +113636363637500000000000 +112359550562921348314606 +111111111112222222222222 +109890109891208791208791 +108695652175000000000000 +107526881721505376344086 +106382978724468085106382 +105263157895789473684210 +104166666667708333333333 +103092783506185567010309 +102040816327551020408163 +101010101011111111111111 +100000000001000000000000 +99009900991089108910891 +98039215687254901960784 +97087378641747572815533 +96153846154807692307692 +95238095239047619047619 +94339622642452830188679 +93457943926168224299065 +92592592593518518518518 +91743119266972477064220 +90909090910000000000000 +90090090090990990990990 +89285714286607142857142 +88495575222123893805309 +87719298246491228070175 +86956521740000000000000 +86206896552586206896551 +85470085470940170940170 +84745762712711864406779 +84033613446218487394957 +83333333334166666666666 +82644628100000000000000 +81967213115573770491803 +81300813008943089430894 +80645161291129032258064 +80000000000800000000000 +79365079365873015873015 +78740157481102362204724 +78125000000781250000000 +77519379845736434108527 +76923076923846153846153 +76335877863358778625954 +75757575758333333333333 +75187969925563909774436 +74626865672388059701492 +74074074074814814814814 +73529411765441176470588 +72992700730656934306569 +72463768116666666666666 +71942446043884892086330 +71428571429285714285714 +70921985816312056737588 +70422535211971830985915 +69930069930769230769230 +69444444445138888888888 +68965517242068965517241 +68493150685616438356164 +68027210885034013605442 +67567567568243243243243 +67114093960402684563758 +66666666667333333333333 +66225165563576158940397 +65789473684868421052631 +65359477124836601307189 +64935064935714285714285 +64516129032903225806451 +64102564103205128205128 +63694267516560509554140 +63291139241139240506329 +62893081761635220125786 +62500000000625000000000 +62111801242857142857142 +61728395062345679012345 +61349693252147239263803 +60975609756707317073170 +60606060606666666666666 +60240963856024096385542 +59880239521556886227544 +59523809524404761904761 +59171597633727810650887 +58823529412352941176470 +58479532164327485380116 +58139534884302325581395 +57803468208670520231213 +57471264368390804597701 +57142857143428571428571 +56818181818750000000000 +56497175141807909604519 +56179775281460674157303 +55865921788268156424581 +55555555556111111111111 +55248618785082872928176 +54945054945604395604395 +54644808743715846994535 +54347826087500000000000 +54054054054594594594594 +53763440860752688172043 +53475935829411764705882 +53191489362234042553191 +52910052910582010582010 +52631578947894736842105 +52356020942931937172774 +52083333333854166666666 +51813471503108808290155 +51546391753092783505154 +51282051282564102564102 +51020408163775510204081 +50761421320304568527918 +50505050505555555555555 +50251256281909547738693 +50000000000500000000000 +49751243781592039800995 +49504950495544554455445 +49261083744334975369458 +49019607843627450980392 +48780487805365853658536 +48543689320873786407766 +48309178744444444444444 +48076923077403846153846 +47846889952631578947368 +47619047619523809523809 +47393364929383886255924 +47169811321226415094339 +46948356807981220657276 +46728971963084112149532 +46511627907441860465116 +46296296296759259259259 +46082949309216589861751 +45871559633486238532110 +45662100457077625570776 +45454545455000000000000 +45248868778733031674208 +45045045045495495495495 +44843049327802690582959 +44642857143303571428571 +44444444444888888888888 +44247787611061946902654 +44052863436563876651982 +43859649123245614035087 +43668122271179039301310 +43478260870000000000000 +43290043290476190476190 +43103448276293103448275 +42918454936051502145922 +42735042735470085470085 +42553191489787234042553 +42372881356355932203389 +42194092827426160337552 +42016806723109243697478 +41841004184518828451882 +41666666667083333333333 +41493775934024896265560 +41322314050000000000000 +41152263374897119341563 +40983606557786885245901 +40816326531020408163265 +40650406504471544715447 +40485829959919028340080 +40322580645564516129032 +40160642570682730923694 +40000000000400000000000 +39840637450597609561752 +39682539682936507936507 +39525691700000000000000 +39370078740551181102362 +39215686274901960784313 +39062500000390625000000 +38910505836964980544747 +38759689922868217054263 +38610038610424710424710 +38461538461923076923076 +38314176245593869731800 +38167938931679389312977 +38022813688593155893536 +37878787879166666666666 +37735849056981132075471 +37593984962781954887218 +37453183520973782771535 +37313432836194029850746 +37174721189962825278810 +37037037037407407407407 +36900369004059040590405 +36764705882720588235294 +36630036630402930402930 +36496350365328467153284 +36363636364000000000000 +36231884058333333333333 +36101083032851985559566 +35971223021942446043165 +35842293907168458781362 +35714285714642857142857 +35587188612455516014234 +35460992908156028368794 +35335689046289752650176 +35211267605985915492957 +35087719298596491228070 +34965034965384615384615 +34843205575261324041811 +34722222222569444444444 +34602076124913494809688 +34482758621034482758620 +34364261168728522336769 +34246575342808219178082 +34129692833105802047781 +34013605442517006802721 +33898305085084745762711 +33783783784121621621621 +33670033670370370370370 +33557046980201342281879 +33444816053846153846153 +33333333333666666666666 +33222591362458471760797 +33112582781788079470198 +33003300330363036303630 +32894736842434210526315 +32786885246229508196721 +32679738562418300653594 +32573289902605863192182 +32467532467857142857142 +32362459547249190938511 +32258064516451612903225 +32154340836334405144694 +32051282051602564102564 +31948881789456869009584 +31847133758280254777070 +31746031746349206349206 +31645569620569620253164 +31545741325236593059936 +31446540880817610062893 +31347962382758620689655 +31250000000312500000000 +31152647975389408099688 +31055900621428571428571 +30959752322291021671826 +30864197531172839506172 +30769230769538461538461 +30674846626073619631901 +30581039755657492354740 +30487804878353658536585 +30395136778419452887537 +30303030303333333333333 +30211480362839879154078 +30120481928012048192771 +30030030030330330330330 +29940119760778443113772 +29850746268955223880597 +29761904762202380952380 +29673590504747774480712 +29585798816863905325443 +29498525074041297935103 +29411764706176470588235 +29325513196774193548387 +29239766082163742690058 +29154518950728862973760 +29069767442151162790697 +28985507246666666666666 +28901734104335260115606 +28818443804322766570605 +28735632184195402298850 +28653295129226361031518 +28571428571714285714285 +28490028490313390313390 +28409090909375000000000 +28328611898300283286118 +28248587570903954802259 +28169014084788732394366 +28089887640730337078651 +28011204482072829131652 +27932960894134078212290 +27855153203621169916434 +27777777778055555555555 +27700831025207756232686 +27624309392541436464088 +27548209366666666666666 +27472527472802197802197 +27397260274246575342465 +27322404371857923497267 +27247956403542234332425 +27173913043750000000000 +27100271002981029810298 +27027027027297297297297 +26954177897843665768194 +26881720430376344086021 +26809651474798927613941 +26737967914705882352941 +26666666666933333333333 +26595744681117021276595 +26525198939257294429708 +26455026455291005291005 +26385224274670184696569 +26315789473947368421052 +26246719160367454068241 +26178010471465968586387 +26109660574673629242819 +26041666666927083333333 +25974025974285714285714 +25906735751554404145077 +25839793281912144702842 +25773195876546391752577 +25706940874293059125964 +25641025641282051282051 +25575447570588235294117 +25510204081887755102040 +25445292621119592875318 +25380710660152284263959 +25316455696455696202531 +25252525252777777777777 +25188916876826196473551 +25125628140954773869346 +25062656641854636591478 +25000000000250000000000 +24937655860598503740648 +24875621890796019900497 +24813895781885856079404 +24752475247772277227722 +24691358024938271604938 +24630541872167487684729 +24570024570270270270270 +24509803921813725490196 +24449877750855745721271 +24390243902682926829268 +24330900243552311435523 +24271844660436893203883 +24213075060774818401937 +24154589372222222222222 +24096385542409638554216 +24038461538701923076923 +23980815347961630695443 +23923444976315789473684 +23866348448926014319809 +23809523809761904761904 +23752969121377672209026 +23696682464691943127962 +23640661938770685579196 +23584905660613207547169 +23529411764941176470588 +23474178403990610328638 +23419203747306791569086 +23364485981542056074766 +23310023310256410256410 +23255813953720930232558 +23201856148723897911832 +23148148148379629629629 +23094688221939953810623 +23041474654608294930875 +22988505747356321839080 +22935779816743119266055 +22883295194736842105263 +22831050228538812785388 +22779043280410022779043 +22727272727500000000000 +22675736961678004535147 +22624434389366515837104 +22573363431376975169300 +22522522522747747747747 +22471910112584269662921 +22421524663901345291479 +22371364653467561521252 +22321428571651785714285 +22271714922271714922048 +22222222222444444444444 +22172949002439024390243 +22123893805530973451327 +22075055187858719646799 +22026431718281938325991 +21978021978241758241758 +21929824561622807017543 +21881838074617067833698 +21834061135589519650655 +21786492374945533769063 +21739130435000000000000 +21691973969848156182212 +21645021645238095238095 +21598272138444924406047 +21551724138146551724137 +21505376344301075268817 +21459227468025751072961 +21413276231477516059957 +21367521367735042735042 +21321961620682302771855 +21276595744893617021276 +21231422505520169851380 +21186440678177966101694 +21141649048837209302325 +21097046413713080168776 +21052631579157894736842 +21008403361554621848739 +20964360587211740041928 +20920502092259414225941 +20876826722546972860125 +20833333333541666666666 +20790020790228690228690 +20746887967012448132780 +20703933747619047619047 +20661157025000000000000 +20618556701237113402061 +20576131687448559670781 +20533880903696098562628 +20491803278893442622950 +20449897750715746421267 +20408163265510204081632 +20366598778207739307535 +20325203252235772357723 +20283975659432048681541 +20242914979959514170040 +20202020202222222222222 +20161290322782258064516 +20120724346277665995975 +20080321285341365461847 +20040080160521042084168 +20000000000200000000000 +19960079840518962075848 +19920318725298804780876 +19880715705964214711729 +19841269841468253968253 +19801980198217821782178 +19762845850000000000000 +19723865877909270216962 +19685039370275590551181 +19646365422593320235756 +19607843137450980392156 +19569471624461839530332 +19531250000195312500000 +19493177388109161793372 +19455252918482490272373 +19417475728349514563106 +19379844961434108527131 +19342359768085106382978 +19305019305212355212355 +19267822736223506743737 +19230769230961538461538 +19193857965642994241842 +19157088122796934865900 +19120458891204588910133 +19083969465839694656488 +19047619047809523809523 +19011406844296577946768 +18975332068500948766603 +18939393939583333333333 +18903591682608695652173 +18867924528490566037735 +18832391713935969868173 +18796992481390977443609 +18761726078986866791744 +18726591760486891385767 +18691588785233644859813 +18656716418097014925373 +18621973929422718808193 +18587360594981412639405 +18552875695918367346938 +18518518518703703703703 +18484288355083179297597 +18450184502029520295202 +18416206261694290976058 +18382352941360294117647 +18348623853394495412844 +18315018315201465201465 +18281535649177330895795 +18248175182664233576642 +18214936247905282331511 +18181818182000000000000 +18148820326860254083484 +18115942029166666666666 +18083182640325497287522 +18050541516425992779783 +10012003400000000000000007 +5006001700000000000000003 +3337334466666666666666669 +2503000850000000000000001 +2002400680000000000000001 +1668667233333333333333334 +1430286200000000000000001 +1251500425000000000000000 +1112444822222222222222223 +1001200340000000000000000 +910182127272727272727273 +834333616666666666666667 +770154107692307692307692 +715143100000000000000000 +667466893333333333333333 +625750212500000000000000 +588941376470588235294118 +556222411111111111111111 +526947547368421052631579 +500600170000000000000000 +476762066666666666666667 +455091063636363636363636 +435304495652173913043478 +417166808333333333333333 +400480136000000000000000 +385077053846153846153846 +370814940740740740740741 +357571550000000000000000 +345241496551724137931034 +333733446666666666666666 +322967851612903225806451 +312875106250000000000000 +303394042424242424242424 +294470688235294117647059 +286057240000000000000000 +278111205555555555555555 +270594686486486486486486 +263473773684210526315789 +256718035897435897435897 +250300085000000000000000 +244195204878048780487805 +238381033333333333333333 +232837288372093023255814 +227545531818181818181818 +222488964444444444444444 +217652247826086956521739 +213021348936170212765957 +208583404166666666666666 +204326600000000000000000 +200240068000000000000000 +196313792156862745098039 +192538526923076923076923 +188905724528301886792452 +185407470370370370370370 +182036425454545454545454 +178785775000000000000000 +175649182456140350877193 +172620748275862068965517 +169694972881355932203389 +166866723333333333333333 +164131203278688524590164 +161483925806451612903225 +158920688888888888888889 +156437553125000000000000 +154030821538461538461538 +151697021212121212121212 +149432886567164179104477 +147235344117647058823529 +145101498550724637681159 +143028620000000000000000 +141014132394366197183098 +139055602777777777777777 +137150731506849315068493 +135297343243243243243243 +133493378666666666666666 +131736886842105263157894 +130026018181818181818181 +128359017948717948717948 +126734220253164556962025 +125150042500000000000000 +123604980246913580246913 +122097602439024390243902 +120626546987951807228915 +119190516666666666666666 +117788275294117647058823 +116418644186046511627907 +115080498850574712643678 +113772765909090909090909 +112494420224719101123595 +111244482222222222222222 +110022015384615384615384 +108826123913043478260869 +107655950537634408602150 +106510674468085106382978 +105389509473684210526315 +104291702083333333333333 +103216529896907216494845 +102163300000000000000000 +101131347474747474747474 +100120034000000000000000 +99128746534653465346534 +98156896078431372549019 +97203916504854368932038 +96269263461538461538461 +95352413333333333333333 +94452862264150943396226 +93570125233644859813084 +92703735185185185185185 +91853242201834862385321 +91018212727272727272727 +90198228828828828828828 +89392887500000000000000 +88601800000000000000000 +87824591228070175438596 +87060899130434782608695 +86310374137931034482758 +85572678632478632478632 +84847486440677966101694 +84134482352941176470588 +83433361666666666666666 +82743829752066115702479 +82065601639344262295082 +81398401626016260162601 +80741962903225806451612 +80096027200000000000000 +79460344444444444444444 +78834672440944881889763 +78218776562500000000000 +77612429457364341085271 +77015410769230769230769 +76427506870229007633587 +75848510606060606060606 +75278221052631578947368 +74716443283582089552238 +74162988148148148148148 +73617672058823529411764 +73080316788321167883211 +72550749275362318840579 +72028801438848920863309 +71514310000000000000000 +71007116312056737588652 +70507066197183098591549 +70014009790209790209790 +69527801388888888888888 +69048299310344827586206 +68575365753424657534246 +68108866666666666666666 +67648671621621621621621 +67194653691275167785234 +66746689333333333333333 +66304658278145695364238 +65868443421052631578947 +65437930718954248366013 +65013009090909090909090 +64593570322580645161290 +64179508974358974358974 +63770722292993630573248 +63367110126582278481012 +62968574842767295597484 +62575021250000000000000 +62186356521739130434782 +61802490123456790123456 +61423333742331288343558 +61048801219512195121951 +60678808484848484848484 +60313273493975903614457 +59952116167664670658682 +59595258333333333333333 +59242623668639053254437 +58894137647058823529411 +58549727485380116959064 +58209322093023255813953 +57872852023121387283237 +57540249425287356321839 +57211448000000000000000 +56886382954545454545454 +56564990960451977401129 +56247210112359550561797 +55932979888268156424581 +55622241111111111111111 +55314935911602209944751 +55011007692307692307692 +54710401092896174863388 +54413061956521739130434 +54118937297297297297297 +53827975268817204301075 +53540125133689839572192 +53255337234042553191489 +52973562962962962962963 +52694754736842105263157 +52418865968586387434555 +52145851041666666666666 +51875665284974093264248 +51608264948453608247422 +51343607179487179487179 +51081650000000000000000 +50822352284263959390862 +50565673737373737373737 +50311574874371859296482 +50060017000000000000000 +49810962189054726368159 +49564373267326732673267 +49320213793103448275862 +49078448039215686274509 +48839040975609756097561 +48601958252427184466019 +48367166183574879227053 +48134631730769230769230 +47904322488038277511961 +47676206666666666666666 +47450253080568720379146 +47226431132075471698113 +47004710798122065727699 +46785062616822429906542 +46567457674418604651162 +46351867592592592592592 +46138264516129032258064 +45926621100917431192660 +45716910502283105022831 +45509106363636363636363 +45303182805429864253393 +45099114414414414414414 +44896876233183856502242 +44696443750000000000000 +44497792888888888888888 +44300900000000000000000 +44105741850220264317180 +43912295614035087719298 +43720538864628820960698 +43530449565217391304347 +43342006060606060606060 +43155187068965517241379 +42969971673819742489270 +42786339316239316239316 +42604269787234042553191 +42423743220338983050847 +42244740084388185654008 +42067241176470588235294 +41891227615062761506276 +41716680833333333333333 +41543582572614107883817 +41371914876033057851239 +41201660082304526748971 +41032800819672131147541 +40865320000000000000000 +40699200813008130081300 +40534426720647773279352 +40370981451612903225806 +40208848995983935742971 +40048013600000000000000 +39888459760956175298804 +39730172222222222222222 +39573135968379446640316 +39417336220472440944881 +39262758431372549019607 +39109388281250000000000 +38957211673151750972762 +38806214728682170542635 +38656383783783783783783 +38507705384615384615384 +38360166283524904214559 +38213753435114503816793 +38068453992395437262357 +37924255303030303030303 +37781144905660377358490 +37639110526315789473684 +37498140074906367041198 +37358221641791044776119 +37219343494423791821561 +37081494074074074074074 +36944661992619926199262 +36808836029411764705882 +36674005128205128205128 +36540158394160583941605 +36407285090909090909090 +36275374637681159420289 +36144416606498194945848 +36014400719424460431654 +35885316845878136200716 +35757155000000000000000 +35629905338078291814946 +35503558156028368794326 +35378103886925795053003 +35253533098591549295774 +35129836491228070175438 +35007004895104895104895 +34885029268292682926829 +34763900694444444444444 +34643610380622837370242 +34524149655172413793103 +34405509965635738831615 +34287682876712328767123 +34170660068259385665529 +34054433333333333333333 +33938994576271186440677 +33824335810810810810810 +33710449158249158249158 +33597326845637583892617 +33484961204013377926421 +33373344666666666666666 +33262469767441860465116 +33152329139072847682119 +33042915511551155115511 +32934221710526315789473 +32826240655737704918032 +32718965359477124183006 +32612388925081433224755 +32506504545454545454545 +32401305501618122977346 +32296785161290322580645 +32192936977491961414791 +32089754487179487179487 +31987231309904153354632 +31885361146496815286624 +31784137777777777777777 +31683555063291139240506 +31583606940063091482649 +31484287421383647798742 +31385590595611285266457 +31287510625000000000000 +31190041744548286604361 +31093178260869565217391 +30996914551083591331269 +30901245061728395061728 +30806164307692307692307 +30711666871165644171779 +30617747400611620795107 +30524400609756097560975 +30431621276595744680851 +30339404242424242424242 +30247744410876132930513 +30156636746987951807228 +30066076276276276276276 +29976058083832335329341 +29886577313432835820895 +29797629166666666666666 +29709208902077151335311 +29621311834319526627218 +29533933333333333333333 +29447068823529411764705 +29360713782991202346041 +29274863742690058479532 +29189514285714285714285 +29104661046511627906976 +29020299710144927536231 +28936426011560693641618 +28853035734870317002881 +28770124712643678160919 +28687688825214899713467 +28605724000000000000000 +28524226210826210826210 +28443191477272727272727 +28362615864022662889518 +28282495480225988700564 +28202826478873239436619 +28123605056179775280898 +28044827450980392156862 +27966489944134078212290 +27888588857938718662952 +27811120555555555555555 +27734081440443213296398 +27657467955801104972375 +27581276584022038567493 +27505503846153846153846 +27430146301369863013698 +27355200546448087431694 +27280663215258855585831 +27206530978260869565217 +27132800542005420054200 +27059468648648648648648 +26986532075471698113207 +26913987634408602150537 +26841832171581769436997 +26770062566844919786096 +26698675733333333333333 +26627668617021276595744 +26557038196286472148541 +26486781481481481481481 +26416895514511873350923 +26347377368421052631578 +26278224146981627296587 +26209432984293193717277 +26141001044386422976501 +26072925520833333333333 +26005203636363636363636 +25937832642487046632124 +25870809819121447028423 +25804132474226804123711 +25737797943444730077120 +25671803589743589743589 +25606146803069053708439 +25540825000000000000000 +25475835623409669211195 +25411176142131979695431 +25346844050632911392405 +25282836868686868686868 +25219152141057934508816 +25155787437185929648241 +25092740350877192982456 +25030008500000000000000 +24967589526184538653366 +24905481094527363184079 +24843680893300248138957 +24782186633663366336633 +24720996049382716049382 +24660106896551724137931 +24599516953316953316953 +24539224019607843137254 +24479225916870415647921 +24419520487804878048780 +24360105596107055961070 +24300979126213592233009 +24242138983050847457627 +24183583091787439613526 +24125309397590361445783 +24067315865384615384615 +24009600479616306954436 +23952161244019138755980 +23894996181384248210023 +23838103333333333333333 +23781480760095011876484 +23725126540284360189573 +23669038770685579196217 +23613215566037735849056 +23557655058823529411764 +23502355399061032863849 +23447314754098360655737 +23392531308411214953271 +23338003263403263403263 +23283728837209302325581 +23229706264501160092807 +23175933796296296296296 +23122409699769053117782 +23069132258064516129032 +23016099770114942528735 +22963310550458715596330 +22910762929061784897025 +22858455251141552511415 +22806385876993166287015 +22754553181818181818181 +22702955555555555555555 +22651591402714932126696 +22600459142212189616252 +22549557207207207207207 +22498884044943820224719 +22448438116591928251121 +22398217897091722595078 +22348221875000000000000 +22298448552338530066815 +22248896444444444444444 +22199564079822616407982 +22150450000000000000000 +22101552759381898454746 +22052870925110132158590 +22004403076923076923076 +21956147807017543859649 +21908103719912472647702 +21860269432314410480349 +21812643572984749455337 +21765224782608695652173 +21718011713665943600867 +21671003030303030303030 +21624197408207343412527 +21577593534482758620689 +21531190107526881720430 +21484985836909871244635 +21438979443254817987152 +21393169658119658119658 +21347555223880597014925 +21302134893617021276595 +21256907430997876857749 +21211871610169491525423 +21167026215644820295983 +21122370042194092827004 +21077901894736842105263 +21033620588235294117647 +20989524947589098532494 +20945613807531380753138 +20901886012526096033402 +20858340416666666666666 +20814975883575883575883 +20771791286307053941908 +20728785507246376811594 +20685957438016528925619 +20643305979381443298969 +20600830041152263374485 +20558528542094455852156 +20516400409836065573770 +20474444580777096114519 +20432660000000000000000 +20391045621181262729124 +20349600406504065040650 +20308323326572008113590 +20267213360323886639676 +20226269494949494949494 +20185490725806451612903 +20144876056338028169014 +20104424497991967871485 +20064135070140280561122 +20024006800000000000000 +19984038722554890219560 +19944229880478087649402 +19904579324055666003976 +19865086111111111111111 +19825749306930693069306 +19786567984189723320158 +19747541222879684418145 +19708668110236220472440 +19669947740667976424361 +19631379215686274509803 +19592961643835616438356 +19554694140625000000000 +19516575828460038986354 +19478605836575875486381 +19440783300970873786407 +19403107364341085271317 +19365577176015473887814 +19328191891891891891891 +19290950674373795761079 +19253852692307692307692 +19216897120921305182341 +19180083141762452107279 +19143409942638623326959 +19106876717557251908396 +19070482666666666666666 +19034226996197718631178 +18998108918406072106261 +18962127651515151515151 +18926282419659735349716 +18890572452830188679245 +18854996986817325800376 +18819555263157894736842 +18784246529080675422138 +18749070037453183520599 +18714025046728971962616 +18679110820895522388059 +18644326629422718808193 +18609671747211895910780 +18575145454545454545454 +18540747037037037037037 +18506475785582255083179 +18472330996309963099631 +18438311970534069981583 +18404418014705882352941 +18370648440366972477064 +18337002564102564102564 +18303479707495429616087 +18270079197080291970802 +18236800364298724954462 +18203642545454545454545 +18170605081669691470054 +18137687318840579710144 +18104888607594936708860 +18072208303249097472924 +12349083434598210349871029923874109871234789 +6174541717299105174935514961937054935617394 +4116361144866070116623676641291369957078263 +3087270858649552587467757480968527467808697 +2469816686919642069974205984774821974246957 +2058180572433035058311838320645684978539131 +1764154776371172907124432846267729981604969 +1543635429324776293733878740484263733904348 +1372120381622023372207892213763789985692754 +1234908343459821034987102992387410987123478 +1122643948599837304533729993079464533748617 +1029090286216517529155919160322842489269565 +949929494969093103836233071067239220864214 +882077388185586453562216423133864990802484 +823272228973214023324735328258273991415652 +771817714662388146866939370242131866952174 +726416672623424138227707642580829992425575 +686060190811011686103946106881894992846377 +649951759715695281572159469677584730064988 +617454171729910517493551496193705493561739 +588051592123724302374810948755909993868323 +561321974299918652266864996539732266874308 +536916671069487406516131735820613472662382 +514545143108258764577959580161421244634782 +493963337383928413994841196954964394849391 +474964747484546551918116535533619610432107 +457373460540674457402630737921263328564251 +441038694092793226781108211566932495401242 +425830463262007253443828618064624478318441 +411636114486607011662367664129136995707826 +398357530148329366124871933028197092620477 +385908857331194073433469685121065933476087 +374214649533279101511243331026488177916205 +363208336311712069113853821290414996212787 +352830955274234581424886569253545996320993 +343030095405505843051973053440947496423188 +333759011745897577023541349293894861384724 +324975879857847640786079734838792365032494 +316643164989697701278744357022413073621404 +308727085864955258746775748096852746780869 +301197156941419764631000729850588045639872 +294025796061862151187405474377954996934161 +287187986851121170927233254043583950493832 +280660987149959326133432498269866133437154 +274424076324404674441578442752757997138550 +268458335534743703258065867910306736331191 +262746456055281071273851700507959784494357 +257272571554129382288979790080710622317391 +252022110910167558160633263752532854514995 +246981668691964206997420598477482197424695 +242138890874474712742569214193609997475191 +237482373742273275959058267766809805216053 +233001574237702082073038300450454903230845 +228686730270337228701315368960631664282125 +224528789719967460906745998615892906749723 +220519347046396613390554105783466247700621 +216650586571898427190719823225861576688329 +212915231631003626721914309032312239159220 +209306498891495090675780168201256099512454 +205818057243303505831183832064568497853913 +202443990731118202456902129899575571659586 +199178765074164683062435966514098546310238 +196017197374574767458270316251969997956107 +192954428665597036716734842560532966738043 +189985898993818620767246614213447844172842 +187107324766639550755621665513244088958102 +184314678128331497759269103341404624943802 +181604168155856034556926910645207498106393 +178972223689829135505377245273537824220794 +176415477637117290712443284626772998160496 +173930752599974793660155351040480420721616 +171515047702752921525986526720473748211594 +169165526501345347258507259231152190016914 +166879505872948788511770674646947430692362 +164654445794642804664947065651654798283130 +162487939928923820393039867419396182516247 +160377706942833900647675713297066361964088 +158321582494848850639372178511206536810702 +156317511830357093036342150935115314825756 +154363542932477629373387874048426373390434 +152457820180224819134210245973754442854750 +150598578470709882315500364925294022819936 +148784137766243498191217227998483251460660 +147012898030931075593702737188977498467080 +145283334524684827645541528516165998485115 +143593993425560585463616627021791975246916 +141943487754002417814609539354874826106147 +140330493574979663066716249134933066718577 +138753746456159666852483482290720335631851 +137212038162202337220789221376378998569275 +135704213567013300548033295866748460123459 +134229167767371851629032933955153368165595 +132785843382776455374957311009399030873492 +131373228027640535636925850253979892247178 +129990351943139056314431893935516946012997 +128636285777064691144489895040355311158695 +127310138501012477833721957978083606919946 +126011055455083779080316631876266427257497 +124738216511093033837081110342162725972068 +123490834345982103498710299238741098712347 +122268152817804062870010197266080295754799 +121069445437237356371284607096804998737595 +119894013928137964561854659455088445351794 +118741186871136637979529133883404902608026 +117610318424744860474962189751181998773664 +116500787118851041036519150225227451615422 +115411994715871124765149812372655232441446 +114343365135168614350657684480315832141062 +113294343436680828897899357099762475882887 +112264394859983730453372999307946453374861 +111253003915299192341180449764631620461574 +110259673523198306695277052891733123850310 +109283924199984162388239202866142565232166 +108325293285949213595359911612930788344164 +107383334213897481303226347164122694532476 +106457615815501813360957154516156119579610 +105547721663232567092914785674137691207134 +104653249445747545337890084100628049756227 +103773810374774876889672520368689998917939 +102909028621651752915591916032284248926956 +102058540781803391321248181189042230340783 +101221995365559101228451064949787785829793 +100399052313806588210333576616862681879957 +99589382537082341531217983257049273155119 +98792667476785682798968239390992878969878 +98008598687287383729135158125984998978053 +97236877437781183857252204124992991112084 +96477214332798518358367421280266483369021 +95729328950373723642411084681194650164610 +94992949496909310383623307106723922086421 +94267812477848933968481144457054273826219 +93553662383319775377810832756622044479051 +92850251387956468796022781382512104294998 +92157339064165748879634551670702312471901 +91474692108134891480526147584252665712850 +90802084077928017278463455322603749053196 +90139295143052630291029415502730728987115 +89486111844914567752688622636768912110397 +88842326867613024099791582186144675332624 +88207738818558645356221642313386499080248 +87582152018427023757950566835986594831452 +86965376299987396830077675520240210360808 +86357226815372100348748461006112656442201 +85757523851376460762993263360236874105797 +85166092652401450688765723612924895663688 +84582763250672673629253629615576095008457 +84007370303389186053544421250844284838331 +83439752936474394255885337323473715346181 +82879754594618861408530402173651744102246 +82327222897321402332473532825827399141565 +81782009500650399668020065721020595173740 +81243969964461910196519933709698091258123 +80712963624824904247523071397869999158397 +80188853471416950323837856648533180982044 +79671506029665873224974386605639418524095 +79160791247424425319686089255603268405351 +78656582385975862101089362572446559689393 +78158755915178546518171075467557657412878 +77667191412567360691012766816818301076948 +77181771466238814686693937024213186695217 +76702381581355343788018819402944781808911 +76228910090112409567105122986877221427375 +75761248065019695397981778674074293688556 +75299289235354941157750182462647011409968 +74842929906655820302248666205297635583241 +74392068883121749095608613999241625730330 +73946607392803654789646885771701256713980 +73506449015465537796851368594488749233540 +73071499613007161833556390082095324681862 +72641667262342413822770764258082999242557 +72216862190632809063573274408620525562776 +71796996712780292731808313510895987623458 +71381985171087921097520404184243409660316 +70971743877001208907304769677437413053073 +70566191054846916284977313850709199264198 +70165246787489831533358124567466533359288 +69768832963831696891926722733752033170818 +69376873228079833426241741145360167815925 +68989292930716258937826982814939161291814 +68606019081101168610394610688189499284637 +68226980301647570993762596264497844592457 +67852106783506650274016647933374230061729 +67481330243706067485634043299858523886528 +67114583883685925814516466977576684082797 +66751802349179515404708269858778972276944 +66392921691388227687478655504699515436746 +66037879329402194384337058416439090220506 +65686614013820267818462925126989946123589 +65339065791524922486090105417323332652035 +64995175971569528157215946967758473006498 +64654887092137226962675549339655025503847 +64318142888532345572244947520177655579347 +63984888262166893004513108413855491560802 +63655069250506238916860978989041803459973 +63328632997939540255748871404482614724280 +63005527727541889540158315938133213628748 +62685702713696499237924009765858425742308 +62369108255546516918540555171081362986034 +62055695651247288190306683034543265684596 +61745417172991051749355149619370549356173 +61438226042777165919756367780468208314600 +61134076408902031435005098633040147877399 +60832923323143893349118374009232068331205 +60534722718618678185642303548402499368797 +60239431388283952926200145970117609127974 +59947006964068982280927329727544222675897 +59657407896609711835125748424512608073598 +59370593435568318989764566941702451304013 +59086523610517752870196315425234975460453 +58805159212372430237481094875590999386832 +58526461775346968482801089686607155787842 +58250393559425520518259575112613725807711 +57976917533324931220051783680160140240538 +57705997357935562382574906186327616220723 +57437597370224234185446650808716790098766 +57171682567584307175328842240157916070531 +56908218592618480874981704718313870374353 +56647171718340414448949678549881237941443 +56388508833781782419502419743717396672304 +56132197429991865226686499653973226687430 +55878205586417241402131357121602307109659 +55626501957649596170590224882315810230787 +55377055760530091255027040017372690005537 +55129836761599153347638526445866561925155 +54884815264880934888315688550551599427710 +54641962099992081194119601433071282616083 +54401248610564803303396607594159074322620 +54162646642974606797679955806465394172082 +53926128535363363973235938532201353149496 +53691667106948740651613173582061347266238 +53459235647611300215891904432355453988029 +53228807907750906680478577258078059789805 +53000358088404336265540900960833089576114 +52773860831616283546457392837068845603567 +52549291211056214254770340101591956898871 +52326624722873772668945042050314024878113 +52105837276785697678780716978371771608585 +51886905187387438444836260184344999458969 +51669805165682888493184225622904225402656 +51454514310825876457795958016142124463478 +51241010102067262862535393874996306519646 +51029270390901695660624090594521115170391 +50819273393408273044736748657918147618250 +50610997682779550614225532474893892914896 +50404422182033511632126652750506570902999 +50199526156903294105166788308431340939978 +49996289208899637044012266898275748466537 +49794691268541170765608991628524636577559 +49594712588747832730405742666161083820220 +49396333738392841399484119695496439484939 +49199535596008806174784979776390875981015 +49004299343643691864567579062992499489026 +48810606460862491501466521438237588423852 +48618438718890591928626102062496495556042 +48427778174894942548513842838721999495038 +48238607166399259179183710640133241684510 +48050908305829612256307509431416769926983 +47864664475186861821205542340597325082305 +47679858820842511003363049899127837340674 +47496474748454655191811653553361961043210 +47314495918000805938203179784958275368715 +47133906238924466984240572228527136913109 +46954689865392434790384144197239961487584 +46776831191659887688905416378311022239525 +46600314847540416414607660090090980646169 +46425125693978234398011390691256052147499 +46251248818719888950827827430240111877283 +46078669532082874439817275835351156235950 +45907373362818625835951784103621226287118 +45737346054067445740263073792126332856425 +45568573559402990220926309682192287347729 +45401042038964008639231727661301874526598 +45234737855671100182677765288916153374486 +45069647571526315145514707751365364493557 +44905757943993492181349199723178581349944 +44743055922457283876344311318384456055198 +44581528644758882129498302974274764878103 +44421163433806512049895791093072337666312 +44261947794258818458319103669799676957830 +44103869409279322678110821156693249540124 +43946916137360179181035693679267294915426 +43791076009213511878975283417993297415726 +43636337224728658480109646374113462442525 +43482688149993698415038837760120105180404 +43330117314379685438143964645172315337665 +43178613407686050174374230503056328221100 +43028165277345680661571532835798292234267 +42878761925688230381496631680118437052898 +42730392507260243425159273092989999554445 +42583046326200725344382861806462447831844 +42436712833670825944573985992694535639982 +42291381625336336814626814807788047504228 +42147042438901741808433549228239282836978 +42003685151694593026772210625422142419165 +41861299778299018135156033640251219902490 +41719876468237197127942668661736857673090 +41579405503697677945693703447387575324022 +41439877297309430704265201086825872051123 +41301282389960569732010133524662574820183 +41163611448660701166236766412913699570782 +41026855264445881561033322006226278641976 +40891004750325199834010032860510297586870 +40756050939268020956670065755360098584933 +40621984982230955098259966854849045629061 +40488798146223640491380425979915114331917 +40356481812412452123761535698934999579198 +40225027474261271497951237537049217821611 +40094426735708475161918928324266590491022 +39964671309379321520618219818362815117264 +39835753014832936612487193302819709262047 +39707663776843120096048327729498745566671 +39580395623712212659843044627801634202675 +39453940685617285462846740970843801505542 +39328291192987931050544681286223279844696 +39203439474914953491654063250393999591221 +39079377957589273259085537733778828706439 +38956099162770379652589999759855236186860 +38833595706283680345506383408409150538474 +38711860296546113949438965278602225301676 +38590885733119407343346968512106593347608 +38470664905290374921716604124218410813815 +38351190790677671894009409701472390904455 +38232456453864428327774086451622631180293 +38114455045056204783552561493438610713687 +37997179798763724153449322842689568834568 +37880624032509847698990889337037146844278 +37764781145560276299299785699920825294295 +37649644617677470578875091231323505704984 +37535208007897295896264528643994254927765 +37421464953327910151124333102648817791620 +37308409167970424017737250525299425592854 +37196034441560874547804306999620812865165 +37084334638433064113726816588210540153858 +36973303696401827394823442885850628356990 +36862935625666299551853820668280924988760 +36753224507732768898425684297244374616770 +36644164494356707269646973067875696947284 +36535749806503580916778195041047662340931 +36427974733328054129413067622047521744055 +36320833631171206911385382129041499621278 +36214320922575396920442903002563372056407 +36108431095316404531786637204310262781388 +36003158701452508308661894821790407787856 +35898498356390146365904156755447993811729 +35794444737965827101075449054707564844158 +35690992585543960548760202092121704830158 +35588136699130289192711901797908097611627 +35485871938500604453652384838718706526536 +35384193222344442263240773420842721694082 +35283095527423458142488656925354599632099 +35182573887744189030971595224712563735711 +35082623393744915766679062283733266679644 +34983239191496346600201217914657535045990 +34884416481915848445963361366876016585409 +34786150519994958732031070208096084144323 +34688436614039916713120870572680083907962 +34591270124924958963224173456229999639313 +34494646465358129468913491407469580645907 +34398561099159360306047437113855459251350 +34303009540550584305197305344094749642318 +34207987353457646398534708930399196319209 +34113490150823785496881298132248922296228 +34019513593934463773749393729680743446927 +33926053391753325137008323966687115030864 +33833105300269069451701451846230438003382 +33740665121853033742817021649929261943264 +33648728704627276157686730037804114090558 +33557291941842962907258233488788342041398 +33466350771268862736777858872287560626652 +33375901174589757702354134929389486138472 +33285939176814583153291185778636414747263 +33196460845694113843739327752349757718373 +33107462291148017023782922047919865606527 +33018939664701097192168529208219545110253 +32930889158928560932989413130330959656626 +32843307006910133909231462563494973061794 +32756189481692865649525278312663421409110 +32669532895762461243045052708661666326017 +32583333600522982453485567081462031322519 +32497587985784764078607973483879236503249 +32412292479260394619084068041664330370694 +32327443546068613481337774669827512751923 +32243037688245980025772924083222218984947 +32159071444266172786122473760088827789673 +32075541388566780129535142659413272392817 +31992444131083446502256554206927745780401 +31909776316791241214137028227064883388203 +31827534625253119458430489494520901729986 +31745715770175347943113187464972004810372 +31664316498969770127874435702241307362140 +31583333592322788618595984460036086627198 +31502763863770944770079157969066606814374 +31422604159282977989493714819018091275406 +31342851356848249618962004882929212871154 +31263502366071418607268430187023062965151 +31184554127773258459270277585540681493017 +31106003613597507178516448170967531161800 +31027847825623644095153341517271632842298 +30950083795985489598674260460837368098332 +30872708586495525874677574809685274678086 +30795719288274838777733241705421720377144 +30719113021388582959878183890234104157300 +30642886934486874317297841002169007124652 +30567038204451015717502549316520073938699 +30491564036044963826842049194750888570950 +30416461661571946674559187004616034165602 +30341728340536143365776486299444987398611 +30267361359309339092821151774201249684398 +30193358030802470293083202747858459342872 +30119715694141976463100072985058804563987 +30046431714350876763676471834243576329038 +29973503482034491140463664863772111337948 +29900928413070727239397166885893728501779 +29828703948304855917562874212256304036799 +29756827553248699638243445599696650292132 +29685296717784159494882283470851225652006 +29614108955871008033263860728714891777541 +29543261805258876435098157712617487730226 +29472752827203365990145656142897636924188 +29402579606186215118740547437795499693416 +29332739749639454512757790793050142211959 +29263230887673484241400544843303577893921 +29194050672809007919316855611995531610484 +29125196779712760259129787556306862903855 +29056666904936965529108305703233199697023 +28988458766662465610025891840080070120269 +28920570104445457493843161414225081665655 +28852998678967781191287453093163808110361 +28785742271790700116249487002037552147400 +28718798685112117092723325404358395049383 +28652165741527170185315614672561739840451 +28585841283792153587664421120078958035265 +28519823174591709814944641856522193698001 +28454109296309240437490852359156935187176 +28388697550800483562921907870974965221229 +28323585859170207224474839274940618970721 +28258772161551968764006933464242814350651 +28194254416890891209751209871858698336152 +28130030602729408541847448573745124991423 +28066098714995932613343249826986613343715 +28002456767796395351181473750281428279443 +27939102793208620701065678560801153554829 +27876034841079481602417674771724852982471 +27813250978824798085295112441157905115393 +27750749291231933370496696458144067126370 +27688527880265045627513520008686345002768 +27626584864872953802843467391217248034082 +27564918380799576673819263222933280962577 +27503526580396905010848618984129420648629 +27442407632440467444157844275275799713855 +27381559721947251330090975440962549603624 +27320981049996040597059800716535641308041 +27260669833550133222673355240340198391246 +27200624305282401651698303797079537161310 +27140842713402660109606659173349692024691 +27081323321487303398839977903232697086041 +27022064408311182384838139877186236042089 +26963064267681681986617969266100676574748 +26904321208274968082507690465956666386132 +26845833553474370325806586791030673633119 +26787599641210868437898112633132559373611 +26729617823805650107945952216177726994014 +26671886467814709178987105667114708145215 +26614403953875453340239288629039029894902 +26557168676555291074991462201879806174698 +26500179044202168132770450480416544788057 +26443433478797024303792355297374967604357 +26386930415808141773228696418534422801783 +26330668304047356822752729048772089277686 +26274645605528107127385170050795978449435 +26218860795325287367029787524148853229797 +26163312361436886334472521025157012439056 +26107998804647379175203023094871268226712 +26052918638392848839390358489185885804292 +25998070388627811262886378787103389202599 +25943452593693719222418130092172499729484 +25889063804189120230337588938939433692316 +25834902582841444246592112811452112701328 +25780967504380397390127411114559728332431 +25727257155412938228897979008071062231739 +25673770134299813617195488407222681644978 +25620505051033631431267696937498153259823 +25567460527118447929339606467648260602970 +25514635195450847830312045297260557585195 +25462027700202495566744391595616721383989 +25409636696704136522368374328959073809125 +25357460851331027412466180541835954561057 +25305498841389775307112766237446946457448 +25253749355006565132660592891358097896185 +25202211091016755816063326375253285451499 +25150882758855825559818798215629551672575 +25099763078451647052583394154215670469989 +25048850780118073731989918709683792842261 +24998144604449818522006133449137874233268 +24947643302218606767416222068432545194413 +24897345634270585382804495814262318288779 +24847250371424970522879335862925774388802 +24797356294373916365202871333080541910110 +24747662193583587875493045939627474691853 +24698166869196420699742059847748219742469 +24648869130934551596548961923900418904660 +24599767798004403087392489888195437990507 +24550861699002406262169045574302405310605 +24502149671821845932283789531496249744513 +24453630563560812574002039453216059150959 +24405303230431245750733260719118794211926 +24357166537669053944518796694031774893954 +24309219359445295964313051031248247778021 +24261460578778409331770196314094518411070 +24213889087447471274256921419360999747519 +24166503785906478179786751318736027145273 +24119303583199629589591855320066620842255 +24072287396877603021191091469540175187592 +24025454152914806128153754715708384963491 +23978802785627592912370931891017689070358 +23932332237593430910602771170298662541152 +23886041459571006479441063682541798590396 +23839929410421255501681524949563918670337 +23793995057029307032506801394747803220105 +23748237374227327595905826776680980521605 +23702655344718254030462629412426314532120 +23657247959000402969101589892479137684357 +23612014215292945219638680542780324801596 +23566953119462233492120286114263568456554 +23522063684948972094992437950236399754732 +23477344932696217395192072098619980743792 +23432795891078198007345407825188064271792 +23388415595829943844452708189155511119762 +23344203089977713326788336340026672724451 +23300157423770208207303830045045490323084 +23256277654610565630642240911250677723606 +23212562846989117199005695345628026073749 +23169012072416904971615440757737541972297 +23125624409359944475413913715120055938641 +23082398943174224953029962474531046488289 +23039334766041437219908637917675578117975 +22996430976905419645942327604979720430604 +22953686681409312917975892051810613143559 +22911100991833414378239387613866623137726 +22868673027033722870131536896063166428212 +22826401912381165156878059009009445233336 +22784286779701495110463154841096143673864 +22742326767215856997920865421499281530819 +22700521019482004319615863830650937263299 +22658868687336165779579871419952495176577 +22617368927835550091338882644458076687243 +22576020904201481444005539166131827918162 +22534823785763157572757353875682682246778 +22493776747902022495211347766619507962176 +22452878971996746090674599861589290674972 +22412129645368802812833085161296025174654 +22371527961228641938172155659192228027599 +22331073118622441862334592990730759260822 +22290764322379441064749151487137382439051 +1 +1 +281474976710655 +115792089237316195423570985008687907853269984665640564039457584007908834672640 diff --git a/micropython-tests/expected/basics/int_big_error.py.exp b/micropython-tests/expected/basics/int_big_error.py.exp new file mode 100644 index 0000000..be8c9a6 --- /dev/null +++ b/micropython-tests/expected/basics/int_big_error.py.exp @@ -0,0 +1,7 @@ +ValueError +TypeError +TypeError +OverflowError +ValueError +ZeroDivisionError +ZeroDivisionError diff --git a/micropython-tests/expected/basics/int_big_lshift.py.exp b/micropython-tests/expected/basics/int_big_lshift.py.exp new file mode 100644 index 0000000..3cb0c5b --- /dev/null +++ b/micropython-tests/expected/basics/int_big_lshift.py.exp @@ -0,0 +1,1201 @@ +1 << 0 = 1 +1 << 1 = 2 +1 << 2 = 4 +1 << 3 = 8 +1 << 4 = 16 +1 << 5 = 32 +1 << 6 = 64 +1 << 7 = 128 +1 << 8 = 256 +1 << 9 = 512 +1 << 10 = 1024 +1 << 11 = 2048 +1 << 12 = 4096 +1 << 13 = 8192 +1 << 14 = 16384 +1 << 15 = 32768 +1 << 16 = 65536 +1 << 17 = 131072 +1 << 18 = 262144 +1 << 19 = 524288 +1 << 20 = 1048576 +1 << 21 = 2097152 +1 << 22 = 4194304 +1 << 23 = 8388608 +1 << 24 = 16777216 +1 << 25 = 33554432 +1 << 26 = 67108864 +1 << 27 = 134217728 +1 << 28 = 268435456 +1 << 29 = 536870912 +1 << 30 = 1073741824 +1 << 31 = 2147483648 +1 << 32 = 4294967296 +1 << 33 = 8589934592 +1 << 34 = 17179869184 +1 << 35 = 34359738368 +1 << 36 = 68719476736 +1 << 37 = 137438953472 +1 << 38 = 274877906944 +1 << 39 = 549755813888 +1 << 40 = 1099511627776 +1 << 41 = 2199023255552 +1 << 42 = 4398046511104 +1 << 43 = 8796093022208 +1 << 44 = 17592186044416 +1 << 45 = 35184372088832 +1 << 46 = 70368744177664 +1 << 47 = 140737488355328 +1 << 48 = 281474976710656 +1 << 49 = 562949953421312 +1 << 50 = 1125899906842624 +1 << 51 = 2251799813685248 +1 << 52 = 4503599627370496 +1 << 53 = 9007199254740992 +1 << 54 = 18014398509481984 +1 << 55 = 36028797018963968 +1 << 56 = 72057594037927936 +1 << 57 = 144115188075855872 +1 << 58 = 288230376151711744 +1 << 59 = 576460752303423488 +1 << 60 = 1152921504606846976 +1 << 61 = 2305843009213693952 +1 << 62 = 4611686018427387904 +1 << 63 = 9223372036854775808 +1 << 64 = 18446744073709551616 +1 << 65 = 36893488147419103232 +1 << 66 = 73786976294838206464 +1 << 67 = 147573952589676412928 +1 << 68 = 295147905179352825856 +1 << 69 = 590295810358705651712 +2 << 0 = 2 +2 << 1 = 4 +2 << 2 = 8 +2 << 3 = 16 +2 << 4 = 32 +2 << 5 = 64 +2 << 6 = 128 +2 << 7 = 256 +2 << 8 = 512 +2 << 9 = 1024 +2 << 10 = 2048 +2 << 11 = 4096 +2 << 12 = 8192 +2 << 13 = 16384 +2 << 14 = 32768 +2 << 15 = 65536 +2 << 16 = 131072 +2 << 17 = 262144 +2 << 18 = 524288 +2 << 19 = 1048576 +2 << 20 = 2097152 +2 << 21 = 4194304 +2 << 22 = 8388608 +2 << 23 = 16777216 +2 << 24 = 33554432 +2 << 25 = 67108864 +2 << 26 = 134217728 +2 << 27 = 268435456 +2 << 28 = 536870912 +2 << 29 = 1073741824 +2 << 30 = 2147483648 +2 << 31 = 4294967296 +2 << 32 = 8589934592 +2 << 33 = 17179869184 +2 << 34 = 34359738368 +2 << 35 = 68719476736 +2 << 36 = 137438953472 +2 << 37 = 274877906944 +2 << 38 = 549755813888 +2 << 39 = 1099511627776 +2 << 40 = 2199023255552 +2 << 41 = 4398046511104 +2 << 42 = 8796093022208 +2 << 43 = 17592186044416 +2 << 44 = 35184372088832 +2 << 45 = 70368744177664 +2 << 46 = 140737488355328 +2 << 47 = 281474976710656 +2 << 48 = 562949953421312 +2 << 49 = 1125899906842624 +2 << 50 = 2251799813685248 +2 << 51 = 4503599627370496 +2 << 52 = 9007199254740992 +2 << 53 = 18014398509481984 +2 << 54 = 36028797018963968 +2 << 55 = 72057594037927936 +2 << 56 = 144115188075855872 +2 << 57 = 288230376151711744 +2 << 58 = 576460752303423488 +2 << 59 = 1152921504606846976 +2 << 60 = 2305843009213693952 +2 << 61 = 4611686018427387904 +2 << 62 = 9223372036854775808 +2 << 63 = 18446744073709551616 +2 << 64 = 36893488147419103232 +2 << 65 = 73786976294838206464 +2 << 66 = 147573952589676412928 +2 << 67 = 295147905179352825856 +2 << 68 = 590295810358705651712 +2 << 69 = 1180591620717411303424 +3 << 0 = 3 +3 << 1 = 6 +3 << 2 = 12 +3 << 3 = 24 +3 << 4 = 48 +3 << 5 = 96 +3 << 6 = 192 +3 << 7 = 384 +3 << 8 = 768 +3 << 9 = 1536 +3 << 10 = 3072 +3 << 11 = 6144 +3 << 12 = 12288 +3 << 13 = 24576 +3 << 14 = 49152 +3 << 15 = 98304 +3 << 16 = 196608 +3 << 17 = 393216 +3 << 18 = 786432 +3 << 19 = 1572864 +3 << 20 = 3145728 +3 << 21 = 6291456 +3 << 22 = 12582912 +3 << 23 = 25165824 +3 << 24 = 50331648 +3 << 25 = 100663296 +3 << 26 = 201326592 +3 << 27 = 402653184 +3 << 28 = 805306368 +3 << 29 = 1610612736 +3 << 30 = 3221225472 +3 << 31 = 6442450944 +3 << 32 = 12884901888 +3 << 33 = 25769803776 +3 << 34 = 51539607552 +3 << 35 = 103079215104 +3 << 36 = 206158430208 +3 << 37 = 412316860416 +3 << 38 = 824633720832 +3 << 39 = 1649267441664 +3 << 40 = 3298534883328 +3 << 41 = 6597069766656 +3 << 42 = 13194139533312 +3 << 43 = 26388279066624 +3 << 44 = 52776558133248 +3 << 45 = 105553116266496 +3 << 46 = 211106232532992 +3 << 47 = 422212465065984 +3 << 48 = 844424930131968 +3 << 49 = 1688849860263936 +3 << 50 = 3377699720527872 +3 << 51 = 6755399441055744 +3 << 52 = 13510798882111488 +3 << 53 = 27021597764222976 +3 << 54 = 54043195528445952 +3 << 55 = 108086391056891904 +3 << 56 = 216172782113783808 +3 << 57 = 432345564227567616 +3 << 58 = 864691128455135232 +3 << 59 = 1729382256910270464 +3 << 60 = 3458764513820540928 +3 << 61 = 6917529027641081856 +3 << 62 = 13835058055282163712 +3 << 63 = 27670116110564327424 +3 << 64 = 55340232221128654848 +3 << 65 = 110680464442257309696 +3 << 66 = 221360928884514619392 +3 << 67 = 442721857769029238784 +3 << 68 = 885443715538058477568 +3 << 69 = 1770887431076116955136 +4 << 0 = 4 +4 << 1 = 8 +4 << 2 = 16 +4 << 3 = 32 +4 << 4 = 64 +4 << 5 = 128 +4 << 6 = 256 +4 << 7 = 512 +4 << 8 = 1024 +4 << 9 = 2048 +4 << 10 = 4096 +4 << 11 = 8192 +4 << 12 = 16384 +4 << 13 = 32768 +4 << 14 = 65536 +4 << 15 = 131072 +4 << 16 = 262144 +4 << 17 = 524288 +4 << 18 = 1048576 +4 << 19 = 2097152 +4 << 20 = 4194304 +4 << 21 = 8388608 +4 << 22 = 16777216 +4 << 23 = 33554432 +4 << 24 = 67108864 +4 << 25 = 134217728 +4 << 26 = 268435456 +4 << 27 = 536870912 +4 << 28 = 1073741824 +4 << 29 = 2147483648 +4 << 30 = 4294967296 +4 << 31 = 8589934592 +4 << 32 = 17179869184 +4 << 33 = 34359738368 +4 << 34 = 68719476736 +4 << 35 = 137438953472 +4 << 36 = 274877906944 +4 << 37 = 549755813888 +4 << 38 = 1099511627776 +4 << 39 = 2199023255552 +4 << 40 = 4398046511104 +4 << 41 = 8796093022208 +4 << 42 = 17592186044416 +4 << 43 = 35184372088832 +4 << 44 = 70368744177664 +4 << 45 = 140737488355328 +4 << 46 = 281474976710656 +4 << 47 = 562949953421312 +4 << 48 = 1125899906842624 +4 << 49 = 2251799813685248 +4 << 50 = 4503599627370496 +4 << 51 = 9007199254740992 +4 << 52 = 18014398509481984 +4 << 53 = 36028797018963968 +4 << 54 = 72057594037927936 +4 << 55 = 144115188075855872 +4 << 56 = 288230376151711744 +4 << 57 = 576460752303423488 +4 << 58 = 1152921504606846976 +4 << 59 = 2305843009213693952 +4 << 60 = 4611686018427387904 +4 << 61 = 9223372036854775808 +4 << 62 = 18446744073709551616 +4 << 63 = 36893488147419103232 +4 << 64 = 73786976294838206464 +4 << 65 = 147573952589676412928 +4 << 66 = 295147905179352825856 +4 << 67 = 590295810358705651712 +4 << 68 = 1180591620717411303424 +4 << 69 = 2361183241434822606848 +5 << 0 = 5 +5 << 1 = 10 +5 << 2 = 20 +5 << 3 = 40 +5 << 4 = 80 +5 << 5 = 160 +5 << 6 = 320 +5 << 7 = 640 +5 << 8 = 1280 +5 << 9 = 2560 +5 << 10 = 5120 +5 << 11 = 10240 +5 << 12 = 20480 +5 << 13 = 40960 +5 << 14 = 81920 +5 << 15 = 163840 +5 << 16 = 327680 +5 << 17 = 655360 +5 << 18 = 1310720 +5 << 19 = 2621440 +5 << 20 = 5242880 +5 << 21 = 10485760 +5 << 22 = 20971520 +5 << 23 = 41943040 +5 << 24 = 83886080 +5 << 25 = 167772160 +5 << 26 = 335544320 +5 << 27 = 671088640 +5 << 28 = 1342177280 +5 << 29 = 2684354560 +5 << 30 = 5368709120 +5 << 31 = 10737418240 +5 << 32 = 21474836480 +5 << 33 = 42949672960 +5 << 34 = 85899345920 +5 << 35 = 171798691840 +5 << 36 = 343597383680 +5 << 37 = 687194767360 +5 << 38 = 1374389534720 +5 << 39 = 2748779069440 +5 << 40 = 5497558138880 +5 << 41 = 10995116277760 +5 << 42 = 21990232555520 +5 << 43 = 43980465111040 +5 << 44 = 87960930222080 +5 << 45 = 175921860444160 +5 << 46 = 351843720888320 +5 << 47 = 703687441776640 +5 << 48 = 1407374883553280 +5 << 49 = 2814749767106560 +5 << 50 = 5629499534213120 +5 << 51 = 11258999068426240 +5 << 52 = 22517998136852480 +5 << 53 = 45035996273704960 +5 << 54 = 90071992547409920 +5 << 55 = 180143985094819840 +5 << 56 = 360287970189639680 +5 << 57 = 720575940379279360 +5 << 58 = 1441151880758558720 +5 << 59 = 2882303761517117440 +5 << 60 = 5764607523034234880 +5 << 61 = 11529215046068469760 +5 << 62 = 23058430092136939520 +5 << 63 = 46116860184273879040 +5 << 64 = 92233720368547758080 +5 << 65 = 184467440737095516160 +5 << 66 = 368934881474191032320 +5 << 67 = 737869762948382064640 +5 << 68 = 1475739525896764129280 +5 << 69 = 2951479051793528258560 +6 << 0 = 6 +6 << 1 = 12 +6 << 2 = 24 +6 << 3 = 48 +6 << 4 = 96 +6 << 5 = 192 +6 << 6 = 384 +6 << 7 = 768 +6 << 8 = 1536 +6 << 9 = 3072 +6 << 10 = 6144 +6 << 11 = 12288 +6 << 12 = 24576 +6 << 13 = 49152 +6 << 14 = 98304 +6 << 15 = 196608 +6 << 16 = 393216 +6 << 17 = 786432 +6 << 18 = 1572864 +6 << 19 = 3145728 +6 << 20 = 6291456 +6 << 21 = 12582912 +6 << 22 = 25165824 +6 << 23 = 50331648 +6 << 24 = 100663296 +6 << 25 = 201326592 +6 << 26 = 402653184 +6 << 27 = 805306368 +6 << 28 = 1610612736 +6 << 29 = 3221225472 +6 << 30 = 6442450944 +6 << 31 = 12884901888 +6 << 32 = 25769803776 +6 << 33 = 51539607552 +6 << 34 = 103079215104 +6 << 35 = 206158430208 +6 << 36 = 412316860416 +6 << 37 = 824633720832 +6 << 38 = 1649267441664 +6 << 39 = 3298534883328 +6 << 40 = 6597069766656 +6 << 41 = 13194139533312 +6 << 42 = 26388279066624 +6 << 43 = 52776558133248 +6 << 44 = 105553116266496 +6 << 45 = 211106232532992 +6 << 46 = 422212465065984 +6 << 47 = 844424930131968 +6 << 48 = 1688849860263936 +6 << 49 = 3377699720527872 +6 << 50 = 6755399441055744 +6 << 51 = 13510798882111488 +6 << 52 = 27021597764222976 +6 << 53 = 54043195528445952 +6 << 54 = 108086391056891904 +6 << 55 = 216172782113783808 +6 << 56 = 432345564227567616 +6 << 57 = 864691128455135232 +6 << 58 = 1729382256910270464 +6 << 59 = 3458764513820540928 +6 << 60 = 6917529027641081856 +6 << 61 = 13835058055282163712 +6 << 62 = 27670116110564327424 +6 << 63 = 55340232221128654848 +6 << 64 = 110680464442257309696 +6 << 65 = 221360928884514619392 +6 << 66 = 442721857769029238784 +6 << 67 = 885443715538058477568 +6 << 68 = 1770887431076116955136 +6 << 69 = 3541774862152233910272 +7 << 0 = 7 +7 << 1 = 14 +7 << 2 = 28 +7 << 3 = 56 +7 << 4 = 112 +7 << 5 = 224 +7 << 6 = 448 +7 << 7 = 896 +7 << 8 = 1792 +7 << 9 = 3584 +7 << 10 = 7168 +7 << 11 = 14336 +7 << 12 = 28672 +7 << 13 = 57344 +7 << 14 = 114688 +7 << 15 = 229376 +7 << 16 = 458752 +7 << 17 = 917504 +7 << 18 = 1835008 +7 << 19 = 3670016 +7 << 20 = 7340032 +7 << 21 = 14680064 +7 << 22 = 29360128 +7 << 23 = 58720256 +7 << 24 = 117440512 +7 << 25 = 234881024 +7 << 26 = 469762048 +7 << 27 = 939524096 +7 << 28 = 1879048192 +7 << 29 = 3758096384 +7 << 30 = 7516192768 +7 << 31 = 15032385536 +7 << 32 = 30064771072 +7 << 33 = 60129542144 +7 << 34 = 120259084288 +7 << 35 = 240518168576 +7 << 36 = 481036337152 +7 << 37 = 962072674304 +7 << 38 = 1924145348608 +7 << 39 = 3848290697216 +7 << 40 = 7696581394432 +7 << 41 = 15393162788864 +7 << 42 = 30786325577728 +7 << 43 = 61572651155456 +7 << 44 = 123145302310912 +7 << 45 = 246290604621824 +7 << 46 = 492581209243648 +7 << 47 = 985162418487296 +7 << 48 = 1970324836974592 +7 << 49 = 3940649673949184 +7 << 50 = 7881299347898368 +7 << 51 = 15762598695796736 +7 << 52 = 31525197391593472 +7 << 53 = 63050394783186944 +7 << 54 = 126100789566373888 +7 << 55 = 252201579132747776 +7 << 56 = 504403158265495552 +7 << 57 = 1008806316530991104 +7 << 58 = 2017612633061982208 +7 << 59 = 4035225266123964416 +7 << 60 = 8070450532247928832 +7 << 61 = 16140901064495857664 +7 << 62 = 32281802128991715328 +7 << 63 = 64563604257983430656 +7 << 64 = 129127208515966861312 +7 << 65 = 258254417031933722624 +7 << 66 = 516508834063867445248 +7 << 67 = 1033017668127734890496 +7 << 68 = 2066035336255469780992 +7 << 69 = 4132070672510939561984 +8 << 0 = 8 +8 << 1 = 16 +8 << 2 = 32 +8 << 3 = 64 +8 << 4 = 128 +8 << 5 = 256 +8 << 6 = 512 +8 << 7 = 1024 +8 << 8 = 2048 +8 << 9 = 4096 +8 << 10 = 8192 +8 << 11 = 16384 +8 << 12 = 32768 +8 << 13 = 65536 +8 << 14 = 131072 +8 << 15 = 262144 +8 << 16 = 524288 +8 << 17 = 1048576 +8 << 18 = 2097152 +8 << 19 = 4194304 +8 << 20 = 8388608 +8 << 21 = 16777216 +8 << 22 = 33554432 +8 << 23 = 67108864 +8 << 24 = 134217728 +8 << 25 = 268435456 +8 << 26 = 536870912 +8 << 27 = 1073741824 +8 << 28 = 2147483648 +8 << 29 = 4294967296 +8 << 30 = 8589934592 +8 << 31 = 17179869184 +8 << 32 = 34359738368 +8 << 33 = 68719476736 +8 << 34 = 137438953472 +8 << 35 = 274877906944 +8 << 36 = 549755813888 +8 << 37 = 1099511627776 +8 << 38 = 2199023255552 +8 << 39 = 4398046511104 +8 << 40 = 8796093022208 +8 << 41 = 17592186044416 +8 << 42 = 35184372088832 +8 << 43 = 70368744177664 +8 << 44 = 140737488355328 +8 << 45 = 281474976710656 +8 << 46 = 562949953421312 +8 << 47 = 1125899906842624 +8 << 48 = 2251799813685248 +8 << 49 = 4503599627370496 +8 << 50 = 9007199254740992 +8 << 51 = 18014398509481984 +8 << 52 = 36028797018963968 +8 << 53 = 72057594037927936 +8 << 54 = 144115188075855872 +8 << 55 = 288230376151711744 +8 << 56 = 576460752303423488 +8 << 57 = 1152921504606846976 +8 << 58 = 2305843009213693952 +8 << 59 = 4611686018427387904 +8 << 60 = 9223372036854775808 +8 << 61 = 18446744073709551616 +8 << 62 = 36893488147419103232 +8 << 63 = 73786976294838206464 +8 << 64 = 147573952589676412928 +8 << 65 = 295147905179352825856 +8 << 66 = 590295810358705651712 +8 << 67 = 1180591620717411303424 +8 << 68 = 2361183241434822606848 +8 << 69 = 4722366482869645213696 +9 << 0 = 9 +9 << 1 = 18 +9 << 2 = 36 +9 << 3 = 72 +9 << 4 = 144 +9 << 5 = 288 +9 << 6 = 576 +9 << 7 = 1152 +9 << 8 = 2304 +9 << 9 = 4608 +9 << 10 = 9216 +9 << 11 = 18432 +9 << 12 = 36864 +9 << 13 = 73728 +9 << 14 = 147456 +9 << 15 = 294912 +9 << 16 = 589824 +9 << 17 = 1179648 +9 << 18 = 2359296 +9 << 19 = 4718592 +9 << 20 = 9437184 +9 << 21 = 18874368 +9 << 22 = 37748736 +9 << 23 = 75497472 +9 << 24 = 150994944 +9 << 25 = 301989888 +9 << 26 = 603979776 +9 << 27 = 1207959552 +9 << 28 = 2415919104 +9 << 29 = 4831838208 +9 << 30 = 9663676416 +9 << 31 = 19327352832 +9 << 32 = 38654705664 +9 << 33 = 77309411328 +9 << 34 = 154618822656 +9 << 35 = 309237645312 +9 << 36 = 618475290624 +9 << 37 = 1236950581248 +9 << 38 = 2473901162496 +9 << 39 = 4947802324992 +9 << 40 = 9895604649984 +9 << 41 = 19791209299968 +9 << 42 = 39582418599936 +9 << 43 = 79164837199872 +9 << 44 = 158329674399744 +9 << 45 = 316659348799488 +9 << 46 = 633318697598976 +9 << 47 = 1266637395197952 +9 << 48 = 2533274790395904 +9 << 49 = 5066549580791808 +9 << 50 = 10133099161583616 +9 << 51 = 20266198323167232 +9 << 52 = 40532396646334464 +9 << 53 = 81064793292668928 +9 << 54 = 162129586585337856 +9 << 55 = 324259173170675712 +9 << 56 = 648518346341351424 +9 << 57 = 1297036692682702848 +9 << 58 = 2594073385365405696 +9 << 59 = 5188146770730811392 +9 << 60 = 10376293541461622784 +9 << 61 = 20752587082923245568 +9 << 62 = 41505174165846491136 +9 << 63 = 83010348331692982272 +9 << 64 = 166020696663385964544 +9 << 65 = 332041393326771929088 +9 << 66 = 664082786653543858176 +9 << 67 = 1328165573307087716352 +9 << 68 = 2656331146614175432704 +9 << 69 = 5312662293228350865408 +10 << 0 = 10 +10 << 1 = 20 +10 << 2 = 40 +10 << 3 = 80 +10 << 4 = 160 +10 << 5 = 320 +10 << 6 = 640 +10 << 7 = 1280 +10 << 8 = 2560 +10 << 9 = 5120 +10 << 10 = 10240 +10 << 11 = 20480 +10 << 12 = 40960 +10 << 13 = 81920 +10 << 14 = 163840 +10 << 15 = 327680 +10 << 16 = 655360 +10 << 17 = 1310720 +10 << 18 = 2621440 +10 << 19 = 5242880 +10 << 20 = 10485760 +10 << 21 = 20971520 +10 << 22 = 41943040 +10 << 23 = 83886080 +10 << 24 = 167772160 +10 << 25 = 335544320 +10 << 26 = 671088640 +10 << 27 = 1342177280 +10 << 28 = 2684354560 +10 << 29 = 5368709120 +10 << 30 = 10737418240 +10 << 31 = 21474836480 +10 << 32 = 42949672960 +10 << 33 = 85899345920 +10 << 34 = 171798691840 +10 << 35 = 343597383680 +10 << 36 = 687194767360 +10 << 37 = 1374389534720 +10 << 38 = 2748779069440 +10 << 39 = 5497558138880 +10 << 40 = 10995116277760 +10 << 41 = 21990232555520 +10 << 42 = 43980465111040 +10 << 43 = 87960930222080 +10 << 44 = 175921860444160 +10 << 45 = 351843720888320 +10 << 46 = 703687441776640 +10 << 47 = 1407374883553280 +10 << 48 = 2814749767106560 +10 << 49 = 5629499534213120 +10 << 50 = 11258999068426240 +10 << 51 = 22517998136852480 +10 << 52 = 45035996273704960 +10 << 53 = 90071992547409920 +10 << 54 = 180143985094819840 +10 << 55 = 360287970189639680 +10 << 56 = 720575940379279360 +10 << 57 = 1441151880758558720 +10 << 58 = 2882303761517117440 +10 << 59 = 5764607523034234880 +10 << 60 = 11529215046068469760 +10 << 61 = 23058430092136939520 +10 << 62 = 46116860184273879040 +10 << 63 = 92233720368547758080 +10 << 64 = 184467440737095516160 +10 << 65 = 368934881474191032320 +10 << 66 = 737869762948382064640 +10 << 67 = 1475739525896764129280 +10 << 68 = 2951479051793528258560 +10 << 69 = 5902958103587056517120 +11 << 0 = 11 +11 << 1 = 22 +11 << 2 = 44 +11 << 3 = 88 +11 << 4 = 176 +11 << 5 = 352 +11 << 6 = 704 +11 << 7 = 1408 +11 << 8 = 2816 +11 << 9 = 5632 +11 << 10 = 11264 +11 << 11 = 22528 +11 << 12 = 45056 +11 << 13 = 90112 +11 << 14 = 180224 +11 << 15 = 360448 +11 << 16 = 720896 +11 << 17 = 1441792 +11 << 18 = 2883584 +11 << 19 = 5767168 +11 << 20 = 11534336 +11 << 21 = 23068672 +11 << 22 = 46137344 +11 << 23 = 92274688 +11 << 24 = 184549376 +11 << 25 = 369098752 +11 << 26 = 738197504 +11 << 27 = 1476395008 +11 << 28 = 2952790016 +11 << 29 = 5905580032 +11 << 30 = 11811160064 +11 << 31 = 23622320128 +11 << 32 = 47244640256 +11 << 33 = 94489280512 +11 << 34 = 188978561024 +11 << 35 = 377957122048 +11 << 36 = 755914244096 +11 << 37 = 1511828488192 +11 << 38 = 3023656976384 +11 << 39 = 6047313952768 +11 << 40 = 12094627905536 +11 << 41 = 24189255811072 +11 << 42 = 48378511622144 +11 << 43 = 96757023244288 +11 << 44 = 193514046488576 +11 << 45 = 387028092977152 +11 << 46 = 774056185954304 +11 << 47 = 1548112371908608 +11 << 48 = 3096224743817216 +11 << 49 = 6192449487634432 +11 << 50 = 12384898975268864 +11 << 51 = 24769797950537728 +11 << 52 = 49539595901075456 +11 << 53 = 99079191802150912 +11 << 54 = 198158383604301824 +11 << 55 = 396316767208603648 +11 << 56 = 792633534417207296 +11 << 57 = 1585267068834414592 +11 << 58 = 3170534137668829184 +11 << 59 = 6341068275337658368 +11 << 60 = 12682136550675316736 +11 << 61 = 25364273101350633472 +11 << 62 = 50728546202701266944 +11 << 63 = 101457092405402533888 +11 << 64 = 202914184810805067776 +11 << 65 = 405828369621610135552 +11 << 66 = 811656739243220271104 +11 << 67 = 1623313478486440542208 +11 << 68 = 3246626956972881084416 +11 << 69 = 6493253913945762168832 +12 << 0 = 12 +12 << 1 = 24 +12 << 2 = 48 +12 << 3 = 96 +12 << 4 = 192 +12 << 5 = 384 +12 << 6 = 768 +12 << 7 = 1536 +12 << 8 = 3072 +12 << 9 = 6144 +12 << 10 = 12288 +12 << 11 = 24576 +12 << 12 = 49152 +12 << 13 = 98304 +12 << 14 = 196608 +12 << 15 = 393216 +12 << 16 = 786432 +12 << 17 = 1572864 +12 << 18 = 3145728 +12 << 19 = 6291456 +12 << 20 = 12582912 +12 << 21 = 25165824 +12 << 22 = 50331648 +12 << 23 = 100663296 +12 << 24 = 201326592 +12 << 25 = 402653184 +12 << 26 = 805306368 +12 << 27 = 1610612736 +12 << 28 = 3221225472 +12 << 29 = 6442450944 +12 << 30 = 12884901888 +12 << 31 = 25769803776 +12 << 32 = 51539607552 +12 << 33 = 103079215104 +12 << 34 = 206158430208 +12 << 35 = 412316860416 +12 << 36 = 824633720832 +12 << 37 = 1649267441664 +12 << 38 = 3298534883328 +12 << 39 = 6597069766656 +12 << 40 = 13194139533312 +12 << 41 = 26388279066624 +12 << 42 = 52776558133248 +12 << 43 = 105553116266496 +12 << 44 = 211106232532992 +12 << 45 = 422212465065984 +12 << 46 = 844424930131968 +12 << 47 = 1688849860263936 +12 << 48 = 3377699720527872 +12 << 49 = 6755399441055744 +12 << 50 = 13510798882111488 +12 << 51 = 27021597764222976 +12 << 52 = 54043195528445952 +12 << 53 = 108086391056891904 +12 << 54 = 216172782113783808 +12 << 55 = 432345564227567616 +12 << 56 = 864691128455135232 +12 << 57 = 1729382256910270464 +12 << 58 = 3458764513820540928 +12 << 59 = 6917529027641081856 +12 << 60 = 13835058055282163712 +12 << 61 = 27670116110564327424 +12 << 62 = 55340232221128654848 +12 << 63 = 110680464442257309696 +12 << 64 = 221360928884514619392 +12 << 65 = 442721857769029238784 +12 << 66 = 885443715538058477568 +12 << 67 = 1770887431076116955136 +12 << 68 = 3541774862152233910272 +12 << 69 = 7083549724304467820544 +13 << 0 = 13 +13 << 1 = 26 +13 << 2 = 52 +13 << 3 = 104 +13 << 4 = 208 +13 << 5 = 416 +13 << 6 = 832 +13 << 7 = 1664 +13 << 8 = 3328 +13 << 9 = 6656 +13 << 10 = 13312 +13 << 11 = 26624 +13 << 12 = 53248 +13 << 13 = 106496 +13 << 14 = 212992 +13 << 15 = 425984 +13 << 16 = 851968 +13 << 17 = 1703936 +13 << 18 = 3407872 +13 << 19 = 6815744 +13 << 20 = 13631488 +13 << 21 = 27262976 +13 << 22 = 54525952 +13 << 23 = 109051904 +13 << 24 = 218103808 +13 << 25 = 436207616 +13 << 26 = 872415232 +13 << 27 = 1744830464 +13 << 28 = 3489660928 +13 << 29 = 6979321856 +13 << 30 = 13958643712 +13 << 31 = 27917287424 +13 << 32 = 55834574848 +13 << 33 = 111669149696 +13 << 34 = 223338299392 +13 << 35 = 446676598784 +13 << 36 = 893353197568 +13 << 37 = 1786706395136 +13 << 38 = 3573412790272 +13 << 39 = 7146825580544 +13 << 40 = 14293651161088 +13 << 41 = 28587302322176 +13 << 42 = 57174604644352 +13 << 43 = 114349209288704 +13 << 44 = 228698418577408 +13 << 45 = 457396837154816 +13 << 46 = 914793674309632 +13 << 47 = 1829587348619264 +13 << 48 = 3659174697238528 +13 << 49 = 7318349394477056 +13 << 50 = 14636698788954112 +13 << 51 = 29273397577908224 +13 << 52 = 58546795155816448 +13 << 53 = 117093590311632896 +13 << 54 = 234187180623265792 +13 << 55 = 468374361246531584 +13 << 56 = 936748722493063168 +13 << 57 = 1873497444986126336 +13 << 58 = 3746994889972252672 +13 << 59 = 7493989779944505344 +13 << 60 = 14987979559889010688 +13 << 61 = 29975959119778021376 +13 << 62 = 59951918239556042752 +13 << 63 = 119903836479112085504 +13 << 64 = 239807672958224171008 +13 << 65 = 479615345916448342016 +13 << 66 = 959230691832896684032 +13 << 67 = 1918461383665793368064 +13 << 68 = 3836922767331586736128 +13 << 69 = 7673845534663173472256 +14 << 0 = 14 +14 << 1 = 28 +14 << 2 = 56 +14 << 3 = 112 +14 << 4 = 224 +14 << 5 = 448 +14 << 6 = 896 +14 << 7 = 1792 +14 << 8 = 3584 +14 << 9 = 7168 +14 << 10 = 14336 +14 << 11 = 28672 +14 << 12 = 57344 +14 << 13 = 114688 +14 << 14 = 229376 +14 << 15 = 458752 +14 << 16 = 917504 +14 << 17 = 1835008 +14 << 18 = 3670016 +14 << 19 = 7340032 +14 << 20 = 14680064 +14 << 21 = 29360128 +14 << 22 = 58720256 +14 << 23 = 117440512 +14 << 24 = 234881024 +14 << 25 = 469762048 +14 << 26 = 939524096 +14 << 27 = 1879048192 +14 << 28 = 3758096384 +14 << 29 = 7516192768 +14 << 30 = 15032385536 +14 << 31 = 30064771072 +14 << 32 = 60129542144 +14 << 33 = 120259084288 +14 << 34 = 240518168576 +14 << 35 = 481036337152 +14 << 36 = 962072674304 +14 << 37 = 1924145348608 +14 << 38 = 3848290697216 +14 << 39 = 7696581394432 +14 << 40 = 15393162788864 +14 << 41 = 30786325577728 +14 << 42 = 61572651155456 +14 << 43 = 123145302310912 +14 << 44 = 246290604621824 +14 << 45 = 492581209243648 +14 << 46 = 985162418487296 +14 << 47 = 1970324836974592 +14 << 48 = 3940649673949184 +14 << 49 = 7881299347898368 +14 << 50 = 15762598695796736 +14 << 51 = 31525197391593472 +14 << 52 = 63050394783186944 +14 << 53 = 126100789566373888 +14 << 54 = 252201579132747776 +14 << 55 = 504403158265495552 +14 << 56 = 1008806316530991104 +14 << 57 = 2017612633061982208 +14 << 58 = 4035225266123964416 +14 << 59 = 8070450532247928832 +14 << 60 = 16140901064495857664 +14 << 61 = 32281802128991715328 +14 << 62 = 64563604257983430656 +14 << 63 = 129127208515966861312 +14 << 64 = 258254417031933722624 +14 << 65 = 516508834063867445248 +14 << 66 = 1033017668127734890496 +14 << 67 = 2066035336255469780992 +14 << 68 = 4132070672510939561984 +14 << 69 = 8264141345021879123968 +15 << 0 = 15 +15 << 1 = 30 +15 << 2 = 60 +15 << 3 = 120 +15 << 4 = 240 +15 << 5 = 480 +15 << 6 = 960 +15 << 7 = 1920 +15 << 8 = 3840 +15 << 9 = 7680 +15 << 10 = 15360 +15 << 11 = 30720 +15 << 12 = 61440 +15 << 13 = 122880 +15 << 14 = 245760 +15 << 15 = 491520 +15 << 16 = 983040 +15 << 17 = 1966080 +15 << 18 = 3932160 +15 << 19 = 7864320 +15 << 20 = 15728640 +15 << 21 = 31457280 +15 << 22 = 62914560 +15 << 23 = 125829120 +15 << 24 = 251658240 +15 << 25 = 503316480 +15 << 26 = 1006632960 +15 << 27 = 2013265920 +15 << 28 = 4026531840 +15 << 29 = 8053063680 +15 << 30 = 16106127360 +15 << 31 = 32212254720 +15 << 32 = 64424509440 +15 << 33 = 128849018880 +15 << 34 = 257698037760 +15 << 35 = 515396075520 +15 << 36 = 1030792151040 +15 << 37 = 2061584302080 +15 << 38 = 4123168604160 +15 << 39 = 8246337208320 +15 << 40 = 16492674416640 +15 << 41 = 32985348833280 +15 << 42 = 65970697666560 +15 << 43 = 131941395333120 +15 << 44 = 263882790666240 +15 << 45 = 527765581332480 +15 << 46 = 1055531162664960 +15 << 47 = 2111062325329920 +15 << 48 = 4222124650659840 +15 << 49 = 8444249301319680 +15 << 50 = 16888498602639360 +15 << 51 = 33776997205278720 +15 << 52 = 67553994410557440 +15 << 53 = 135107988821114880 +15 << 54 = 270215977642229760 +15 << 55 = 540431955284459520 +15 << 56 = 1080863910568919040 +15 << 57 = 2161727821137838080 +15 << 58 = 4323455642275676160 +15 << 59 = 8646911284551352320 +15 << 60 = 17293822569102704640 +15 << 61 = 34587645138205409280 +15 << 62 = 69175290276410818560 +15 << 63 = 138350580552821637120 +15 << 64 = 276701161105643274240 +15 << 65 = 553402322211286548480 +15 << 66 = 1106804644422573096960 +15 << 67 = 2213609288845146193920 +15 << 68 = 4427218577690292387840 +15 << 69 = 8854437155380584775680 +16 << 0 = 16 +16 << 1 = 32 +16 << 2 = 64 +16 << 3 = 128 +16 << 4 = 256 +16 << 5 = 512 +16 << 6 = 1024 +16 << 7 = 2048 +16 << 8 = 4096 +16 << 9 = 8192 +16 << 10 = 16384 +16 << 11 = 32768 +16 << 12 = 65536 +16 << 13 = 131072 +16 << 14 = 262144 +16 << 15 = 524288 +16 << 16 = 1048576 +16 << 17 = 2097152 +16 << 18 = 4194304 +16 << 19 = 8388608 +16 << 20 = 16777216 +16 << 21 = 33554432 +16 << 22 = 67108864 +16 << 23 = 134217728 +16 << 24 = 268435456 +16 << 25 = 536870912 +16 << 26 = 1073741824 +16 << 27 = 2147483648 +16 << 28 = 4294967296 +16 << 29 = 8589934592 +16 << 30 = 17179869184 +16 << 31 = 34359738368 +16 << 32 = 68719476736 +16 << 33 = 137438953472 +16 << 34 = 274877906944 +16 << 35 = 549755813888 +16 << 36 = 1099511627776 +16 << 37 = 2199023255552 +16 << 38 = 4398046511104 +16 << 39 = 8796093022208 +16 << 40 = 17592186044416 +16 << 41 = 35184372088832 +16 << 42 = 70368744177664 +16 << 43 = 140737488355328 +16 << 44 = 281474976710656 +16 << 45 = 562949953421312 +16 << 46 = 1125899906842624 +16 << 47 = 2251799813685248 +16 << 48 = 4503599627370496 +16 << 49 = 9007199254740992 +16 << 50 = 18014398509481984 +16 << 51 = 36028797018963968 +16 << 52 = 72057594037927936 +16 << 53 = 144115188075855872 +16 << 54 = 288230376151711744 +16 << 55 = 576460752303423488 +16 << 56 = 1152921504606846976 +16 << 57 = 2305843009213693952 +16 << 58 = 4611686018427387904 +16 << 59 = 9223372036854775808 +16 << 60 = 18446744073709551616 +16 << 61 = 36893488147419103232 +16 << 62 = 73786976294838206464 +16 << 63 = 147573952589676412928 +16 << 64 = 295147905179352825856 +16 << 65 = 590295810358705651712 +16 << 66 = 1180591620717411303424 +16 << 67 = 2361183241434822606848 +16 << 68 = 4722366482869645213696 +16 << 69 = 9444732965739290427392 +-100000000000000000000000000000 +-100000000000000000000000000001 +-100000000000000000000000000002 +-100000000000000000000000000003 +-100000000000000000000000000004 +-100000000000000000000000000000 +-100000000000000000000000000001 +-100000000000000000000000000002 +-100000000000000000000000000003 +-100000000000000000000000000004 +-200000000000000000000000000000 +-200000000000000000000000000002 +-200000000000000000000000000004 +-200000000000000000000000000006 +-200000000000000000000000000008 +-50000000000000000000000000000 +-50000000000000000000000000001 +-50000000000000000000000000001 +-50000000000000000000000000002 +-50000000000000000000000000002 +-400000000000000000000000000000 +-400000000000000000000000000004 +-400000000000000000000000000008 +-400000000000000000000000000012 +-400000000000000000000000000016 +-25000000000000000000000000000 +-25000000000000000000000000001 +-25000000000000000000000000001 +-25000000000000000000000000001 +-25000000000000000000000000001 +-800000000000000000000000000000 +-800000000000000000000000000008 +-800000000000000000000000000016 +-800000000000000000000000000024 +-800000000000000000000000000032 +-12500000000000000000000000000 +-12500000000000000000000000001 +-12500000000000000000000000001 +-12500000000000000000000000001 +-12500000000000000000000000001 +-1600000000000000000000000000000 +-1600000000000000000000000000016 +-1600000000000000000000000000032 +-1600000000000000000000000000048 +-1600000000000000000000000000064 +-6250000000000000000000000000 +-6250000000000000000000000001 +-6250000000000000000000000001 +-6250000000000000000000000001 +-6250000000000000000000000001 +-3200000000000000000000000000000 +-3200000000000000000000000000032 +-3200000000000000000000000000064 +-3200000000000000000000000000096 +-3200000000000000000000000000128 +-3125000000000000000000000000 +-3125000000000000000000000001 +-3125000000000000000000000001 +-3125000000000000000000000001 +-3125000000000000000000000001 +-6400000000000000000000000000000 +-6400000000000000000000000000064 +-6400000000000000000000000000128 +-6400000000000000000000000000192 +-6400000000000000000000000000256 +-1562500000000000000000000000 +-1562500000000000000000000001 +-1562500000000000000000000001 +-1562500000000000000000000001 +-1562500000000000000000000001 +-12800000000000000000000000000000 +-12800000000000000000000000000128 +-12800000000000000000000000000256 +-12800000000000000000000000000384 +-12800000000000000000000000000512 +-781250000000000000000000000 +-781250000000000000000000001 +-781250000000000000000000001 +-781250000000000000000000001 +-781250000000000000000000001 +1180591620717411303424 diff --git a/micropython-tests/expected/basics/int_big_mod.py.exp b/micropython-tests/expected/basics/int_big_mod.py.exp new file mode 100644 index 0000000..d270451 --- /dev/null +++ b/micropython-tests/expected/basics/int_big_mod.py.exp @@ -0,0 +1,112 @@ +0 +-100000000000000000000000000000012345 +-200000000000000000000000000000024690 +-100000000000000000000000000000012345 +0 +0 +100000000000000000000000000000012345 +100000000000000000000000000000012345 +300000000000000000000000000000037035 +0 +-400000000000000000000000000000049380 +0 +-100000000000000000000000000000012345 +0 +0 +0 +0 +200000000000000000000000000000024690 +0 +100000000000000000000000000000012345 +-300000000000000000000000000000037035 +-300000000000000000000000000000037035 +0 +-100000000000000000000000000000012345 +0 +0 +100000000000000000000000000000012345 +0 +100000000000000000000000000000012345 +200000000000000000000000000000024690 +-200000000000000000000000000000024690 +-200000000000000000000000000000024690 +-200000000000000000000000000000024690 +0 +0 +0 +0 +100000000000000000000000000000012345 +200000000000000000000000000000024690 +300000000000000000000000000000037035 +-100000000000000000000000000000012345 +-100000000000000000000000000000012345 +-100000000000000000000000000000012345 +-100000000000000000000000000000012345 +0 +0 +100000000000000000000000000000012345 +200000000000000000000000000000024690 +300000000000000000000000000000037035 +400000000000000000000000000000049380 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +-400000000000000000000000000000049380 +-300000000000000000000000000000037035 +-200000000000000000000000000000024690 +-100000000000000000000000000000012345 +0 +0 +100000000000000000000000000000012345 +100000000000000000000000000000012345 +100000000000000000000000000000012345 +100000000000000000000000000000012345 +-300000000000000000000000000000037035 +-200000000000000000000000000000024690 +-100000000000000000000000000000012345 +0 +0 +0 +0 +200000000000000000000000000000024690 +200000000000000000000000000000024690 +200000000000000000000000000000024690 +-200000000000000000000000000000024690 +-100000000000000000000000000000012345 +0 +-100000000000000000000000000000012345 +0 +0 +100000000000000000000000000000012345 +0 +300000000000000000000000000000037035 +300000000000000000000000000000037035 +-100000000000000000000000000000012345 +0 +-200000000000000000000000000000024690 +0 +0 +0 +0 +100000000000000000000000000000012345 +0 +400000000000000000000000000000049380 +0 +-300000000000000000000000000000037035 +-100000000000000000000000000000012345 +-100000000000000000000000000000012345 +0 +0 +100000000000000000000000000000012345 +200000000000000000000000000000024690 +100000000000000000000000000000012345 +0 +1 +1 diff --git a/micropython-tests/expected/basics/int_big_mul.py.exp b/micropython-tests/expected/basics/int_big_mul.py.exp new file mode 100644 index 0000000..083d4f1 --- /dev/null +++ b/micropython-tests/expected/basics/int_big_mul.py.exp @@ -0,0 +1,908 @@ +1 * 2 = 2 +2 * 2 = 4 +4 * 2 = 8 +8 * 2 = 16 +16 * 2 = 32 +32 * 2 = 64 +64 * 2 = 128 +128 * 2 = 256 +256 * 2 = 512 +512 * 2 = 1024 +1024 * 2 = 2048 +2048 * 2 = 4096 +4096 * 2 = 8192 +8192 * 2 = 16384 +16384 * 2 = 32768 +32768 * 2 = 65536 +65536 * 2 = 131072 +131072 * 2 = 262144 +262144 * 2 = 524288 +524288 * 2 = 1048576 +1048576 * 2 = 2097152 +2097152 * 2 = 4194304 +4194304 * 2 = 8388608 +8388608 * 2 = 16777216 +16777216 * 2 = 33554432 +33554432 * 2 = 67108864 +67108864 * 2 = 134217728 +134217728 * 2 = 268435456 +268435456 * 2 = 536870912 +536870912 * 2 = 1073741824 +1073741824 * 2 = 2147483648 +2147483648 * 2 = 4294967296 +4294967296 * 2 = 8589934592 +8589934592 * 2 = 17179869184 +17179869184 * 2 = 34359738368 +34359738368 * 2 = 68719476736 +68719476736 * 2 = 137438953472 +137438953472 * 2 = 274877906944 +274877906944 * 2 = 549755813888 +549755813888 * 2 = 1099511627776 +1099511627776 * 2 = 2199023255552 +2199023255552 * 2 = 4398046511104 +4398046511104 * 2 = 8796093022208 +8796093022208 * 2 = 17592186044416 +17592186044416 * 2 = 35184372088832 +35184372088832 * 2 = 70368744177664 +70368744177664 * 2 = 140737488355328 +140737488355328 * 2 = 281474976710656 +281474976710656 * 2 = 562949953421312 +562949953421312 * 2 = 1125899906842624 +1125899906842624 * 2 = 2251799813685248 +2251799813685248 * 2 = 4503599627370496 +4503599627370496 * 2 = 9007199254740992 +9007199254740992 * 2 = 18014398509481984 +18014398509481984 * 2 = 36028797018963968 +36028797018963968 * 2 = 72057594037927936 +72057594037927936 * 2 = 144115188075855872 +144115188075855872 * 2 = 288230376151711744 +288230376151711744 * 2 = 576460752303423488 +576460752303423488 * 2 = 1152921504606846976 +1152921504606846976 * 2 = 2305843009213693952 +2305843009213693952 * 2 = 4611686018427387904 +4611686018427387904 * 2 = 9223372036854775808 +9223372036854775808 * 2 = 18446744073709551616 +18446744073709551616 * 2 = 36893488147419103232 +36893488147419103232 * 2 = 73786976294838206464 +73786976294838206464 * 2 = 147573952589676412928 +147573952589676412928 * 2 = 295147905179352825856 +295147905179352825856 * 2 = 590295810358705651712 +590295810358705651712 * 2 = 1180591620717411303424 +1180591620717411303424 * 2 = 2361183241434822606848 +2361183241434822606848 * 2 = 4722366482869645213696 +4722366482869645213696 * 2 = 9444732965739290427392 +9444732965739290427392 * 2 = 18889465931478580854784 +18889465931478580854784 * 2 = 37778931862957161709568 +37778931862957161709568 * 2 = 75557863725914323419136 +75557863725914323419136 * 2 = 151115727451828646838272 +151115727451828646838272 * 2 = 302231454903657293676544 +302231454903657293676544 * 2 = 604462909807314587353088 +604462909807314587353088 * 2 = 1208925819614629174706176 +1208925819614629174706176 * 2 = 2417851639229258349412352 +2417851639229258349412352 * 2 = 4835703278458516698824704 +4835703278458516698824704 * 2 = 9671406556917033397649408 +9671406556917033397649408 * 2 = 19342813113834066795298816 +19342813113834066795298816 * 2 = 38685626227668133590597632 +38685626227668133590597632 * 2 = 77371252455336267181195264 +77371252455336267181195264 * 2 = 154742504910672534362390528 +154742504910672534362390528 * 2 = 309485009821345068724781056 +309485009821345068724781056 * 2 = 618970019642690137449562112 +618970019642690137449562112 * 2 = 1237940039285380274899124224 +1237940039285380274899124224 * 2 = 2475880078570760549798248448 +2475880078570760549798248448 * 2 = 4951760157141521099596496896 +4951760157141521099596496896 * 2 = 9903520314283042199192993792 +9903520314283042199192993792 * 2 = 19807040628566084398385987584 +19807040628566084398385987584 * 2 = 39614081257132168796771975168 +39614081257132168796771975168 * 2 = 79228162514264337593543950336 +79228162514264337593543950336 * 2 = 158456325028528675187087900672 +158456325028528675187087900672 * 2 = 316912650057057350374175801344 +316912650057057350374175801344 * 2 = 633825300114114700748351602688 +633825300114114700748351602688 * 2 = 1267650600228229401496703205376 +1 * 3 = 3 +3 * 3 = 9 +9 * 3 = 27 +27 * 3 = 81 +81 * 3 = 243 +243 * 3 = 729 +729 * 3 = 2187 +2187 * 3 = 6561 +6561 * 3 = 19683 +19683 * 3 = 59049 +59049 * 3 = 177147 +177147 * 3 = 531441 +531441 * 3 = 1594323 +1594323 * 3 = 4782969 +4782969 * 3 = 14348907 +14348907 * 3 = 43046721 +43046721 * 3 = 129140163 +129140163 * 3 = 387420489 +387420489 * 3 = 1162261467 +1162261467 * 3 = 3486784401 +3486784401 * 3 = 10460353203 +10460353203 * 3 = 31381059609 +31381059609 * 3 = 94143178827 +94143178827 * 3 = 282429536481 +282429536481 * 3 = 847288609443 +847288609443 * 3 = 2541865828329 +2541865828329 * 3 = 7625597484987 +7625597484987 * 3 = 22876792454961 +22876792454961 * 3 = 68630377364883 +68630377364883 * 3 = 205891132094649 +205891132094649 * 3 = 617673396283947 +617673396283947 * 3 = 1853020188851841 +1853020188851841 * 3 = 5559060566555523 +5559060566555523 * 3 = 16677181699666569 +16677181699666569 * 3 = 50031545098999707 +50031545098999707 * 3 = 150094635296999121 +150094635296999121 * 3 = 450283905890997363 +450283905890997363 * 3 = 1350851717672992089 +1350851717672992089 * 3 = 4052555153018976267 +4052555153018976267 * 3 = 12157665459056928801 +12157665459056928801 * 3 = 36472996377170786403 +36472996377170786403 * 3 = 109418989131512359209 +109418989131512359209 * 3 = 328256967394537077627 +328256967394537077627 * 3 = 984770902183611232881 +984770902183611232881 * 3 = 2954312706550833698643 +2954312706550833698643 * 3 = 8862938119652501095929 +8862938119652501095929 * 3 = 26588814358957503287787 +26588814358957503287787 * 3 = 79766443076872509863361 +79766443076872509863361 * 3 = 239299329230617529590083 +239299329230617529590083 * 3 = 717897987691852588770249 +717897987691852588770249 * 3 = 2153693963075557766310747 +2153693963075557766310747 * 3 = 6461081889226673298932241 +6461081889226673298932241 * 3 = 19383245667680019896796723 +19383245667680019896796723 * 3 = 58149737003040059690390169 +58149737003040059690390169 * 3 = 174449211009120179071170507 +174449211009120179071170507 * 3 = 523347633027360537213511521 +523347633027360537213511521 * 3 = 1570042899082081611640534563 +1570042899082081611640534563 * 3 = 4710128697246244834921603689 +4710128697246244834921603689 * 3 = 14130386091738734504764811067 +14130386091738734504764811067 * 3 = 42391158275216203514294433201 +42391158275216203514294433201 * 3 = 127173474825648610542883299603 +127173474825648610542883299603 * 3 = 381520424476945831628649898809 +381520424476945831628649898809 * 3 = 1144561273430837494885949696427 +1144561273430837494885949696427 * 3 = 3433683820292512484657849089281 +3433683820292512484657849089281 * 3 = 10301051460877537453973547267843 +10301051460877537453973547267843 * 3 = 30903154382632612361920641803529 +30903154382632612361920641803529 * 3 = 92709463147897837085761925410587 +92709463147897837085761925410587 * 3 = 278128389443693511257285776231761 +278128389443693511257285776231761 * 3 = 834385168331080533771857328695283 +834385168331080533771857328695283 * 3 = 2503155504993241601315571986085849 +2503155504993241601315571986085849 * 3 = 7509466514979724803946715958257547 +7509466514979724803946715958257547 * 3 = 22528399544939174411840147874772641 +22528399544939174411840147874772641 * 3 = 67585198634817523235520443624317923 +67585198634817523235520443624317923 * 3 = 202755595904452569706561330872953769 +202755595904452569706561330872953769 * 3 = 608266787713357709119683992618861307 +608266787713357709119683992618861307 * 3 = 1824800363140073127359051977856583921 +1824800363140073127359051977856583921 * 3 = 5474401089420219382077155933569751763 +5474401089420219382077155933569751763 * 3 = 16423203268260658146231467800709255289 +16423203268260658146231467800709255289 * 3 = 49269609804781974438694403402127765867 +49269609804781974438694403402127765867 * 3 = 147808829414345923316083210206383297601 +147808829414345923316083210206383297601 * 3 = 443426488243037769948249630619149892803 +443426488243037769948249630619149892803 * 3 = 1330279464729113309844748891857449678409 +1330279464729113309844748891857449678409 * 3 = 3990838394187339929534246675572349035227 +3990838394187339929534246675572349035227 * 3 = 11972515182562019788602740026717047105681 +11972515182562019788602740026717047105681 * 3 = 35917545547686059365808220080151141317043 +35917545547686059365808220080151141317043 * 3 = 107752636643058178097424660240453423951129 +107752636643058178097424660240453423951129 * 3 = 323257909929174534292273980721360271853387 +323257909929174534292273980721360271853387 * 3 = 969773729787523602876821942164080815560161 +969773729787523602876821942164080815560161 * 3 = 2909321189362570808630465826492242446680483 +2909321189362570808630465826492242446680483 * 3 = 8727963568087712425891397479476727340041449 +8727963568087712425891397479476727340041449 * 3 = 26183890704263137277674192438430182020124347 +26183890704263137277674192438430182020124347 * 3 = 78551672112789411833022577315290546060373041 +78551672112789411833022577315290546060373041 * 3 = 235655016338368235499067731945871638181119123 +235655016338368235499067731945871638181119123 * 3 = 706965049015104706497203195837614914543357369 +706965049015104706497203195837614914543357369 * 3 = 2120895147045314119491609587512844743630072107 +2120895147045314119491609587512844743630072107 * 3 = 6362685441135942358474828762538534230890216321 +6362685441135942358474828762538534230890216321 * 3 = 19088056323407827075424486287615602692670648963 +19088056323407827075424486287615602692670648963 * 3 = 57264168970223481226273458862846808078011946889 +57264168970223481226273458862846808078011946889 * 3 = 171792506910670443678820376588540424234035840667 +171792506910670443678820376588540424234035840667 * 3 = 515377520732011331036461129765621272702107522001 +1 * 4 = 4 +4 * 4 = 16 +16 * 4 = 64 +64 * 4 = 256 +256 * 4 = 1024 +1024 * 4 = 4096 +4096 * 4 = 16384 +16384 * 4 = 65536 +65536 * 4 = 262144 +262144 * 4 = 1048576 +1048576 * 4 = 4194304 +4194304 * 4 = 16777216 +16777216 * 4 = 67108864 +67108864 * 4 = 268435456 +268435456 * 4 = 1073741824 +1073741824 * 4 = 4294967296 +4294967296 * 4 = 17179869184 +17179869184 * 4 = 68719476736 +68719476736 * 4 = 274877906944 +274877906944 * 4 = 1099511627776 +1099511627776 * 4 = 4398046511104 +4398046511104 * 4 = 17592186044416 +17592186044416 * 4 = 70368744177664 +70368744177664 * 4 = 281474976710656 +281474976710656 * 4 = 1125899906842624 +1125899906842624 * 4 = 4503599627370496 +4503599627370496 * 4 = 18014398509481984 +18014398509481984 * 4 = 72057594037927936 +72057594037927936 * 4 = 288230376151711744 +288230376151711744 * 4 = 1152921504606846976 +1152921504606846976 * 4 = 4611686018427387904 +4611686018427387904 * 4 = 18446744073709551616 +18446744073709551616 * 4 = 73786976294838206464 +73786976294838206464 * 4 = 295147905179352825856 +295147905179352825856 * 4 = 1180591620717411303424 +1180591620717411303424 * 4 = 4722366482869645213696 +4722366482869645213696 * 4 = 18889465931478580854784 +18889465931478580854784 * 4 = 75557863725914323419136 +75557863725914323419136 * 4 = 302231454903657293676544 +302231454903657293676544 * 4 = 1208925819614629174706176 +1208925819614629174706176 * 4 = 4835703278458516698824704 +4835703278458516698824704 * 4 = 19342813113834066795298816 +19342813113834066795298816 * 4 = 77371252455336267181195264 +77371252455336267181195264 * 4 = 309485009821345068724781056 +309485009821345068724781056 * 4 = 1237940039285380274899124224 +1237940039285380274899124224 * 4 = 4951760157141521099596496896 +4951760157141521099596496896 * 4 = 19807040628566084398385987584 +19807040628566084398385987584 * 4 = 79228162514264337593543950336 +79228162514264337593543950336 * 4 = 316912650057057350374175801344 +316912650057057350374175801344 * 4 = 1267650600228229401496703205376 +1267650600228229401496703205376 * 4 = 5070602400912917605986812821504 +5070602400912917605986812821504 * 4 = 20282409603651670423947251286016 +20282409603651670423947251286016 * 4 = 81129638414606681695789005144064 +81129638414606681695789005144064 * 4 = 324518553658426726783156020576256 +324518553658426726783156020576256 * 4 = 1298074214633706907132624082305024 +1298074214633706907132624082305024 * 4 = 5192296858534827628530496329220096 +5192296858534827628530496329220096 * 4 = 20769187434139310514121985316880384 +20769187434139310514121985316880384 * 4 = 83076749736557242056487941267521536 +83076749736557242056487941267521536 * 4 = 332306998946228968225951765070086144 +332306998946228968225951765070086144 * 4 = 1329227995784915872903807060280344576 +1329227995784915872903807060280344576 * 4 = 5316911983139663491615228241121378304 +5316911983139663491615228241121378304 * 4 = 21267647932558653966460912964485513216 +21267647932558653966460912964485513216 * 4 = 85070591730234615865843651857942052864 +85070591730234615865843651857942052864 * 4 = 340282366920938463463374607431768211456 +340282366920938463463374607431768211456 * 4 = 1361129467683753853853498429727072845824 +1361129467683753853853498429727072845824 * 4 = 5444517870735015415413993718908291383296 +5444517870735015415413993718908291383296 * 4 = 21778071482940061661655974875633165533184 +21778071482940061661655974875633165533184 * 4 = 87112285931760246646623899502532662132736 +87112285931760246646623899502532662132736 * 4 = 348449143727040986586495598010130648530944 +348449143727040986586495598010130648530944 * 4 = 1393796574908163946345982392040522594123776 +1393796574908163946345982392040522594123776 * 4 = 5575186299632655785383929568162090376495104 +5575186299632655785383929568162090376495104 * 4 = 22300745198530623141535718272648361505980416 +22300745198530623141535718272648361505980416 * 4 = 89202980794122492566142873090593446023921664 +89202980794122492566142873090593446023921664 * 4 = 356811923176489970264571492362373784095686656 +356811923176489970264571492362373784095686656 * 4 = 1427247692705959881058285969449495136382746624 +1427247692705959881058285969449495136382746624 * 4 = 5708990770823839524233143877797980545530986496 +5708990770823839524233143877797980545530986496 * 4 = 22835963083295358096932575511191922182123945984 +22835963083295358096932575511191922182123945984 * 4 = 91343852333181432387730302044767688728495783936 +91343852333181432387730302044767688728495783936 * 4 = 365375409332725729550921208179070754913983135744 +365375409332725729550921208179070754913983135744 * 4 = 1461501637330902918203684832716283019655932542976 +1461501637330902918203684832716283019655932542976 * 4 = 5846006549323611672814739330865132078623730171904 +5846006549323611672814739330865132078623730171904 * 4 = 23384026197294446691258957323460528314494920687616 +23384026197294446691258957323460528314494920687616 * 4 = 93536104789177786765035829293842113257979682750464 +93536104789177786765035829293842113257979682750464 * 4 = 374144419156711147060143317175368453031918731001856 +374144419156711147060143317175368453031918731001856 * 4 = 1496577676626844588240573268701473812127674924007424 +1496577676626844588240573268701473812127674924007424 * 4 = 5986310706507378352962293074805895248510699696029696 +5986310706507378352962293074805895248510699696029696 * 4 = 23945242826029513411849172299223580994042798784118784 +23945242826029513411849172299223580994042798784118784 * 4 = 95780971304118053647396689196894323976171195136475136 +95780971304118053647396689196894323976171195136475136 * 4 = 383123885216472214589586756787577295904684780545900544 +383123885216472214589586756787577295904684780545900544 * 4 = 1532495540865888858358347027150309183618739122183602176 +1532495540865888858358347027150309183618739122183602176 * 4 = 6129982163463555433433388108601236734474956488734408704 +6129982163463555433433388108601236734474956488734408704 * 4 = 24519928653854221733733552434404946937899825954937634816 +24519928653854221733733552434404946937899825954937634816 * 4 = 98079714615416886934934209737619787751599303819750539264 +98079714615416886934934209737619787751599303819750539264 * 4 = 392318858461667547739736838950479151006397215279002157056 +392318858461667547739736838950479151006397215279002157056 * 4 = 1569275433846670190958947355801916604025588861116008628224 +1569275433846670190958947355801916604025588861116008628224 * 4 = 6277101735386680763835789423207666416102355444464034512896 +6277101735386680763835789423207666416102355444464034512896 * 4 = 25108406941546723055343157692830665664409421777856138051584 +25108406941546723055343157692830665664409421777856138051584 * 4 = 100433627766186892221372630771322662657637687111424552206336 +100433627766186892221372630771322662657637687111424552206336 * 4 = 401734511064747568885490523085290650630550748445698208825344 +401734511064747568885490523085290650630550748445698208825344 * 4 = 1606938044258990275541962092341162602522202993782792835301376 +1 * 5 = 5 +5 * 5 = 25 +25 * 5 = 125 +125 * 5 = 625 +625 * 5 = 3125 +3125 * 5 = 15625 +15625 * 5 = 78125 +78125 * 5 = 390625 +390625 * 5 = 1953125 +1953125 * 5 = 9765625 +9765625 * 5 = 48828125 +48828125 * 5 = 244140625 +244140625 * 5 = 1220703125 +1220703125 * 5 = 6103515625 +6103515625 * 5 = 30517578125 +30517578125 * 5 = 152587890625 +152587890625 * 5 = 762939453125 +762939453125 * 5 = 3814697265625 +3814697265625 * 5 = 19073486328125 +19073486328125 * 5 = 95367431640625 +95367431640625 * 5 = 476837158203125 +476837158203125 * 5 = 2384185791015625 +2384185791015625 * 5 = 11920928955078125 +11920928955078125 * 5 = 59604644775390625 +59604644775390625 * 5 = 298023223876953125 +298023223876953125 * 5 = 1490116119384765625 +1490116119384765625 * 5 = 7450580596923828125 +7450580596923828125 * 5 = 37252902984619140625 +37252902984619140625 * 5 = 186264514923095703125 +186264514923095703125 * 5 = 931322574615478515625 +931322574615478515625 * 5 = 4656612873077392578125 +4656612873077392578125 * 5 = 23283064365386962890625 +23283064365386962890625 * 5 = 116415321826934814453125 +116415321826934814453125 * 5 = 582076609134674072265625 +582076609134674072265625 * 5 = 2910383045673370361328125 +2910383045673370361328125 * 5 = 14551915228366851806640625 +14551915228366851806640625 * 5 = 72759576141834259033203125 +72759576141834259033203125 * 5 = 363797880709171295166015625 +363797880709171295166015625 * 5 = 1818989403545856475830078125 +1818989403545856475830078125 * 5 = 9094947017729282379150390625 +9094947017729282379150390625 * 5 = 45474735088646411895751953125 +45474735088646411895751953125 * 5 = 227373675443232059478759765625 +227373675443232059478759765625 * 5 = 1136868377216160297393798828125 +1136868377216160297393798828125 * 5 = 5684341886080801486968994140625 +5684341886080801486968994140625 * 5 = 28421709430404007434844970703125 +28421709430404007434844970703125 * 5 = 142108547152020037174224853515625 +142108547152020037174224853515625 * 5 = 710542735760100185871124267578125 +710542735760100185871124267578125 * 5 = 3552713678800500929355621337890625 +3552713678800500929355621337890625 * 5 = 17763568394002504646778106689453125 +17763568394002504646778106689453125 * 5 = 88817841970012523233890533447265625 +88817841970012523233890533447265625 * 5 = 444089209850062616169452667236328125 +444089209850062616169452667236328125 * 5 = 2220446049250313080847263336181640625 +2220446049250313080847263336181640625 * 5 = 11102230246251565404236316680908203125 +11102230246251565404236316680908203125 * 5 = 55511151231257827021181583404541015625 +55511151231257827021181583404541015625 * 5 = 277555756156289135105907917022705078125 +277555756156289135105907917022705078125 * 5 = 1387778780781445675529539585113525390625 +1387778780781445675529539585113525390625 * 5 = 6938893903907228377647697925567626953125 +6938893903907228377647697925567626953125 * 5 = 34694469519536141888238489627838134765625 +34694469519536141888238489627838134765625 * 5 = 173472347597680709441192448139190673828125 +173472347597680709441192448139190673828125 * 5 = 867361737988403547205962240695953369140625 +867361737988403547205962240695953369140625 * 5 = 4336808689942017736029811203479766845703125 +4336808689942017736029811203479766845703125 * 5 = 21684043449710088680149056017398834228515625 +21684043449710088680149056017398834228515625 * 5 = 108420217248550443400745280086994171142578125 +108420217248550443400745280086994171142578125 * 5 = 542101086242752217003726400434970855712890625 +542101086242752217003726400434970855712890625 * 5 = 2710505431213761085018632002174854278564453125 +2710505431213761085018632002174854278564453125 * 5 = 13552527156068805425093160010874271392822265625 +13552527156068805425093160010874271392822265625 * 5 = 67762635780344027125465800054371356964111328125 +67762635780344027125465800054371356964111328125 * 5 = 338813178901720135627329000271856784820556640625 +338813178901720135627329000271856784820556640625 * 5 = 1694065894508600678136645001359283924102783203125 +1694065894508600678136645001359283924102783203125 * 5 = 8470329472543003390683225006796419620513916015625 +8470329472543003390683225006796419620513916015625 * 5 = 42351647362715016953416125033982098102569580078125 +42351647362715016953416125033982098102569580078125 * 5 = 211758236813575084767080625169910490512847900390625 +211758236813575084767080625169910490512847900390625 * 5 = 1058791184067875423835403125849552452564239501953125 +1058791184067875423835403125849552452564239501953125 * 5 = 5293955920339377119177015629247762262821197509765625 +5293955920339377119177015629247762262821197509765625 * 5 = 26469779601696885595885078146238811314105987548828125 +26469779601696885595885078146238811314105987548828125 * 5 = 132348898008484427979425390731194056570529937744140625 +132348898008484427979425390731194056570529937744140625 * 5 = 661744490042422139897126953655970282852649688720703125 +661744490042422139897126953655970282852649688720703125 * 5 = 3308722450212110699485634768279851414263248443603515625 +3308722450212110699485634768279851414263248443603515625 * 5 = 16543612251060553497428173841399257071316242218017578125 +16543612251060553497428173841399257071316242218017578125 * 5 = 82718061255302767487140869206996285356581211090087890625 +82718061255302767487140869206996285356581211090087890625 * 5 = 413590306276513837435704346034981426782906055450439453125 +413590306276513837435704346034981426782906055450439453125 * 5 = 2067951531382569187178521730174907133914530277252197265625 +2067951531382569187178521730174907133914530277252197265625 * 5 = 10339757656912845935892608650874535669572651386260986328125 +10339757656912845935892608650874535669572651386260986328125 * 5 = 51698788284564229679463043254372678347863256931304931640625 +51698788284564229679463043254372678347863256931304931640625 * 5 = 258493941422821148397315216271863391739316284656524658203125 +258493941422821148397315216271863391739316284656524658203125 * 5 = 1292469707114105741986576081359316958696581423282623291015625 +1292469707114105741986576081359316958696581423282623291015625 * 5 = 6462348535570528709932880406796584793482907116413116455078125 +6462348535570528709932880406796584793482907116413116455078125 * 5 = 32311742677852643549664402033982923967414535582065582275390625 +32311742677852643549664402033982923967414535582065582275390625 * 5 = 161558713389263217748322010169914619837072677910327911376953125 +161558713389263217748322010169914619837072677910327911376953125 * 5 = 807793566946316088741610050849573099185363389551639556884765625 +807793566946316088741610050849573099185363389551639556884765625 * 5 = 4038967834731580443708050254247865495926816947758197784423828125 +4038967834731580443708050254247865495926816947758197784423828125 * 5 = 20194839173657902218540251271239327479634084738790988922119140625 +20194839173657902218540251271239327479634084738790988922119140625 * 5 = 100974195868289511092701256356196637398170423693954944610595703125 +100974195868289511092701256356196637398170423693954944610595703125 * 5 = 504870979341447555463506281780983186990852118469774723052978515625 +504870979341447555463506281780983186990852118469774723052978515625 * 5 = 2524354896707237777317531408904915934954260592348873615264892578125 +2524354896707237777317531408904915934954260592348873615264892578125 * 5 = 12621774483536188886587657044524579674771302961744368076324462890625 +12621774483536188886587657044524579674771302961744368076324462890625 * 5 = 63108872417680944432938285222622898373856514808721840381622314453125 +63108872417680944432938285222622898373856514808721840381622314453125 * 5 = 315544362088404722164691426113114491869282574043609201908111572265625 +315544362088404722164691426113114491869282574043609201908111572265625 * 5 = 1577721810442023610823457130565572459346412870218046009540557861328125 +1577721810442023610823457130565572459346412870218046009540557861328125 * 5 = 7888609052210118054117285652827862296732064351090230047702789306640625 +1 * 6 = 6 +6 * 6 = 36 +36 * 6 = 216 +216 * 6 = 1296 +1296 * 6 = 7776 +7776 * 6 = 46656 +46656 * 6 = 279936 +279936 * 6 = 1679616 +1679616 * 6 = 10077696 +10077696 * 6 = 60466176 +60466176 * 6 = 362797056 +362797056 * 6 = 2176782336 +2176782336 * 6 = 13060694016 +13060694016 * 6 = 78364164096 +78364164096 * 6 = 470184984576 +470184984576 * 6 = 2821109907456 +2821109907456 * 6 = 16926659444736 +16926659444736 * 6 = 101559956668416 +101559956668416 * 6 = 609359740010496 +609359740010496 * 6 = 3656158440062976 +3656158440062976 * 6 = 21936950640377856 +21936950640377856 * 6 = 131621703842267136 +131621703842267136 * 6 = 789730223053602816 +789730223053602816 * 6 = 4738381338321616896 +4738381338321616896 * 6 = 28430288029929701376 +28430288029929701376 * 6 = 170581728179578208256 +170581728179578208256 * 6 = 1023490369077469249536 +1023490369077469249536 * 6 = 6140942214464815497216 +6140942214464815497216 * 6 = 36845653286788892983296 +36845653286788892983296 * 6 = 221073919720733357899776 +221073919720733357899776 * 6 = 1326443518324400147398656 +1326443518324400147398656 * 6 = 7958661109946400884391936 +7958661109946400884391936 * 6 = 47751966659678405306351616 +47751966659678405306351616 * 6 = 286511799958070431838109696 +286511799958070431838109696 * 6 = 1719070799748422591028658176 +1719070799748422591028658176 * 6 = 10314424798490535546171949056 +10314424798490535546171949056 * 6 = 61886548790943213277031694336 +61886548790943213277031694336 * 6 = 371319292745659279662190166016 +371319292745659279662190166016 * 6 = 2227915756473955677973140996096 +2227915756473955677973140996096 * 6 = 13367494538843734067838845976576 +13367494538843734067838845976576 * 6 = 80204967233062404407033075859456 +80204967233062404407033075859456 * 6 = 481229803398374426442198455156736 +481229803398374426442198455156736 * 6 = 2887378820390246558653190730940416 +2887378820390246558653190730940416 * 6 = 17324272922341479351919144385642496 +17324272922341479351919144385642496 * 6 = 103945637534048876111514866313854976 +103945637534048876111514866313854976 * 6 = 623673825204293256669089197883129856 +623673825204293256669089197883129856 * 6 = 3742042951225759540014535187298779136 +3742042951225759540014535187298779136 * 6 = 22452257707354557240087211123792674816 +22452257707354557240087211123792674816 * 6 = 134713546244127343440523266742756048896 +134713546244127343440523266742756048896 * 6 = 808281277464764060643139600456536293376 +808281277464764060643139600456536293376 * 6 = 4849687664788584363858837602739217760256 +4849687664788584363858837602739217760256 * 6 = 29098125988731506183153025616435306561536 +29098125988731506183153025616435306561536 * 6 = 174588755932389037098918153698611839369216 +174588755932389037098918153698611839369216 * 6 = 1047532535594334222593508922191671036215296 +1047532535594334222593508922191671036215296 * 6 = 6285195213566005335561053533150026217291776 +6285195213566005335561053533150026217291776 * 6 = 37711171281396032013366321198900157303750656 +37711171281396032013366321198900157303750656 * 6 = 226267027688376192080197927193400943822503936 +226267027688376192080197927193400943822503936 * 6 = 1357602166130257152481187563160405662935023616 +1357602166130257152481187563160405662935023616 * 6 = 8145612996781542914887125378962433977610141696 +8145612996781542914887125378962433977610141696 * 6 = 48873677980689257489322752273774603865660850176 +48873677980689257489322752273774603865660850176 * 6 = 293242067884135544935936513642647623193965101056 +293242067884135544935936513642647623193965101056 * 6 = 1759452407304813269615619081855885739163790606336 +1759452407304813269615619081855885739163790606336 * 6 = 10556714443828879617693714491135314434982743638016 +10556714443828879617693714491135314434982743638016 * 6 = 63340286662973277706162286946811886609896461828096 +63340286662973277706162286946811886609896461828096 * 6 = 380041719977839666236973721680871319659378770968576 +380041719977839666236973721680871319659378770968576 * 6 = 2280250319867037997421842330085227917956272625811456 +2280250319867037997421842330085227917956272625811456 * 6 = 13681501919202227984531053980511367507737635754868736 +13681501919202227984531053980511367507737635754868736 * 6 = 82089011515213367907186323883068205046425814529212416 +82089011515213367907186323883068205046425814529212416 * 6 = 492534069091280207443117943298409230278554887175274496 +492534069091280207443117943298409230278554887175274496 * 6 = 2955204414547681244658707659790455381671329323051646976 +2955204414547681244658707659790455381671329323051646976 * 6 = 17731226487286087467952245958742732290027975938309881856 +17731226487286087467952245958742732290027975938309881856 * 6 = 106387358923716524807713475752456393740167855629859291136 +106387358923716524807713475752456393740167855629859291136 * 6 = 638324153542299148846280854514738362441007133779155746816 +638324153542299148846280854514738362441007133779155746816 * 6 = 3829944921253794893077685127088430174646042802674934480896 +3829944921253794893077685127088430174646042802674934480896 * 6 = 22979669527522769358466110762530581047876256816049606885376 +22979669527522769358466110762530581047876256816049606885376 * 6 = 137878017165136616150796664575183486287257540896297641312256 +137878017165136616150796664575183486287257540896297641312256 * 6 = 827268102990819696904779987451100917723545245377785847873536 +827268102990819696904779987451100917723545245377785847873536 * 6 = 4963608617944918181428679924706605506341271472266715087241216 +4963608617944918181428679924706605506341271472266715087241216 * 6 = 29781651707669509088572079548239633038047628833600290523447296 +29781651707669509088572079548239633038047628833600290523447296 * 6 = 178689910246017054531432477289437798228285773001601743140683776 +178689910246017054531432477289437798228285773001601743140683776 * 6 = 1072139461476102327188594863736626789369714638009610458844102656 +1072139461476102327188594863736626789369714638009610458844102656 * 6 = 6432836768856613963131569182419760736218287828057662753064615936 +6432836768856613963131569182419760736218287828057662753064615936 * 6 = 38597020613139683778789415094518564417309726968345976518387695616 +38597020613139683778789415094518564417309726968345976518387695616 * 6 = 231582123678838102672736490567111386503858361810075859110326173696 +231582123678838102672736490567111386503858361810075859110326173696 * 6 = 1389492742073028616036418943402668319023150170860455154661957042176 +1389492742073028616036418943402668319023150170860455154661957042176 * 6 = 8336956452438171696218513660416009914138901025162730927971742253056 +8336956452438171696218513660416009914138901025162730927971742253056 * 6 = 50021738714629030177311081962496059484833406150976385567830453518336 +50021738714629030177311081962496059484833406150976385567830453518336 * 6 = 300130432287774181063866491774976356909000436905858313406982721110016 +300130432287774181063866491774976356909000436905858313406982721110016 * 6 = 1800782593726645086383198950649858141454002621435149880441896326660096 +1800782593726645086383198950649858141454002621435149880441896326660096 * 6 = 10804695562359870518299193703899148848724015728610899282651377959960576 +10804695562359870518299193703899148848724015728610899282651377959960576 * 6 = 64828173374159223109795162223394893092344094371665395695908267759763456 +64828173374159223109795162223394893092344094371665395695908267759763456 * 6 = 388969040244955338658770973340369358554064566229992374175449606558580736 +388969040244955338658770973340369358554064566229992374175449606558580736 * 6 = 2333814241469732031952625840042216151324387397379954245052697639351484416 +2333814241469732031952625840042216151324387397379954245052697639351484416 * 6 = 14002885448818392191715755040253296907946324384279725470316185836108906496 +14002885448818392191715755040253296907946324384279725470316185836108906496 * 6 = 84017312692910353150294530241519781447677946305678352821897115016653438976 +84017312692910353150294530241519781447677946305678352821897115016653438976 * 6 = 504103876157462118901767181449118688686067677834070116931382690099920633856 +504103876157462118901767181449118688686067677834070116931382690099920633856 * 6 = 3024623256944772713410603088694712132116406067004420701588296140599523803136 +3024623256944772713410603088694712132116406067004420701588296140599523803136 * 6 = 18147739541668636280463618532168272792698436402026524209529776843597142818816 +18147739541668636280463618532168272792698436402026524209529776843597142818816 * 6 = 108886437250011817682781711193009636756190618412159145257178661061582856912896 +108886437250011817682781711193009636756190618412159145257178661061582856912896 * 6 = 653318623500070906096690267158057820537143710472954871543071966369497141477376 +1 * 7 = 7 +7 * 7 = 49 +49 * 7 = 343 +343 * 7 = 2401 +2401 * 7 = 16807 +16807 * 7 = 117649 +117649 * 7 = 823543 +823543 * 7 = 5764801 +5764801 * 7 = 40353607 +40353607 * 7 = 282475249 +282475249 * 7 = 1977326743 +1977326743 * 7 = 13841287201 +13841287201 * 7 = 96889010407 +96889010407 * 7 = 678223072849 +678223072849 * 7 = 4747561509943 +4747561509943 * 7 = 33232930569601 +33232930569601 * 7 = 232630513987207 +232630513987207 * 7 = 1628413597910449 +1628413597910449 * 7 = 11398895185373143 +11398895185373143 * 7 = 79792266297612001 +79792266297612001 * 7 = 558545864083284007 +558545864083284007 * 7 = 3909821048582988049 +3909821048582988049 * 7 = 27368747340080916343 +27368747340080916343 * 7 = 191581231380566414401 +191581231380566414401 * 7 = 1341068619663964900807 +1341068619663964900807 * 7 = 9387480337647754305649 +9387480337647754305649 * 7 = 65712362363534280139543 +65712362363534280139543 * 7 = 459986536544739960976801 +459986536544739960976801 * 7 = 3219905755813179726837607 +3219905755813179726837607 * 7 = 22539340290692258087863249 +22539340290692258087863249 * 7 = 157775382034845806615042743 +157775382034845806615042743 * 7 = 1104427674243920646305299201 +1104427674243920646305299201 * 7 = 7730993719707444524137094407 +7730993719707444524137094407 * 7 = 54116956037952111668959660849 +54116956037952111668959660849 * 7 = 378818692265664781682717625943 +378818692265664781682717625943 * 7 = 2651730845859653471779023381601 +2651730845859653471779023381601 * 7 = 18562115921017574302453163671207 +18562115921017574302453163671207 * 7 = 129934811447123020117172145698449 +129934811447123020117172145698449 * 7 = 909543680129861140820205019889143 +909543680129861140820205019889143 * 7 = 6366805760909027985741435139224001 +6366805760909027985741435139224001 * 7 = 44567640326363195900190045974568007 +44567640326363195900190045974568007 * 7 = 311973482284542371301330321821976049 +311973482284542371301330321821976049 * 7 = 2183814375991796599109312252753832343 +2183814375991796599109312252753832343 * 7 = 15286700631942576193765185769276826401 +15286700631942576193765185769276826401 * 7 = 107006904423598033356356300384937784807 +107006904423598033356356300384937784807 * 7 = 749048330965186233494494102694564493649 +749048330965186233494494102694564493649 * 7 = 5243338316756303634461458718861951455543 +5243338316756303634461458718861951455543 * 7 = 36703368217294125441230211032033660188801 +36703368217294125441230211032033660188801 * 7 = 256923577521058878088611477224235621321607 +256923577521058878088611477224235621321607 * 7 = 1798465042647412146620280340569649349251249 +1798465042647412146620280340569649349251249 * 7 = 12589255298531885026341962383987545444758743 +12589255298531885026341962383987545444758743 * 7 = 88124787089723195184393736687912818113311201 +88124787089723195184393736687912818113311201 * 7 = 616873509628062366290756156815389726793178407 +616873509628062366290756156815389726793178407 * 7 = 4318114567396436564035293097707728087552248849 +4318114567396436564035293097707728087552248849 * 7 = 30226801971775055948247051683954096612865741943 +30226801971775055948247051683954096612865741943 * 7 = 211587613802425391637729361787678676290060193601 +211587613802425391637729361787678676290060193601 * 7 = 1481113296616977741464105532513750734030421355207 +1481113296616977741464105532513750734030421355207 * 7 = 10367793076318844190248738727596255138212949486449 +10367793076318844190248738727596255138212949486449 * 7 = 72574551534231909331741171093173785967490646405143 +72574551534231909331741171093173785967490646405143 * 7 = 508021860739623365322188197652216501772434524836001 +508021860739623365322188197652216501772434524836001 * 7 = 3556153025177363557255317383565515512407041673852007 +3556153025177363557255317383565515512407041673852007 * 7 = 24893071176241544900787221684958608586849291716964049 +24893071176241544900787221684958608586849291716964049 * 7 = 174251498233690814305510551794710260107945042018748343 +174251498233690814305510551794710260107945042018748343 * 7 = 1219760487635835700138573862562971820755615294131238401 +1219760487635835700138573862562971820755615294131238401 * 7 = 8538323413450849900970017037940802745289307058918668807 +8538323413450849900970017037940802745289307058918668807 * 7 = 59768263894155949306790119265585619217025149412430681649 +59768263894155949306790119265585619217025149412430681649 * 7 = 418377847259091645147530834859099334519176045887014771543 +418377847259091645147530834859099334519176045887014771543 * 7 = 2928644930813641516032715844013695341634232321209103400801 +2928644930813641516032715844013695341634232321209103400801 * 7 = 20500514515695490612229010908095867391439626248463723805607 +20500514515695490612229010908095867391439626248463723805607 * 7 = 143503601609868434285603076356671071740077383739246066639249 +143503601609868434285603076356671071740077383739246066639249 * 7 = 1004525211269079039999221534496697502180541686174722466474743 +1004525211269079039999221534496697502180541686174722466474743 * 7 = 7031676478883553279994550741476882515263791803223057265323201 +7031676478883553279994550741476882515263791803223057265323201 * 7 = 49221735352184872959961855190338177606846542622561400857262407 +49221735352184872959961855190338177606846542622561400857262407 * 7 = 344552147465294110719732986332367243247925798357929806000836849 +344552147465294110719732986332367243247925798357929806000836849 * 7 = 2411865032257058775038130904326570702735480588505508642005857943 +2411865032257058775038130904326570702735480588505508642005857943 * 7 = 16883055225799411425266916330285994919148364119538560494041005601 +16883055225799411425266916330285994919148364119538560494041005601 * 7 = 118181386580595879976868414312001964434038548836769923458287039207 +118181386580595879976868414312001964434038548836769923458287039207 * 7 = 827269706064171159838078900184013751038269841857389464208009274449 +827269706064171159838078900184013751038269841857389464208009274449 * 7 = 5790887942449198118866552301288096257267888893001726249456064921143 +5790887942449198118866552301288096257267888893001726249456064921143 * 7 = 40536215597144386832065866109016673800875222251012083746192454448001 +40536215597144386832065866109016673800875222251012083746192454448001 * 7 = 283753509180010707824461062763116716606126555757084586223347181136007 +283753509180010707824461062763116716606126555757084586223347181136007 * 7 = 1986274564260074954771227439341817016242885890299592103563430267952049 +1986274564260074954771227439341817016242885890299592103563430267952049 * 7 = 13903921949820524683398592075392719113700201232097144724944011875664343 +13903921949820524683398592075392719113700201232097144724944011875664343 * 7 = 97327453648743672783790144527749033795901408624680013074608083129650401 +97327453648743672783790144527749033795901408624680013074608083129650401 * 7 = 681292175541205709486531011694243236571309860372760091522256581907552807 +681292175541205709486531011694243236571309860372760091522256581907552807 * 7 = 4769045228788439966405717081859702655999169022609320640655796073352869649 +4769045228788439966405717081859702655999169022609320640655796073352869649 * 7 = 33383316601519079764840019573017918591994183158265244484590572513470087543 +33383316601519079764840019573017918591994183158265244484590572513470087543 * 7 = 233683216210633558353880137011125430143959282107856711392134007594290612801 +233683216210633558353880137011125430143959282107856711392134007594290612801 * 7 = 1635782513474434908477160959077878011007714974754996979744938053160034289607 +1635782513474434908477160959077878011007714974754996979744938053160034289607 * 7 = 11450477594321044359340126713545146077054004823284978858214566372120240027249 +11450477594321044359340126713545146077054004823284978858214566372120240027249 * 7 = 80153343160247310515380886994816022539378033762994852007501964604841680190743 +80153343160247310515380886994816022539378033762994852007501964604841680190743 * 7 = 561073402121731173607666208963712157775646236340963964052513752233891761335201 +561073402121731173607666208963712157775646236340963964052513752233891761335201 * 7 = 3927513814852118215253663462745985104429523654386747748367596265637242329346407 +3927513814852118215253663462745985104429523654386747748367596265637242329346407 * 7 = 27492596703964827506775644239221895731006665580707234238573173859460696305424849 +27492596703964827506775644239221895731006665580707234238573173859460696305424849 * 7 = 192448176927753792547429509674553270117046659064950639670012217016224874137973943 +192448176927753792547429509674553270117046659064950639670012217016224874137973943 * 7 = 1347137238494276547832006567721872890819326613454654477690085519113574118965817601 +1347137238494276547832006567721872890819326613454654477690085519113574118965817601 * 7 = 9429960669459935834824045974053110235735286294182581343830598633795018832760723207 +9429960669459935834824045974053110235735286294182581343830598633795018832760723207 * 7 = 66009724686219550843768321818371771650147004059278069406814190436565131829325062449 +66009724686219550843768321818371771650147004059278069406814190436565131829325062449 * 7 = 462068072803536855906378252728602401551029028414946485847699333055955922805275437143 +462068072803536855906378252728602401551029028414946485847699333055955922805275437143 * 7 = 3234476509624757991344647769100216810857203198904625400933895331391691459636928060001 +1 * 8 = 8 +8 * 8 = 64 +64 * 8 = 512 +512 * 8 = 4096 +4096 * 8 = 32768 +32768 * 8 = 262144 +262144 * 8 = 2097152 +2097152 * 8 = 16777216 +16777216 * 8 = 134217728 +134217728 * 8 = 1073741824 +1073741824 * 8 = 8589934592 +8589934592 * 8 = 68719476736 +68719476736 * 8 = 549755813888 +549755813888 * 8 = 4398046511104 +4398046511104 * 8 = 35184372088832 +35184372088832 * 8 = 281474976710656 +281474976710656 * 8 = 2251799813685248 +2251799813685248 * 8 = 18014398509481984 +18014398509481984 * 8 = 144115188075855872 +144115188075855872 * 8 = 1152921504606846976 +1152921504606846976 * 8 = 9223372036854775808 +9223372036854775808 * 8 = 73786976294838206464 +73786976294838206464 * 8 = 590295810358705651712 +590295810358705651712 * 8 = 4722366482869645213696 +4722366482869645213696 * 8 = 37778931862957161709568 +37778931862957161709568 * 8 = 302231454903657293676544 +302231454903657293676544 * 8 = 2417851639229258349412352 +2417851639229258349412352 * 8 = 19342813113834066795298816 +19342813113834066795298816 * 8 = 154742504910672534362390528 +154742504910672534362390528 * 8 = 1237940039285380274899124224 +1237940039285380274899124224 * 8 = 9903520314283042199192993792 +9903520314283042199192993792 * 8 = 79228162514264337593543950336 +79228162514264337593543950336 * 8 = 633825300114114700748351602688 +633825300114114700748351602688 * 8 = 5070602400912917605986812821504 +5070602400912917605986812821504 * 8 = 40564819207303340847894502572032 +40564819207303340847894502572032 * 8 = 324518553658426726783156020576256 +324518553658426726783156020576256 * 8 = 2596148429267413814265248164610048 +2596148429267413814265248164610048 * 8 = 20769187434139310514121985316880384 +20769187434139310514121985316880384 * 8 = 166153499473114484112975882535043072 +166153499473114484112975882535043072 * 8 = 1329227995784915872903807060280344576 +1329227995784915872903807060280344576 * 8 = 10633823966279326983230456482242756608 +10633823966279326983230456482242756608 * 8 = 85070591730234615865843651857942052864 +85070591730234615865843651857942052864 * 8 = 680564733841876926926749214863536422912 +680564733841876926926749214863536422912 * 8 = 5444517870735015415413993718908291383296 +5444517870735015415413993718908291383296 * 8 = 43556142965880123323311949751266331066368 +43556142965880123323311949751266331066368 * 8 = 348449143727040986586495598010130648530944 +348449143727040986586495598010130648530944 * 8 = 2787593149816327892691964784081045188247552 +2787593149816327892691964784081045188247552 * 8 = 22300745198530623141535718272648361505980416 +22300745198530623141535718272648361505980416 * 8 = 178405961588244985132285746181186892047843328 +178405961588244985132285746181186892047843328 * 8 = 1427247692705959881058285969449495136382746624 +1427247692705959881058285969449495136382746624 * 8 = 11417981541647679048466287755595961091061972992 +11417981541647679048466287755595961091061972992 * 8 = 91343852333181432387730302044767688728495783936 +91343852333181432387730302044767688728495783936 * 8 = 730750818665451459101842416358141509827966271488 +730750818665451459101842416358141509827966271488 * 8 = 5846006549323611672814739330865132078623730171904 +5846006549323611672814739330865132078623730171904 * 8 = 46768052394588893382517914646921056628989841375232 +46768052394588893382517914646921056628989841375232 * 8 = 374144419156711147060143317175368453031918731001856 +374144419156711147060143317175368453031918731001856 * 8 = 2993155353253689176481146537402947624255349848014848 +2993155353253689176481146537402947624255349848014848 * 8 = 23945242826029513411849172299223580994042798784118784 +23945242826029513411849172299223580994042798784118784 * 8 = 191561942608236107294793378393788647952342390272950272 +191561942608236107294793378393788647952342390272950272 * 8 = 1532495540865888858358347027150309183618739122183602176 +1532495540865888858358347027150309183618739122183602176 * 8 = 12259964326927110866866776217202473468949912977468817408 +12259964326927110866866776217202473468949912977468817408 * 8 = 98079714615416886934934209737619787751599303819750539264 +98079714615416886934934209737619787751599303819750539264 * 8 = 784637716923335095479473677900958302012794430558004314112 +784637716923335095479473677900958302012794430558004314112 * 8 = 6277101735386680763835789423207666416102355444464034512896 +6277101735386680763835789423207666416102355444464034512896 * 8 = 50216813883093446110686315385661331328818843555712276103168 +50216813883093446110686315385661331328818843555712276103168 * 8 = 401734511064747568885490523085290650630550748445698208825344 +401734511064747568885490523085290650630550748445698208825344 * 8 = 3213876088517980551083924184682325205044405987565585670602752 +3213876088517980551083924184682325205044405987565585670602752 * 8 = 25711008708143844408671393477458601640355247900524685364822016 +25711008708143844408671393477458601640355247900524685364822016 * 8 = 205688069665150755269371147819668813122841983204197482918576128 +205688069665150755269371147819668813122841983204197482918576128 * 8 = 1645504557321206042154969182557350504982735865633579863348609024 +1645504557321206042154969182557350504982735865633579863348609024 * 8 = 13164036458569648337239753460458804039861886925068638906788872192 +13164036458569648337239753460458804039861886925068638906788872192 * 8 = 105312291668557186697918027683670432318895095400549111254310977536 +105312291668557186697918027683670432318895095400549111254310977536 * 8 = 842498333348457493583344221469363458551160763204392890034487820288 +842498333348457493583344221469363458551160763204392890034487820288 * 8 = 6739986666787659948666753771754907668409286105635143120275902562304 +6739986666787659948666753771754907668409286105635143120275902562304 * 8 = 53919893334301279589334030174039261347274288845081144962207220498432 +53919893334301279589334030174039261347274288845081144962207220498432 * 8 = 431359146674410236714672241392314090778194310760649159697657763987456 +431359146674410236714672241392314090778194310760649159697657763987456 * 8 = 3450873173395281893717377931138512726225554486085193277581262111899648 +3450873173395281893717377931138512726225554486085193277581262111899648 * 8 = 27606985387162255149739023449108101809804435888681546220650096895197184 +27606985387162255149739023449108101809804435888681546220650096895197184 * 8 = 220855883097298041197912187592864814478435487109452369765200775161577472 +220855883097298041197912187592864814478435487109452369765200775161577472 * 8 = 1766847064778384329583297500742918515827483896875618958121606201292619776 +1766847064778384329583297500742918515827483896875618958121606201292619776 * 8 = 14134776518227074636666380005943348126619871175004951664972849610340958208 +14134776518227074636666380005943348126619871175004951664972849610340958208 * 8 = 113078212145816597093331040047546785012958969400039613319782796882727665664 +113078212145816597093331040047546785012958969400039613319782796882727665664 * 8 = 904625697166532776746648320380374280103671755200316906558262375061821325312 +904625697166532776746648320380374280103671755200316906558262375061821325312 * 8 = 7237005577332262213973186563042994240829374041602535252466099000494570602496 +7237005577332262213973186563042994240829374041602535252466099000494570602496 * 8 = 57896044618658097711785492504343953926634992332820282019728792003956564819968 +57896044618658097711785492504343953926634992332820282019728792003956564819968 * 8 = 463168356949264781694283940034751631413079938662562256157830336031652518559744 +463168356949264781694283940034751631413079938662562256157830336031652518559744 * 8 = 3705346855594118253554271520278013051304639509300498049262642688253220148477952 +3705346855594118253554271520278013051304639509300498049262642688253220148477952 * 8 = 29642774844752946028434172162224104410437116074403984394101141506025761187823616 +29642774844752946028434172162224104410437116074403984394101141506025761187823616 * 8 = 237142198758023568227473377297792835283496928595231875152809132048206089502588928 +237142198758023568227473377297792835283496928595231875152809132048206089502588928 * 8 = 1897137590064188545819787018382342682267975428761855001222473056385648716020711424 +1897137590064188545819787018382342682267975428761855001222473056385648716020711424 * 8 = 15177100720513508366558296147058741458143803430094840009779784451085189728165691392 +15177100720513508366558296147058741458143803430094840009779784451085189728165691392 * 8 = 121416805764108066932466369176469931665150427440758720078238275608681517825325531136 +121416805764108066932466369176469931665150427440758720078238275608681517825325531136 * 8 = 971334446112864535459730953411759453321203419526069760625906204869452142602604249088 +971334446112864535459730953411759453321203419526069760625906204869452142602604249088 * 8 = 7770675568902916283677847627294075626569627356208558085007249638955617140820833992704 +7770675568902916283677847627294075626569627356208558085007249638955617140820833992704 * 8 = 62165404551223330269422781018352605012557018849668464680057997111644937126566671941632 +62165404551223330269422781018352605012557018849668464680057997111644937126566671941632 * 8 = 497323236409786642155382248146820840100456150797347717440463976893159497012533375533056 +497323236409786642155382248146820840100456150797347717440463976893159497012533375533056 * 8 = 3978585891278293137243057985174566720803649206378781739523711815145275976100267004264448 +3978585891278293137243057985174566720803649206378781739523711815145275976100267004264448 * 8 = 31828687130226345097944463881396533766429193651030253916189694521162207808802136034115584 +31828687130226345097944463881396533766429193651030253916189694521162207808802136034115584 * 8 = 254629497041810760783555711051172270131433549208242031329517556169297662470417088272924672 +254629497041810760783555711051172270131433549208242031329517556169297662470417088272924672 * 8 = 2037035976334486086268445688409378161051468393665936250636140449354381299763336706183397376 +1 * 9 = 9 +9 * 9 = 81 +81 * 9 = 729 +729 * 9 = 6561 +6561 * 9 = 59049 +59049 * 9 = 531441 +531441 * 9 = 4782969 +4782969 * 9 = 43046721 +43046721 * 9 = 387420489 +387420489 * 9 = 3486784401 +3486784401 * 9 = 31381059609 +31381059609 * 9 = 282429536481 +282429536481 * 9 = 2541865828329 +2541865828329 * 9 = 22876792454961 +22876792454961 * 9 = 205891132094649 +205891132094649 * 9 = 1853020188851841 +1853020188851841 * 9 = 16677181699666569 +16677181699666569 * 9 = 150094635296999121 +150094635296999121 * 9 = 1350851717672992089 +1350851717672992089 * 9 = 12157665459056928801 +12157665459056928801 * 9 = 109418989131512359209 +109418989131512359209 * 9 = 984770902183611232881 +984770902183611232881 * 9 = 8862938119652501095929 +8862938119652501095929 * 9 = 79766443076872509863361 +79766443076872509863361 * 9 = 717897987691852588770249 +717897987691852588770249 * 9 = 6461081889226673298932241 +6461081889226673298932241 * 9 = 58149737003040059690390169 +58149737003040059690390169 * 9 = 523347633027360537213511521 +523347633027360537213511521 * 9 = 4710128697246244834921603689 +4710128697246244834921603689 * 9 = 42391158275216203514294433201 +42391158275216203514294433201 * 9 = 381520424476945831628649898809 +381520424476945831628649898809 * 9 = 3433683820292512484657849089281 +3433683820292512484657849089281 * 9 = 30903154382632612361920641803529 +30903154382632612361920641803529 * 9 = 278128389443693511257285776231761 +278128389443693511257285776231761 * 9 = 2503155504993241601315571986085849 +2503155504993241601315571986085849 * 9 = 22528399544939174411840147874772641 +22528399544939174411840147874772641 * 9 = 202755595904452569706561330872953769 +202755595904452569706561330872953769 * 9 = 1824800363140073127359051977856583921 +1824800363140073127359051977856583921 * 9 = 16423203268260658146231467800709255289 +16423203268260658146231467800709255289 * 9 = 147808829414345923316083210206383297601 +147808829414345923316083210206383297601 * 9 = 1330279464729113309844748891857449678409 +1330279464729113309844748891857449678409 * 9 = 11972515182562019788602740026717047105681 +11972515182562019788602740026717047105681 * 9 = 107752636643058178097424660240453423951129 +107752636643058178097424660240453423951129 * 9 = 969773729787523602876821942164080815560161 +969773729787523602876821942164080815560161 * 9 = 8727963568087712425891397479476727340041449 +8727963568087712425891397479476727340041449 * 9 = 78551672112789411833022577315290546060373041 +78551672112789411833022577315290546060373041 * 9 = 706965049015104706497203195837614914543357369 +706965049015104706497203195837614914543357369 * 9 = 6362685441135942358474828762538534230890216321 +6362685441135942358474828762538534230890216321 * 9 = 57264168970223481226273458862846808078011946889 +57264168970223481226273458862846808078011946889 * 9 = 515377520732011331036461129765621272702107522001 +515377520732011331036461129765621272702107522001 * 9 = 4638397686588101979328150167890591454318967698009 +4638397686588101979328150167890591454318967698009 * 9 = 41745579179292917813953351511015323088870709282081 +41745579179292917813953351511015323088870709282081 * 9 = 375710212613636260325580163599137907799836383538729 +375710212613636260325580163599137907799836383538729 * 9 = 3381391913522726342930221472392241170198527451848561 +3381391913522726342930221472392241170198527451848561 * 9 = 30432527221704537086371993251530170531786747066637049 +30432527221704537086371993251530170531786747066637049 * 9 = 273892744995340833777347939263771534786080723599733441 +273892744995340833777347939263771534786080723599733441 * 9 = 2465034704958067503996131453373943813074726512397600969 +2465034704958067503996131453373943813074726512397600969 * 9 = 22185312344622607535965183080365494317672538611578408721 +22185312344622607535965183080365494317672538611578408721 * 9 = 199667811101603467823686647723289448859052847504205678489 +199667811101603467823686647723289448859052847504205678489 * 9 = 1797010299914431210413179829509605039731475627537851106401 +1797010299914431210413179829509605039731475627537851106401 * 9 = 16173092699229880893718618465586445357583280647840659957609 +16173092699229880893718618465586445357583280647840659957609 * 9 = 145557834293068928043467566190278008218249525830565939618481 +145557834293068928043467566190278008218249525830565939618481 * 9 = 1310020508637620352391208095712502073964245732475093456566329 +1310020508637620352391208095712502073964245732475093456566329 * 9 = 11790184577738583171520872861412518665678211592275841109096961 +11790184577738583171520872861412518665678211592275841109096961 * 9 = 106111661199647248543687855752712667991103904330482569981872649 +106111661199647248543687855752712667991103904330482569981872649 * 9 = 955004950796825236893190701774414011919935138974343129836853841 +955004950796825236893190701774414011919935138974343129836853841 * 9 = 8595044557171427132038716315969726107279416250769088168531684569 +8595044557171427132038716315969726107279416250769088168531684569 * 9 = 77355401014542844188348446843727534965514746256921793516785161121 +77355401014542844188348446843727534965514746256921793516785161121 * 9 = 696198609130885597695136021593547814689632716312296141651066450089 +696198609130885597695136021593547814689632716312296141651066450089 * 9 = 6265787482177970379256224194341930332206694446810665274859598050801 +6265787482177970379256224194341930332206694446810665274859598050801 * 9 = 56392087339601733413306017749077372989860250021295987473736382457209 +56392087339601733413306017749077372989860250021295987473736382457209 * 9 = 507528786056415600719754159741696356908742250191663887263627442114881 +507528786056415600719754159741696356908742250191663887263627442114881 * 9 = 4567759074507740406477787437675267212178680251724974985372646979033929 +4567759074507740406477787437675267212178680251724974985372646979033929 * 9 = 41109831670569663658300086939077404909608122265524774868353822811305361 +41109831670569663658300086939077404909608122265524774868353822811305361 * 9 = 369988485035126972924700782451696644186473100389722973815184405301748249 +369988485035126972924700782451696644186473100389722973815184405301748249 * 9 = 3329896365316142756322307042065269797678257903507506764336659647715734241 +3329896365316142756322307042065269797678257903507506764336659647715734241 * 9 = 29969067287845284806900763378587428179104321131567560879029936829441608169 +29969067287845284806900763378587428179104321131567560879029936829441608169 * 9 = 269721605590607563262106870407286853611938890184108047911269431464974473521 +269721605590607563262106870407286853611938890184108047911269431464974473521 * 9 = 2427494450315468069358961833665581682507450011656972431201424883184770261689 +2427494450315468069358961833665581682507450011656972431201424883184770261689 * 9 = 21847450052839212624230656502990235142567050104912751880812823948662932355201 +21847450052839212624230656502990235142567050104912751880812823948662932355201 * 9 = 196627050475552913618075908526912116283103450944214766927315415537966391196809 +196627050475552913618075908526912116283103450944214766927315415537966391196809 * 9 = 1769643454279976222562683176742209046547931058497932902345838739841697520771281 +1769643454279976222562683176742209046547931058497932902345838739841697520771281 * 9 = 15926791088519786003064148590679881418931379526481396121112548658575277686941529 +15926791088519786003064148590679881418931379526481396121112548658575277686941529 * 9 = 143341119796678074027577337316118932770382415738332565090012937927177499182473761 +143341119796678074027577337316118932770382415738332565090012937927177499182473761 * 9 = 1290070078170102666248196035845070394933441741644993085810116441344597492642263849 +1290070078170102666248196035845070394933441741644993085810116441344597492642263849 * 9 = 11610630703530923996233764322605633554400975674804937772291047972101377433780374641 +11610630703530923996233764322605633554400975674804937772291047972101377433780374641 * 9 = 104495676331778315966103878903450701989608781073244439950619431748912396904023371769 +104495676331778315966103878903450701989608781073244439950619431748912396904023371769 * 9 = 940461086986004843694934910131056317906479029659199959555574885740211572136210345921 +940461086986004843694934910131056317906479029659199959555574885740211572136210345921 * 9 = 8464149782874043593254414191179506861158311266932799636000173971661904149225893113289 +8464149782874043593254414191179506861158311266932799636000173971661904149225893113289 * 9 = 76177348045866392339289727720615561750424801402395196724001565744957137343033038019601 +76177348045866392339289727720615561750424801402395196724001565744957137343033038019601 * 9 = 685596132412797531053607549485540055753823212621556770516014091704614236087297342176409 +685596132412797531053607549485540055753823212621556770516014091704614236087297342176409 * 9 = 6170365191715177779482467945369860501784408913594010934644126825341528124785676079587681 +6170365191715177779482467945369860501784408913594010934644126825341528124785676079587681 * 9 = 55533286725436600015342211508328744516059680222346098411797141428073753123071084716289129 +55533286725436600015342211508328744516059680222346098411797141428073753123071084716289129 * 9 = 499799580528929400138079903574958700644537122001114885706174272852663778107639762446602161 +499799580528929400138079903574958700644537122001114885706174272852663778107639762446602161 * 9 = 4498196224760364601242719132174628305800834098010033971355568455673974002968757862019419449 +4498196224760364601242719132174628305800834098010033971355568455673974002968757862019419449 * 9 = 40483766022843281411184472189571654752207506882090305742200116101065766026718820758174775041 +40483766022843281411184472189571654752207506882090305742200116101065766026718820758174775041 * 9 = 364353894205589532700660249706144892769867561938812751679801044909591894240469386823572975369 +364353894205589532700660249706144892769867561938812751679801044909591894240469386823572975369 * 9 = 3279185047850305794305942247355304034928808057449314765118209404186327048164224481412156778321 +3279185047850305794305942247355304034928808057449314765118209404186327048164224481412156778321 * 9 = 29512665430652752148753480226197736314359272517043832886063884637676943433478020332709411004889 +29512665430652752148753480226197736314359272517043832886063884637676943433478020332709411004889 * 9 = 265613988875874769338781322035779626829233452653394495974574961739092490901302182994384699044001 +1 * 10 = 10 +10 * 10 = 100 +100 * 10 = 1000 +1000 * 10 = 10000 +10000 * 10 = 100000 +100000 * 10 = 1000000 +1000000 * 10 = 10000000 +10000000 * 10 = 100000000 +100000000 * 10 = 1000000000 +1000000000 * 10 = 10000000000 +10000000000 * 10 = 100000000000 +100000000000 * 10 = 1000000000000 +1000000000000 * 10 = 10000000000000 +10000000000000 * 10 = 100000000000000 +100000000000000 * 10 = 1000000000000000 +1000000000000000 * 10 = 10000000000000000 +10000000000000000 * 10 = 100000000000000000 +100000000000000000 * 10 = 1000000000000000000 +1000000000000000000 * 10 = 10000000000000000000 +10000000000000000000 * 10 = 100000000000000000000 +100000000000000000000 * 10 = 1000000000000000000000 +1000000000000000000000 * 10 = 10000000000000000000000 +10000000000000000000000 * 10 = 100000000000000000000000 +100000000000000000000000 * 10 = 1000000000000000000000000 +1000000000000000000000000 * 10 = 10000000000000000000000000 +10000000000000000000000000 * 10 = 100000000000000000000000000 +100000000000000000000000000 * 10 = 1000000000000000000000000000 +1000000000000000000000000000 * 10 = 10000000000000000000000000000 +10000000000000000000000000000 * 10 = 100000000000000000000000000000 +100000000000000000000000000000 * 10 = 1000000000000000000000000000000 +1000000000000000000000000000000 * 10 = 10000000000000000000000000000000 +10000000000000000000000000000000 * 10 = 100000000000000000000000000000000 +100000000000000000000000000000000 * 10 = 1000000000000000000000000000000000 +1000000000000000000000000000000000 * 10 = 10000000000000000000000000000000000 +10000000000000000000000000000000000 * 10 = 100000000000000000000000000000000000 +100000000000000000000000000000000000 * 10 = 1000000000000000000000000000000000000 +1000000000000000000000000000000000000 * 10 = 10000000000000000000000000000000000000 +10000000000000000000000000000000000000 * 10 = 100000000000000000000000000000000000000 +100000000000000000000000000000000000000 * 10 = 1000000000000000000000000000000000000000 +1000000000000000000000000000000000000000 * 10 = 10000000000000000000000000000000000000000 +10000000000000000000000000000000000000000 * 10 = 100000000000000000000000000000000000000000 +100000000000000000000000000000000000000000 * 10 = 1000000000000000000000000000000000000000000 +1000000000000000000000000000000000000000000 * 10 = 10000000000000000000000000000000000000000000 +10000000000000000000000000000000000000000000 * 10 = 100000000000000000000000000000000000000000000 +100000000000000000000000000000000000000000000 * 10 = 1000000000000000000000000000000000000000000000 +1000000000000000000000000000000000000000000000 * 10 = 10000000000000000000000000000000000000000000000 +10000000000000000000000000000000000000000000000 * 10 = 100000000000000000000000000000000000000000000000 +100000000000000000000000000000000000000000000000 * 10 = 1000000000000000000000000000000000000000000000000 +1000000000000000000000000000000000000000000000000 * 10 = 10000000000000000000000000000000000000000000000000 +10000000000000000000000000000000000000000000000000 * 10 = 100000000000000000000000000000000000000000000000000 +100000000000000000000000000000000000000000000000000 * 10 = 1000000000000000000000000000000000000000000000000000 +1000000000000000000000000000000000000000000000000000 * 10 = 10000000000000000000000000000000000000000000000000000 +10000000000000000000000000000000000000000000000000000 * 10 = 100000000000000000000000000000000000000000000000000000 +100000000000000000000000000000000000000000000000000000 * 10 = 1000000000000000000000000000000000000000000000000000000 +1000000000000000000000000000000000000000000000000000000 * 10 = 10000000000000000000000000000000000000000000000000000000 +10000000000000000000000000000000000000000000000000000000 * 10 = 100000000000000000000000000000000000000000000000000000000 +100000000000000000000000000000000000000000000000000000000 * 10 = 1000000000000000000000000000000000000000000000000000000000 +1000000000000000000000000000000000000000000000000000000000 * 10 = 10000000000000000000000000000000000000000000000000000000000 +10000000000000000000000000000000000000000000000000000000000 * 10 = 100000000000000000000000000000000000000000000000000000000000 +100000000000000000000000000000000000000000000000000000000000 * 10 = 1000000000000000000000000000000000000000000000000000000000000 +1000000000000000000000000000000000000000000000000000000000000 * 10 = 10000000000000000000000000000000000000000000000000000000000000 +10000000000000000000000000000000000000000000000000000000000000 * 10 = 100000000000000000000000000000000000000000000000000000000000000 +100000000000000000000000000000000000000000000000000000000000000 * 10 = 1000000000000000000000000000000000000000000000000000000000000000 +1000000000000000000000000000000000000000000000000000000000000000 * 10 = 10000000000000000000000000000000000000000000000000000000000000000 +10000000000000000000000000000000000000000000000000000000000000000 * 10 = 100000000000000000000000000000000000000000000000000000000000000000 +100000000000000000000000000000000000000000000000000000000000000000 * 10 = 1000000000000000000000000000000000000000000000000000000000000000000 +1000000000000000000000000000000000000000000000000000000000000000000 * 10 = 10000000000000000000000000000000000000000000000000000000000000000000 +10000000000000000000000000000000000000000000000000000000000000000000 * 10 = 100000000000000000000000000000000000000000000000000000000000000000000 +100000000000000000000000000000000000000000000000000000000000000000000 * 10 = 1000000000000000000000000000000000000000000000000000000000000000000000 +1000000000000000000000000000000000000000000000000000000000000000000000 * 10 = 10000000000000000000000000000000000000000000000000000000000000000000000 +10000000000000000000000000000000000000000000000000000000000000000000000 * 10 = 100000000000000000000000000000000000000000000000000000000000000000000000 +100000000000000000000000000000000000000000000000000000000000000000000000 * 10 = 1000000000000000000000000000000000000000000000000000000000000000000000000 +1000000000000000000000000000000000000000000000000000000000000000000000000 * 10 = 10000000000000000000000000000000000000000000000000000000000000000000000000 +10000000000000000000000000000000000000000000000000000000000000000000000000 * 10 = 100000000000000000000000000000000000000000000000000000000000000000000000000 +100000000000000000000000000000000000000000000000000000000000000000000000000 * 10 = 1000000000000000000000000000000000000000000000000000000000000000000000000000 +1000000000000000000000000000000000000000000000000000000000000000000000000000 * 10 = 10000000000000000000000000000000000000000000000000000000000000000000000000000 +10000000000000000000000000000000000000000000000000000000000000000000000000000 * 10 = 100000000000000000000000000000000000000000000000000000000000000000000000000000 +100000000000000000000000000000000000000000000000000000000000000000000000000000 * 10 = 1000000000000000000000000000000000000000000000000000000000000000000000000000000 +1000000000000000000000000000000000000000000000000000000000000000000000000000000 * 10 = 10000000000000000000000000000000000000000000000000000000000000000000000000000000 +10000000000000000000000000000000000000000000000000000000000000000000000000000000 * 10 = 100000000000000000000000000000000000000000000000000000000000000000000000000000000 +100000000000000000000000000000000000000000000000000000000000000000000000000000000 * 10 = 1000000000000000000000000000000000000000000000000000000000000000000000000000000000 +1000000000000000000000000000000000000000000000000000000000000000000000000000000000 * 10 = 10000000000000000000000000000000000000000000000000000000000000000000000000000000000 +10000000000000000000000000000000000000000000000000000000000000000000000000000000000 * 10 = 100000000000000000000000000000000000000000000000000000000000000000000000000000000000 +100000000000000000000000000000000000000000000000000000000000000000000000000000000000 * 10 = 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +1000000000000000000000000000000000000000000000000000000000000000000000000000000000000 * 10 = 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +10000000000000000000000000000000000000000000000000000000000000000000000000000000000000 * 10 = 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +100000000000000000000000000000000000000000000000000000000000000000000000000000000000000 * 10 = 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 * 10 = 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 * 10 = 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 * 10 = 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 * 10 = 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 * 10 = 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 * 10 = 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 * 10 = 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 * 10 = 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 * 10 = 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 * 10 = 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 * 10 = 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 * 10 = 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 * 10 = 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +1099511627776 +-1099511627776 +-1099511627776 +1099511627776 +1208925819614629174706176 +-1208925819614629174706176 +-1208925819614629174706176 +1208925819614629174706176 diff --git a/micropython-tests/expected/basics/int_big_or.py.exp b/micropython-tests/expected/basics/int_big_or.py.exp new file mode 100644 index 0000000..7319a12 --- /dev/null +++ b/micropython-tests/expected/basics/int_big_or.py.exp @@ -0,0 +1,26 @@ +1208925819614629174706176 +1606938044258990275541962175417912339079445050270734102822911 +1208925819614629174706176 +1208925819614629174706176 +1208925819614629174706176 +83076749736557242056487941267521535 +1606938044258990275541962175417912339079445050270734102822911 +False +True +-1208925819614629174706176 +-1208925819614629174706176 +-83075482085957013827086444564316159 +-83076749736557242056487941267521535 +False +True +-1208925819614629174706176 +-1208925819614629174706176 +-1 +-1606938044258990275541962009264412865964960937294851567779841 +False +True +-1208925819614629174706176 +-1267650600228229401496703205375 +-83076749736557242056487941267521535 +False +True diff --git a/micropython-tests/expected/basics/int_big_or2.py.exp b/micropython-tests/expected/basics/int_big_or2.py.exp new file mode 100644 index 0000000..8e8d300 --- /dev/null +++ b/micropython-tests/expected/basics/int_big_or2.py.exp @@ -0,0 +1,16 @@ +105196490068183214437111132234614605901401810155564385142630201558 +90033472859572873781175965075003204787055267761500134681713049391 +105256838130134226045211793659922386845913663529727237752432132057 +23026611934452315910155743934200422383409193599783613719437475578 +103356570585136158203766140859807113268262790662801296853516114685 +64889361216009492422831728789873563603834539777070322287536758781 +86526825689187217371383854139783231460931720533100376593121673207 +40019818573920230246248826511203818792007462193311949175765487483 +-16509706870904453163626762958194804027998331835477874814165786818 +-826167218176432341381411866253943727938534781225878337454933547 +-19366950239223437029736033175920124264919717417200373318528820249 +-13986991198680933545884456928339611323258017233676655200904938130 +-1286266025055987177267690418091750675268380957164598690444300929 +-25742394324673393688265194053057998241680479994900538278400173 +-269164551 +-8389411 diff --git a/micropython-tests/expected/basics/int_big_or3.py.exp b/micropython-tests/expected/basics/int_big_or3.py.exp new file mode 100644 index 0000000..28e6194 --- /dev/null +++ b/micropython-tests/expected/basics/int_big_or3.py.exp @@ -0,0 +1,16 @@ +-81479806518317862858524683604534816125294500052077550346799810578 +-52990913910665466292876851687176964357388066811456533552051808515 +-6800561803363933669072941031780855072793287093529916441569006247 +-7098389108624043521377613575312215903246780051896326073164328006 +-39541127397278180078220585826134587559862942087243821390716471345 +-5155270765547012330447679185042587226946680245922218484443646275 +-14729761 +-40019818573920230246248826511203818792007462193311949166277577731 +-7206976678960898414959685671884985748108978268008959981664604162 +-36216391730730975146917701521572296701728666168817722792206307329 +-79089326087546855346402819452221407508200659018996947992334305561 +-1941231627147338842893673430548595156904396314210632445368209442 +-62529177162801990948277864615580775033131467618392876772355342411 +-59708348056137806698695784410777918378646179051153203264814712333 +-86526825689187217371383854139783231460931720533100376592837778897 +-9479520341 diff --git a/micropython-tests/expected/basics/int_big_pow.py.exp b/micropython-tests/expected/basics/int_big_pow.py.exp new file mode 100644 index 0000000..ad644e0 --- /dev/null +++ b/micropython-tests/expected/basics/int_big_pow.py.exp @@ -0,0 +1,4 @@ +0 +1 +36893488147419103232 +1361129467683753853853498429727072845824 diff --git a/micropython-tests/expected/basics/int_big_rshift.py.exp b/micropython-tests/expected/basics/int_big_rshift.py.exp new file mode 100644 index 0000000..45b5939 --- /dev/null +++ b/micropython-tests/expected/basics/int_big_rshift.py.exp @@ -0,0 +1,4 @@ +61728394506172839450617283945 +0 +-1 +-4294967296 diff --git a/micropython-tests/expected/basics/int_big_unary.py.exp b/micropython-tests/expected/basics/int_big_unary.py.exp new file mode 100644 index 0000000..fe31e06 --- /dev/null +++ b/micropython-tests/expected/basics/int_big_unary.py.exp @@ -0,0 +1,4 @@ +True +36893488147419103232 +-36893488147419103232 +-36893488147419103233 diff --git a/micropython-tests/expected/basics/int_big_xor.py.exp b/micropython-tests/expected/basics/int_big_xor.py.exp new file mode 100644 index 0000000..0b659d9 --- /dev/null +++ b/micropython-tests/expected/basics/int_big_xor.py.exp @@ -0,0 +1,25 @@ +1208925819614629174706176 +0 +1208925819614629174706176 +83075482085957013827086444564316159 +1606938044258990275541962175417912339079445050270734102822911 +True +False +-2417851639229258349412352 +-1208925819614629174706176 +-83075482085957013827086444564316159 +-1606938044258990275541962175417912339079445050270734102822911 +False +True +-18446744073709551616 +-1208925819614629174706176 +-2417851639229258349412352 +-83075482085957013827086444564316161 +-1606938044258990275541962009264412865964960937294851567779841 +False +True +0 +83075482085957013827086444564316161 +1606938044258990275541962009264412865964960937294851567779841 +True +False diff --git a/micropython-tests/expected/basics/int_big_xor2.py.exp b/micropython-tests/expected/basics/int_big_xor2.py.exp new file mode 100644 index 0000000..65bce4b --- /dev/null +++ b/micropython-tests/expected/basics/int_big_xor2.py.exp @@ -0,0 +1,16 @@ +88686783197278761273484369276419801873403478320086510328464414738 +89207305641396441439794553208749261059116732980274256344258115847 +85889887890910789015475760484002262580993946112526864433903311769 +9039620735771382364271287005860811060151176366106958518532537450 +102070304560080171026498450441715362592994409705636698163071813757 +64863618821684819029143463595820505605592859297075421749258358621 +86526825689187217371383854139783231460931720533100376592852508656 +40019818573920230246248826511203818792007462193311949175757098067 +88686783197278761273484369276419801873403478320086510328464414742 +89207305641396441439794553208749261059116732980274256344258115841 +85889887890910789015475760484002262580993946112526864433903311847 +9039620735771382364271287005860811060151176366106958518532537446 +102070304560080171026498450441715362592994409705636698163071813755 +64863618821684819029143463595820505605592859297075421749258358595 +86526825689187217371383854139783231460931720533100376592852508656 +40019818573920230246248826511203818792007462193311949175757098077 diff --git a/micropython-tests/expected/basics/int_big_xor3.py.exp b/micropython-tests/expected/basics/int_big_xor3.py.exp new file mode 100644 index 0000000..e66f3ec --- /dev/null +++ b/micropython-tests/expected/basics/int_big_xor3.py.exp @@ -0,0 +1,16 @@ +-88686783197278761273484369276419801873403478320086510328464414742 +-89207305641396441439794553208749261059116732980274256344258115847 +-85889887890910789015475760484002262580993946112526864433903311847 +-9039620735771382364271287005860811060151176366106958518532537446 +-102070304560080171026498450441715362592994409705636698163071813757 +-64863618821684819029143463595820505605592859297075421749258358595 +-86526825689187217371383854139783231460931720533100376592852508658 +-40019818573920230246248826511203818792007462193311949175757098067 +-88686783197278761273484369276419801873403478320086510328464414738 +-89207305641396441439794553208749261059116732980274256344258115841 +-85889887890910789015475760484002262580993946112526864433903311769 +-9039620735771382364271287005860811060151176366106958518532537450 +-102070304560080171026498450441715362592994409705636698163071813755 +-64863618821684819029143463595820505605592859297075421749258358621 +-86526825689187217371383854139783231460931720533100376592852508658 +-40019818573920230246248826511203818792007462193311949175757098077 diff --git a/micropython-tests/expected/basics/int_big_zeroone.py.exp b/micropython-tests/expected/basics/int_big_zeroone.py.exp new file mode 100644 index 0000000..b4a4f2b --- /dev/null +++ b/micropython-tests/expected/basics/int_big_zeroone.py.exp @@ -0,0 +1,1874 @@ +[0, 0, 1, -1] +[0, 0, -1, 1] +[-1, -1, -2, 0] +[0, 0, 0, -1] +[0, 0, 2, -2] +True +True +True +True +True +False +False +True +True +False +False +True +(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) +-0 = 0 +~0 = -1 +0 >> 1 = 0 +0 << 1 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 1 = False +0 + 1 = 1 +0 - 1 = -1 +0 * 1 = 0 +0 | 1 = 1 +0 & 1 = 0 +0 ^ 1 = 1 +0 == -1 = False +0 + -1 = -1 +0 - -1 = 1 +0 * -1 = 0 +0 | -1 = -1 +0 & -1 = 0 +0 ^ -1 = -1 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +-1 = -1 +~1 = -2 +1 >> 1 = 0 +1 << 1 = 2 +1 == 0 = False +1 + 0 = 1 +1 - 0 = 1 +1 * 0 = 0 +1 | 0 = 1 +1 & 0 = 0 +1 ^ 0 = 1 +1 == 1 = True +1 + 1 = 2 +1 - 1 = 0 +1 * 1 = 1 +1 | 1 = 1 +1 & 1 = 1 +1 ^ 1 = 0 +1 == -1 = False +1 + -1 = 0 +1 - -1 = 2 +1 * -1 = -1 +1 | -1 = -1 +1 & -1 = 1 +1 ^ -1 = -2 +1 == 0 = False +1 + 0 = 1 +1 - 0 = 1 +1 * 0 = 0 +1 | 0 = 1 +1 & 0 = 0 +1 ^ 0 = 1 +1 == 0 = False +1 + 0 = 1 +1 - 0 = 1 +1 * 0 = 0 +1 | 0 = 1 +1 & 0 = 0 +1 ^ 0 = 1 +1 == 0 = False +1 + 0 = 1 +1 - 0 = 1 +1 * 0 = 0 +1 | 0 = 1 +1 & 0 = 0 +1 ^ 0 = 1 +1 == 0 = False +1 + 0 = 1 +1 - 0 = 1 +1 * 0 = 0 +1 | 0 = 1 +1 & 0 = 0 +1 ^ 0 = 1 +1 == 0 = False +1 + 0 = 1 +1 - 0 = 1 +1 * 0 = 0 +1 | 0 = 1 +1 & 0 = 0 +1 ^ 0 = 1 +1 == 0 = False +1 + 0 = 1 +1 - 0 = 1 +1 * 0 = 0 +1 | 0 = 1 +1 & 0 = 0 +1 ^ 0 = 1 +1 == 0 = False +1 + 0 = 1 +1 - 0 = 1 +1 * 0 = 0 +1 | 0 = 1 +1 & 0 = 0 +1 ^ 0 = 1 +1 == 0 = False +1 + 0 = 1 +1 - 0 = 1 +1 * 0 = 0 +1 | 0 = 1 +1 & 0 = 0 +1 ^ 0 = 1 +1 == 0 = False +1 + 0 = 1 +1 - 0 = 1 +1 * 0 = 0 +1 | 0 = 1 +1 & 0 = 0 +1 ^ 0 = 1 +1 == 0 = False +1 + 0 = 1 +1 - 0 = 1 +1 * 0 = 0 +1 | 0 = 1 +1 & 0 = 0 +1 ^ 0 = 1 +1 == 0 = False +1 + 0 = 1 +1 - 0 = 1 +1 * 0 = 0 +1 | 0 = 1 +1 & 0 = 0 +1 ^ 0 = 1 +1 == 0 = False +1 + 0 = 1 +1 - 0 = 1 +1 * 0 = 0 +1 | 0 = 1 +1 & 0 = 0 +1 ^ 0 = 1 +1 == 0 = False +1 + 0 = 1 +1 - 0 = 1 +1 * 0 = 0 +1 | 0 = 1 +1 & 0 = 0 +1 ^ 0 = 1 +--1 = 1 +~-1 = 0 +-1 >> 1 = -1 +-1 << 1 = -2 +-1 == 0 = False +-1 + 0 = -1 +-1 - 0 = -1 +-1 * 0 = 0 +-1 | 0 = -1 +-1 & 0 = 0 +-1 ^ 0 = -1 +-1 == 1 = False +-1 + 1 = 0 +-1 - 1 = -2 +-1 * 1 = -1 +-1 | 1 = -1 +-1 & 1 = 1 +-1 ^ 1 = -2 +-1 == -1 = True +-1 + -1 = -2 +-1 - -1 = 0 +-1 * -1 = 1 +-1 | -1 = -1 +-1 & -1 = -1 +-1 ^ -1 = 0 +-1 == 0 = False +-1 + 0 = -1 +-1 - 0 = -1 +-1 * 0 = 0 +-1 | 0 = -1 +-1 & 0 = 0 +-1 ^ 0 = -1 +-1 == 0 = False +-1 + 0 = -1 +-1 - 0 = -1 +-1 * 0 = 0 +-1 | 0 = -1 +-1 & 0 = 0 +-1 ^ 0 = -1 +-1 == 0 = False +-1 + 0 = -1 +-1 - 0 = -1 +-1 * 0 = 0 +-1 | 0 = -1 +-1 & 0 = 0 +-1 ^ 0 = -1 +-1 == 0 = False +-1 + 0 = -1 +-1 - 0 = -1 +-1 * 0 = 0 +-1 | 0 = -1 +-1 & 0 = 0 +-1 ^ 0 = -1 +-1 == 0 = False +-1 + 0 = -1 +-1 - 0 = -1 +-1 * 0 = 0 +-1 | 0 = -1 +-1 & 0 = 0 +-1 ^ 0 = -1 +-1 == 0 = False +-1 + 0 = -1 +-1 - 0 = -1 +-1 * 0 = 0 +-1 | 0 = -1 +-1 & 0 = 0 +-1 ^ 0 = -1 +-1 == 0 = False +-1 + 0 = -1 +-1 - 0 = -1 +-1 * 0 = 0 +-1 | 0 = -1 +-1 & 0 = 0 +-1 ^ 0 = -1 +-1 == 0 = False +-1 + 0 = -1 +-1 - 0 = -1 +-1 * 0 = 0 +-1 | 0 = -1 +-1 & 0 = 0 +-1 ^ 0 = -1 +-1 == 0 = False +-1 + 0 = -1 +-1 - 0 = -1 +-1 * 0 = 0 +-1 | 0 = -1 +-1 & 0 = 0 +-1 ^ 0 = -1 +-1 == 0 = False +-1 + 0 = -1 +-1 - 0 = -1 +-1 * 0 = 0 +-1 | 0 = -1 +-1 & 0 = 0 +-1 ^ 0 = -1 +-1 == 0 = False +-1 + 0 = -1 +-1 - 0 = -1 +-1 * 0 = 0 +-1 | 0 = -1 +-1 & 0 = 0 +-1 ^ 0 = -1 +-1 == 0 = False +-1 + 0 = -1 +-1 - 0 = -1 +-1 * 0 = 0 +-1 | 0 = -1 +-1 & 0 = 0 +-1 ^ 0 = -1 +-1 == 0 = False +-1 + 0 = -1 +-1 - 0 = -1 +-1 * 0 = 0 +-1 | 0 = -1 +-1 & 0 = 0 +-1 ^ 0 = -1 +-0 = 0 +~0 = -1 +0 >> 1 = 0 +0 << 1 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 1 = False +0 + 1 = 1 +0 - 1 = -1 +0 * 1 = 0 +0 | 1 = 1 +0 & 1 = 0 +0 ^ 1 = 1 +0 == -1 = False +0 + -1 = -1 +0 - -1 = 1 +0 * -1 = 0 +0 | -1 = -1 +0 & -1 = 0 +0 ^ -1 = -1 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +-0 = 0 +~0 = -1 +0 >> 1 = 0 +0 << 1 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 1 = False +0 + 1 = 1 +0 - 1 = -1 +0 * 1 = 0 +0 | 1 = 1 +0 & 1 = 0 +0 ^ 1 = 1 +0 == -1 = False +0 + -1 = -1 +0 - -1 = 1 +0 * -1 = 0 +0 | -1 = -1 +0 & -1 = 0 +0 ^ -1 = -1 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +-0 = 0 +~0 = -1 +0 >> 1 = 0 +0 << 1 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 1 = False +0 + 1 = 1 +0 - 1 = -1 +0 * 1 = 0 +0 | 1 = 1 +0 & 1 = 0 +0 ^ 1 = 1 +0 == -1 = False +0 + -1 = -1 +0 - -1 = 1 +0 * -1 = 0 +0 | -1 = -1 +0 & -1 = 0 +0 ^ -1 = -1 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +-0 = 0 +~0 = -1 +0 >> 1 = 0 +0 << 1 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 1 = False +0 + 1 = 1 +0 - 1 = -1 +0 * 1 = 0 +0 | 1 = 1 +0 & 1 = 0 +0 ^ 1 = 1 +0 == -1 = False +0 + -1 = -1 +0 - -1 = 1 +0 * -1 = 0 +0 | -1 = -1 +0 & -1 = 0 +0 ^ -1 = -1 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +-0 = 0 +~0 = -1 +0 >> 1 = 0 +0 << 1 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 1 = False +0 + 1 = 1 +0 - 1 = -1 +0 * 1 = 0 +0 | 1 = 1 +0 & 1 = 0 +0 ^ 1 = 1 +0 == -1 = False +0 + -1 = -1 +0 - -1 = 1 +0 * -1 = 0 +0 | -1 = -1 +0 & -1 = 0 +0 ^ -1 = -1 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +-0 = 0 +~0 = -1 +0 >> 1 = 0 +0 << 1 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 1 = False +0 + 1 = 1 +0 - 1 = -1 +0 * 1 = 0 +0 | 1 = 1 +0 & 1 = 0 +0 ^ 1 = 1 +0 == -1 = False +0 + -1 = -1 +0 - -1 = 1 +0 * -1 = 0 +0 | -1 = -1 +0 & -1 = 0 +0 ^ -1 = -1 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +-0 = 0 +~0 = -1 +0 >> 1 = 0 +0 << 1 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 1 = False +0 + 1 = 1 +0 - 1 = -1 +0 * 1 = 0 +0 | 1 = 1 +0 & 1 = 0 +0 ^ 1 = 1 +0 == -1 = False +0 + -1 = -1 +0 - -1 = 1 +0 * -1 = 0 +0 | -1 = -1 +0 & -1 = 0 +0 ^ -1 = -1 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +-0 = 0 +~0 = -1 +0 >> 1 = 0 +0 << 1 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 1 = False +0 + 1 = 1 +0 - 1 = -1 +0 * 1 = 0 +0 | 1 = 1 +0 & 1 = 0 +0 ^ 1 = 1 +0 == -1 = False +0 + -1 = -1 +0 - -1 = 1 +0 * -1 = 0 +0 | -1 = -1 +0 & -1 = 0 +0 ^ -1 = -1 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +-0 = 0 +~0 = -1 +0 >> 1 = 0 +0 << 1 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 1 = False +0 + 1 = 1 +0 - 1 = -1 +0 * 1 = 0 +0 | 1 = 1 +0 & 1 = 0 +0 ^ 1 = 1 +0 == -1 = False +0 + -1 = -1 +0 - -1 = 1 +0 * -1 = 0 +0 | -1 = -1 +0 & -1 = 0 +0 ^ -1 = -1 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +-0 = 0 +~0 = -1 +0 >> 1 = 0 +0 << 1 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 1 = False +0 + 1 = 1 +0 - 1 = -1 +0 * 1 = 0 +0 | 1 = 1 +0 & 1 = 0 +0 ^ 1 = 1 +0 == -1 = False +0 + -1 = -1 +0 - -1 = 1 +0 * -1 = 0 +0 | -1 = -1 +0 & -1 = 0 +0 ^ -1 = -1 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +-0 = 0 +~0 = -1 +0 >> 1 = 0 +0 << 1 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 1 = False +0 + 1 = 1 +0 - 1 = -1 +0 * 1 = 0 +0 | 1 = 1 +0 & 1 = 0 +0 ^ 1 = 1 +0 == -1 = False +0 + -1 = -1 +0 - -1 = 1 +0 * -1 = 0 +0 | -1 = -1 +0 & -1 = 0 +0 ^ -1 = -1 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +-0 = 0 +~0 = -1 +0 >> 1 = 0 +0 << 1 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 1 = False +0 + 1 = 1 +0 - 1 = -1 +0 * 1 = 0 +0 | 1 = 1 +0 & 1 = 0 +0 ^ 1 = 1 +0 == -1 = False +0 + -1 = -1 +0 - -1 = 1 +0 * -1 = 0 +0 | -1 = -1 +0 & -1 = 0 +0 ^ -1 = -1 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +-0 = 0 +~0 = -1 +0 >> 1 = 0 +0 << 1 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 1 = False +0 + 1 = 1 +0 - 1 = -1 +0 * 1 = 0 +0 | 1 = 1 +0 & 1 = 0 +0 ^ 1 = 1 +0 == -1 = False +0 + -1 = -1 +0 - -1 = 1 +0 * -1 = 0 +0 | -1 = -1 +0 & -1 = 0 +0 ^ -1 = -1 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 +0 == 0 = True +0 + 0 = 0 +0 - 0 = 0 +0 * 0 = 0 +0 | 0 = 0 +0 & 0 = 0 +0 ^ 0 = 0 diff --git a/micropython-tests/expected/basics/int_bytes.py.exp b/micropython-tests/expected/basics/int_bytes.py.exp new file mode 100644 index 0000000..356f152 --- /dev/null +++ b/micropython-tests/expected/basics/int_bytes.py.exp @@ -0,0 +1,13 @@ +b'\n' +b'\x07\xb2\x01\x00' +b'd\x00\x00\x00\x00\x00\x00\x00\x00\x00' +256 +1 +256 +True +True +b'\n' +b'\x00\x00\x00\x00\x00\x00\x00\x00\x00d' +1 +256 +ValueError diff --git a/micropython-tests/expected/basics/int_bytes_intbig.py.exp b/micropython-tests/expected/basics/int_bytes_intbig.py.exp new file mode 100644 index 0000000..1223368 --- /dev/null +++ b/micropython-tests/expected/basics/int_bytes_intbig.py.exp @@ -0,0 +1,7 @@ +b'\x00\x00\x00\x00\x00\x00\x00\x00\x01' +b'\x01\x00\x00\x00\x00\x00\x00\x00\x00' +108873724432616589554458274966207996112469623040 +22475995960490625424124334220934763854762515 +b'\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\x0c\r\x0e\x0f\x10\x11\x12\x13' +b'\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\x0c\r\x0e\x0f\x10\x11\x12\x13' +True diff --git a/micropython-tests/expected/basics/int_constfolding.py.exp b/micropython-tests/expected/basics/int_constfolding.py.exp new file mode 100644 index 0000000..ce31ede --- /dev/null +++ b/micropython-tests/expected/basics/int_constfolding.py.exp @@ -0,0 +1,19 @@ +1 +100 +-1 +1 +-1 +-2 +0 +3 +-1 +1 +2 +56088 +17 4 +-18 3 +-18 -3 +17 -4 +8 +81 +ValueError diff --git a/micropython-tests/expected/basics/int_constfolding_intbig.py.exp b/micropython-tests/expected/basics/int_constfolding_intbig.py.exp new file mode 100644 index 0000000..f8960e2 --- /dev/null +++ b/micropython-tests/expected/basics/int_constfolding_intbig.py.exp @@ -0,0 +1,10 @@ +-1073741823 +-4611686018427387903 +1073741824 +4611686018427387904 +-1073741824 +-4611686018427387904 +1073741823 +4611686018427387903 +1 +-36893488147419103231 diff --git a/micropython-tests/expected/basics/int_divmod.py.exp b/micropython-tests/expected/basics/int_divmod.py.exp new file mode 100644 index 0000000..98b8e2c --- /dev/null +++ b/micropython-tests/expected/basics/int_divmod.py.exp @@ -0,0 +1,40 @@ +-2 -4 0 -2 (0, -2) +-2 -3 0 -2 (0, -2) +-2 -2 1 0 (1, 0) +-2 -1 2 0 (2, 0) +-2 1 -2 0 (-2, 0) +-2 2 -1 0 (-1, 0) +-2 3 -1 1 (-1, 1) +-2 4 -1 2 (-1, 2) +-1 -4 0 -1 (0, -1) +-1 -3 0 -1 (0, -1) +-1 -2 0 -1 (0, -1) +-1 -1 1 0 (1, 0) +-1 1 -1 0 (-1, 0) +-1 2 -1 1 (-1, 1) +-1 3 -1 2 (-1, 2) +-1 4 -1 3 (-1, 3) +0 -4 0 0 (0, 0) +0 -3 0 0 (0, 0) +0 -2 0 0 (0, 0) +0 -1 0 0 (0, 0) +0 1 0 0 (0, 0) +0 2 0 0 (0, 0) +0 3 0 0 (0, 0) +0 4 0 0 (0, 0) +1 -4 -1 -3 (-1, -3) +1 -3 -1 -2 (-1, -2) +1 -2 -1 -1 (-1, -1) +1 -1 -1 0 (-1, 0) +1 1 1 0 (1, 0) +1 2 0 1 (0, 1) +1 3 0 1 (0, 1) +1 4 0 1 (0, 1) +2 -4 -1 -2 (-1, -2) +2 -3 -1 -1 (-1, -1) +2 -2 -1 0 (-1, 0) +2 -1 -2 0 (-2, 0) +2 1 2 0 (2, 0) +2 2 1 0 (1, 0) +2 3 0 2 (0, 2) +2 4 0 2 (0, 2) diff --git a/micropython-tests/expected/basics/int_divmod_intbig.py.exp b/micropython-tests/expected/basics/int_divmod_intbig.py.exp new file mode 100644 index 0000000..26c63ca --- /dev/null +++ b/micropython-tests/expected/basics/int_divmod_intbig.py.exp @@ -0,0 +1,4 @@ +7 +-12 +12 +-7 diff --git a/micropython-tests/expected/basics/int_divzero.py.exp b/micropython-tests/expected/basics/int_divzero.py.exp new file mode 100644 index 0000000..fa59c89 --- /dev/null +++ b/micropython-tests/expected/basics/int_divzero.py.exp @@ -0,0 +1,2 @@ +ZeroDivisionError +ZeroDivisionError diff --git a/micropython-tests/expected/basics/int_intbig.py.exp b/micropython-tests/expected/basics/int_intbig.py.exp new file mode 100644 index 0000000..7434da0 --- /dev/null +++ b/micropython-tests/expected/basics/int_intbig.py.exp @@ -0,0 +1,27 @@ +8589934591 +4294967296 +12884901887 +4294967295 +-4294967295 +1 +4294967295 +& 4294967296 +8589934591 +4294967295 +68719476728 +4294967295 +12884901887 +12884778431 +3311388056767 +12884778431 +4294843839 +8589811135 +8589811135 +&= 4294967296 +137438953472 +68719476736 +8589934592 +8589934591 +& 18446744073709551616 +36893488147419103231 +18446744073709551615 diff --git a/micropython-tests/expected/basics/int_small.py.exp b/micropython-tests/expected/basics/int_small.py.exp new file mode 100644 index 0000000..3542ceb --- /dev/null +++ b/micropython-tests/expected/basics/int_small.py.exp @@ -0,0 +1,37 @@ +0 +1 +-1 +63 +64 +65 +-63 +-64 +-65 +1073741823 +-1073741823 +4 +1 +6 +1 +3 +2 +3 +-3 +-4 +4194303 +67108848 +1073741568 +1073741823 +-4194303 +-67108848 +-1073741568 +-1073741823 +-1073741824 +ValueError +ValueError +0 +0 +0 +0 +0 +0 diff --git a/micropython-tests/expected/basics/is_isnot.py.exp b/micropython-tests/expected/basics/is_isnot.py.exp new file mode 100644 index 0000000..91d6f80 --- /dev/null +++ b/micropython-tests/expected/basics/is_isnot.py.exp @@ -0,0 +1,2 @@ +False +True diff --git a/micropython-tests/expected/basics/iter0.py.exp b/micropython-tests/expected/basics/iter0.py.exp new file mode 100644 index 0000000..66d77b5 --- /dev/null +++ b/micropython-tests/expected/basics/iter0.py.exp @@ -0,0 +1,2 @@ +TypeError +0 diff --git a/micropython-tests/expected/basics/iter1.py.exp b/micropython-tests/expected/basics/iter1.py.exp new file mode 100644 index 0000000..a0391e4 --- /dev/null +++ b/micropython-tests/expected/basics/iter1.py.exp @@ -0,0 +1,22 @@ +TypeError +TypeError +4 +3 +2 +1 +0 +11 +10 +21 +20 +raised TypeError +4 +raised StopIteration +31 +30 +raising MyStopIteration +(4, 3, 2, 1, 0) +(11, 10) +raising MyStopIteration +(31, 30) +raised TypeError diff --git a/micropython-tests/expected/basics/iter2.py.exp b/micropython-tests/expected/basics/iter2.py.exp new file mode 100644 index 0000000..b7f89a4 --- /dev/null +++ b/micropython-tests/expected/basics/iter2.py.exp @@ -0,0 +1,3 @@ +[] +[] +[] diff --git a/micropython-tests/expected/basics/iter_of_iter.py.exp b/micropython-tests/expected/basics/iter_of_iter.py.exp new file mode 100644 index 0000000..788232c --- /dev/null +++ b/micropython-tests/expected/basics/iter_of_iter.py.exp @@ -0,0 +1,3 @@ +[1, 2, 3] +[1, 2, 3] +[1, 3, 5] diff --git a/micropython-tests/expected/basics/lambda1.py.exp b/micropython-tests/expected/basics/lambda1.py.exp new file mode 100644 index 0000000..3c03207 --- /dev/null +++ b/micropython-tests/expected/basics/lambda1.py.exp @@ -0,0 +1 @@ +18 diff --git a/micropython-tests/expected/basics/lambda_defargs.py.exp b/micropython-tests/expected/basics/lambda_defargs.py.exp new file mode 100644 index 0000000..aa29a4b --- /dev/null +++ b/micropython-tests/expected/basics/lambda_defargs.py.exp @@ -0,0 +1,3 @@ +1 2 3 +y +(1, [1]) (2, [1]) (3, 4) (4, 5) diff --git a/micropython-tests/expected/basics/lexer.py.exp b/micropython-tests/expected/basics/lexer.py.exp new file mode 100644 index 0000000..7cea249 --- /dev/null +++ b/micropython-tests/expected/basics/lexer.py.exp @@ -0,0 +1,25 @@ + +1 +2 +3 +1 +12 +123 +1 +12 +123 +1 +12 +123 +123456 +123456 +123456 +123456 +123456 +123456 +ab +1 +SyntaxError +SyntaxError +SyntaxError +SyntaxError diff --git a/micropython-tests/expected/basics/list1.py.exp b/micropython-tests/expected/basics/list1.py.exp new file mode 100644 index 0000000..c24ed89 --- /dev/null +++ b/micropython-tests/expected/basics/list1.py.exp @@ -0,0 +1,9 @@ +[1, 2, 12] +[4, 2, 12] +[4, -2, 12] +[4, -2, 12, 5] +[4, -2, 12, 5, 4] +[4, -2, 12, 5, 4, 100, 200] +[4, -2, 12, 5, 4, 100, 200, 0, 1, 2] +[4, -2, 12, 5, 4, 100, 200, 0, 1, 2, 2, 1] +TypeError diff --git a/micropython-tests/expected/basics/list_clear.py.exp b/micropython-tests/expected/basics/list_clear.py.exp new file mode 100644 index 0000000..fe51488 --- /dev/null +++ b/micropython-tests/expected/basics/list_clear.py.exp @@ -0,0 +1 @@ +[] diff --git a/micropython-tests/expected/basics/list_compare.py.exp b/micropython-tests/expected/basics/list_compare.py.exp new file mode 100644 index 0000000..fb0c66a --- /dev/null +++ b/micropython-tests/expected/basics/list_compare.py.exp @@ -0,0 +1,49 @@ +True +False +False +False +False +False +True +True +False +False +True +True +False +True +False +False +False +False +False +True +True +True +False +False +False +False +True +True +True +False +False +True +False +True +True +True +False +False +True +False +True +True +True +False +False +False +True +False +TypeError diff --git a/micropython-tests/expected/basics/list_copy.py.exp b/micropython-tests/expected/basics/list_copy.py.exp new file mode 100644 index 0000000..820f324 --- /dev/null +++ b/micropython-tests/expected/basics/list_copy.py.exp @@ -0,0 +1,2 @@ +[1, 2, [1], 4] +[1, 2, [1]] diff --git a/micropython-tests/expected/basics/list_count.py.exp b/micropython-tests/expected/basics/list_count.py.exp new file mode 100644 index 0000000..f1e5eee --- /dev/null +++ b/micropython-tests/expected/basics/list_count.py.exp @@ -0,0 +1,2 @@ +3 +2 diff --git a/micropython-tests/expected/basics/list_extend.py.exp b/micropython-tests/expected/basics/list_extend.py.exp new file mode 100644 index 0000000..7c1a6f6 --- /dev/null +++ b/micropython-tests/expected/basics/list_extend.py.exp @@ -0,0 +1,10 @@ +[1, 2] +[1, 2, 3] +[1, 2, 3, 4, 5] +[1, 2, 3, 4, 5, 6, 7, 8, 9] +[1, 2, 3, 4, 5, 6, 7, 8, 9, 'a', 'b', 'c'] +[1, 2] +[1, 2, 3] +[1, 2, 3, 4, 5] +[1, 2, 3, 4, 5, 6, 7, 8, 9] +[1, 2, 3, 4, 5, 6, 7, 8, 9, 'a', 'b', 'c'] diff --git a/micropython-tests/expected/basics/list_index.py.exp b/micropython-tests/expected/basics/list_index.py.exp new file mode 100644 index 0000000..a16ce6e --- /dev/null +++ b/micropython-tests/expected/basics/list_index.py.exp @@ -0,0 +1,13 @@ +0 +1 +2 +2 +0 +0 +Raised ValueError +Raised ValueError +1 +2 +4 +Raised ValueError +0 diff --git a/micropython-tests/expected/basics/list_insert.py.exp b/micropython-tests/expected/basics/list_insert.py.exp new file mode 100644 index 0000000..e7e1763 --- /dev/null +++ b/micropython-tests/expected/basics/list_insert.py.exp @@ -0,0 +1,4 @@ +[1, 42, 2, 3] +[1, 42, 2, -1, 3] +[1, 42, 2, -1, 3, 99] +[-99, 1, 42, 2, -1, 3, 99] diff --git a/micropython-tests/expected/basics/list_mult.py.exp b/micropython-tests/expected/basics/list_mult.py.exp new file mode 100644 index 0000000..82a39a6 --- /dev/null +++ b/micropython-tests/expected/basics/list_mult.py.exp @@ -0,0 +1,13 @@ +[0, 0, 0, 0, 0] +[] +[] +[] +[] +[] +[] +[1, 2, 1, 2] +[1, 2, 1, 2] +[1, 2, 1, 2, 1, 2, 1, 2] +[1, 2, 1, 2, 1, 2, 1, 2] +[1, 2, 3] [1, 2, 3, 1, 2, 3, 1, 2, 3] +TypeError diff --git a/micropython-tests/expected/basics/list_pop.py.exp b/micropython-tests/expected/basics/list_pop.py.exp new file mode 100644 index 0000000..58398de --- /dev/null +++ b/micropython-tests/expected/basics/list_pop.py.exp @@ -0,0 +1,5 @@ +3 +2 +1 +IndexError raised +[] diff --git a/micropython-tests/expected/basics/list_remove.py.exp b/micropython-tests/expected/basics/list_remove.py.exp new file mode 100644 index 0000000..3741b86 --- /dev/null +++ b/micropython-tests/expected/basics/list_remove.py.exp @@ -0,0 +1,3 @@ +None +[1, 3] +Raised ValueError diff --git a/micropython-tests/expected/basics/list_reverse.py.exp b/micropython-tests/expected/basics/list_reverse.py.exp new file mode 100644 index 0000000..ec04442 --- /dev/null +++ b/micropython-tests/expected/basics/list_reverse.py.exp @@ -0,0 +1 @@ +[99, 97, 95, 93, 91, 89, 87, 85, 83, 81, 79, 77, 75, 73, 71, 69, 67, 65, 63, 61, 59, 57, 55, 53, 51, 49, 47, 45, 43, 41, 39, 37, 35, 33, 31, 29, 27, 25, 23, 21, 19, 17, 15, 13, 11, 9, 7, 5, 3, 1, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98] diff --git a/micropython-tests/expected/basics/list_slice.py.exp b/micropython-tests/expected/basics/list_slice.py.exp new file mode 100644 index 0000000..150da22 --- /dev/null +++ b/micropython-tests/expected/basics/list_slice.py.exp @@ -0,0 +1,19 @@ +[1, 2, 3, 4, 5, 6, 7, 8, 9] +[0, 1, 2, 3, 4, 5, 6, 7, 8] +[2] +[0, 1, 2, 3, 4, 5, 6, 7, 8, 9] +[0, 1, 2, 3, 4, 5, 6, 7, 8, 9] +[0, 3, 6, 9] +[0, 1, 2, 3] +[0, 1, 2, 3] +[0, 3] +2 +[2, 3, 4, 5, 6, 7, 8, 9] +[2, 3, 4, 5, 6, 7, 8, 9] +[2, 5, 8] +[2, 3] +[2, 3] +[2] +[] +[] +ValueError diff --git a/micropython-tests/expected/basics/list_slice_3arg.py.exp b/micropython-tests/expected/basics/list_slice_3arg.py.exp new file mode 100644 index 0000000..20dc255 --- /dev/null +++ b/micropython-tests/expected/basics/list_slice_3arg.py.exp @@ -0,0 +1,28 @@ +[9, 8, 7, 6, 5, 4, 3, 2, 1, 0] +[0, 2, 4, 6, 8] +[9, 7, 5, 3, 1] +[8, 7, 6, 5, 4, 3, 2, 1, 0] +[0, 2, 4, 6, 8] +[8, 6, 4, 2, 0] +[4, 3, 2, 1] +[4, 3, 2] +[4, 3] +[0] +[1, 0] +[2, 1, 0] +[] +[] +[] +[] +[9] +[9, 8, 7, 6, 5, 4, 3, 2, 1, 0] +[0] +[9, 8, 7, 6, 5, 4, 3, 2, 1, 0] +[] +[1] +[] +[1] +[] +[1] +[] +[] diff --git a/micropython-tests/expected/basics/list_slice_assign.py.exp b/micropython-tests/expected/basics/list_slice_assign.py.exp new file mode 100644 index 0000000..8306de2 --- /dev/null +++ b/micropython-tests/expected/basics/list_slice_assign.py.exp @@ -0,0 +1,12 @@ +[0, 10, 20, 3, 4, 5, 6, 7, 8, 9] +[0, 10, 3, 4, 5, 6, 7, 8, 9] +[0, 3, 4, 5, 6, 7, 8, 9] +[0, 3, 4, 5, 6, 7, 8, 9] +[10, 20, 3, 4, 5, 6, 7, 8, 9] +[3, 4, 5, 6, 7, 8, 9] +[3, 4, 5, 6, 7, 8, 9] +[10, 20, 7, 8, 9] +[7, 8, 9] +[7, 8, 9] +[10, 11, 12, 2, 3] +TypeError diff --git a/micropython-tests/expected/basics/list_slice_assign_grow.py.exp b/micropython-tests/expected/basics/list_slice_assign_grow.py.exp new file mode 100644 index 0000000..85f9d16 --- /dev/null +++ b/micropython-tests/expected/basics/list_slice_assign_grow.py.exp @@ -0,0 +1,8 @@ +[10, 0, 1] +[10, 20, 0, 1] +[10, 20, 30, 40, 0, 1] +[0, 10, 20, 30, 40, 1] +[0, 1, 10, 20, 30, 40] +[0, 10, 20, 30, 40, 1] +[0, 1, 10, 20, 30, 40] +[0, 1, 2, 3, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9] diff --git a/micropython-tests/expected/basics/list_sort.py.exp b/micropython-tests/expected/basics/list_sort.py.exp new file mode 100644 index 0000000..e05c4c5 --- /dev/null +++ b/micropython-tests/expected/basics/list_sort.py.exp @@ -0,0 +1,21 @@ +[1, 3, 2, 5] +[1, 2, 3, 5] +[1, 2, 3, 5] +True +[5, 3, 2, 1] +[5, 3, 2, 1] +True +[1, 2, 3, 5] +[1, 2, 3, 5] +True +[5, 3, 2, 1] +[5, 3, 2, 1] +True +[1, 2, 3, 5] +[1, 2, 3, 5] +True +0 199 +199 0 +[5, 2, 1, 3, 4] +[5, 4, 3, 2, 1] +[1, 2, 3, 4, 5] diff --git a/micropython-tests/expected/basics/list_sum.py.exp b/micropython-tests/expected/basics/list_sum.py.exp new file mode 100644 index 0000000..73ee80f --- /dev/null +++ b/micropython-tests/expected/basics/list_sum.py.exp @@ -0,0 +1 @@ +[1, 2, 3, 4, 5, 6] diff --git a/micropython-tests/expected/basics/logic_constfolding.py.exp b/micropython-tests/expected/basics/logic_constfolding.py.exp new file mode 100644 index 0000000..7690e14 --- /dev/null +++ b/micropython-tests/expected/basics/logic_constfolding.py.exp @@ -0,0 +1,19 @@ +False +1 +f_false +1 +f_false +1 +0 +True +f_true +0 +f_true +f_false +False +True +True +False +False +False +True diff --git a/micropython-tests/expected/basics/memoryview1.py.exp b/micropython-tests/expected/basics/memoryview1.py.exp new file mode 100644 index 0000000..0f90658 --- /dev/null +++ b/micropython-tests/expected/basics/memoryview1.py.exp @@ -0,0 +1,31 @@ +4 +49 50 52 +[49, 50, 51, 52] +TypeError +TypeError +bytearray(b'\x01234') +[1, 50, 51, 52] +[50, 51, 52] +[50, 51] +bytearray(b'\x00\x00') +[49, 50, 51, 52] +[1, 2, 3, 4] +[2, 3] +array('i', [1, 2, 6, 4]) +AttributeError +True +False +False +True +True +False +False +True +True +False +False +True +True +False +False +True diff --git a/micropython-tests/expected/basics/memoryview2.py.exp b/micropython-tests/expected/basics/memoryview2.py.exp new file mode 100644 index 0000000..87668ac --- /dev/null +++ b/micropython-tests/expected/basics/memoryview2.py.exp @@ -0,0 +1,5 @@ +[127, 128, 129, 255] +[127, -128] +[127, 128, 129, 255] +[32512, -32768] +[32512, 32768, 33024, 65535] diff --git a/micropython-tests/expected/basics/memoryview_gc.py.exp b/micropython-tests/expected/basics/memoryview_gc.py.exp new file mode 100644 index 0000000..fe5176b --- /dev/null +++ b/micropython-tests/expected/basics/memoryview_gc.py.exp @@ -0,0 +1,3 @@ +[0, 1, 2, 3, 4, 5, 6, 7, 8] +980 [5, 6, 7, 8, 9, 10, 11, 12, 13, 14] +980 [5, 6, 7, 8, 9, 10, 11, 12, 13, 14] diff --git a/micropython-tests/expected/basics/memoryview_intbig.py.exp b/micropython-tests/expected/basics/memoryview_intbig.py.exp new file mode 100644 index 0000000..cecba50 --- /dev/null +++ b/micropython-tests/expected/basics/memoryview_intbig.py.exp @@ -0,0 +1,2 @@ +[2130706432, -2147483648] +[2130706432, 2147483648, 2164260864, 4294967295] diff --git a/micropython-tests/expected/basics/memoryview_itemsize.py.exp b/micropython-tests/expected/basics/memoryview_itemsize.py.exp new file mode 100644 index 0000000..8e82f40 --- /dev/null +++ b/micropython-tests/expected/basics/memoryview_itemsize.py.exp @@ -0,0 +1,8 @@ +1 +2 +4 +8 +4 +8 +True +AttributeError diff --git a/micropython-tests/expected/basics/memoryview_slice_assign.py.exp b/micropython-tests/expected/basics/memoryview_slice_assign.py.exp new file mode 100644 index 0000000..4705a87 --- /dev/null +++ b/micropython-tests/expected/basics/memoryview_slice_assign.py.exp @@ -0,0 +1,13 @@ +bytearray(b'5128') +bytearray(b'5128') +bytearray(b'1212') +ValueError +ValueError +ValueError +array('i', [0, 3, 3, 0, 0]) +ValueError +ValueError +bytearray(b'\x00\x00\x01\x02\x03\x04\x05\x06\x07\x08') +bytearray(b'\x01\x02\x03\x04\x05\x06\x07\x08\t\t') +array('I', [0, 0, 1, 2, 3, 4, 5, 6, 7, 8]) +array('I', [1, 2, 3, 4, 5, 6, 7, 8, 9, 9]) diff --git a/micropython-tests/expected/basics/module1.py.exp b/micropython-tests/expected/basics/module1.py.exp new file mode 100644 index 0000000..0ca9514 --- /dev/null +++ b/micropython-tests/expected/basics/module1.py.exp @@ -0,0 +1 @@ +True diff --git a/micropython-tests/expected/basics/namedtuple1.py.exp b/micropython-tests/expected/basics/namedtuple1.py.exp new file mode 100644 index 0000000..9b63421 --- /dev/null +++ b/micropython-tests/expected/basics/namedtuple1.py.exp @@ -0,0 +1,31 @@ +Tup(foo=1, bar=2) +1 2 +1 2 +2 +True +(1, 2, 1, 2) +(1, 2, 1, 2, 1, 2) +[1, 2] +True +True True +Tup(foo=2, bar=1) +2 1 +2 1 +2 +True +(2, 1, 2, 1) +(2, 1, 2, 1, 2, 1) +[2, 1] +True +True True +Tup(foo=3, bar=4) +TypeError +AttributeError +TypeError +TypeError +TypeError +TypeError +TypeError +TypeError +1 2 +1 2 diff --git a/micropython-tests/expected/basics/namedtuple_asdict.py.exp b/micropython-tests/expected/basics/namedtuple_asdict.py.exp new file mode 100644 index 0000000..c159cda --- /dev/null +++ b/micropython-tests/expected/basics/namedtuple_asdict.py.exp @@ -0,0 +1,2 @@ +['baz', 'foo', 'bar'] +[3, 2, 5] diff --git a/micropython-tests/expected/basics/object1.py.exp b/micropython-tests/expected/basics/object1.py.exp new file mode 100644 index 0000000..8fcdc12 --- /dev/null +++ b/micropython-tests/expected/basics/object1.py.exp @@ -0,0 +1 @@ + [] +[] ^= [] --> [] +[] &= [] --> [] +[] -= [] --> [] +[] == [] = True +[] != [] = False +[] > [] = False +[] >= [] = True +[] < [] = False +[] <= [] = True +[] | [1] = [1] +[] ^ [1] = [1] +[] & [1] = [] +[] - [1] = [] +[] |= [1] --> [1] +[] ^= [1] --> [1] +[] &= [1] --> [] +[] -= [1] --> [] +[] == [1] = False +[] != [1] = True +[] > [1] = False +[] >= [1] = False +[] < [1] = True +[] <= [1] = True +[] | [1, 2] = [1, 2] +[] ^ [1, 2] = [1, 2] +[] & [1, 2] = [] +[] - [1, 2] = [] +[] |= [1, 2] --> [1, 2] +[] ^= [1, 2] --> [1, 2] +[] &= [1, 2] --> [] +[] -= [1, 2] --> [] +[] == [1, 2] = False +[] != [1, 2] = True +[] > [1, 2] = False +[] >= [1, 2] = False +[] < [1, 2] = True +[] <= [1, 2] = True +[] | [1, 2, 3] = [1, 2, 3] +[] ^ [1, 2, 3] = [1, 2, 3] +[] & [1, 2, 3] = [] +[] - [1, 2, 3] = [] +[] |= [1, 2, 3] --> [1, 2, 3] +[] ^= [1, 2, 3] --> [1, 2, 3] +[] &= [1, 2, 3] --> [] +[] -= [1, 2, 3] --> [] +[] == [1, 2, 3] = False +[] != [1, 2, 3] = True +[] > [1, 2, 3] = False +[] >= [1, 2, 3] = False +[] < [1, 2, 3] = True +[] <= [1, 2, 3] = True +[] | [2, 3] = [2, 3] +[] ^ [2, 3] = [2, 3] +[] & [2, 3] = [] +[] - [2, 3] = [] +[] |= [2, 3] --> [2, 3] +[] ^= [2, 3] --> [2, 3] +[] &= [2, 3] --> [] +[] -= [2, 3] --> [] +[] == [2, 3] = False +[] != [2, 3] = True +[] > [2, 3] = False +[] >= [2, 3] = False +[] < [2, 3] = True +[] <= [2, 3] = True +[] | [2, 3, 5] = [2, 3, 5] +[] ^ [2, 3, 5] = [2, 3, 5] +[] & [2, 3, 5] = [] +[] - [2, 3, 5] = [] +[] |= [2, 3, 5] --> [2, 3, 5] +[] ^= [2, 3, 5] --> [2, 3, 5] +[] &= [2, 3, 5] --> [] +[] -= [2, 3, 5] --> [] +[] == [2, 3, 5] = False +[] != [2, 3, 5] = True +[] > [2, 3, 5] = False +[] >= [2, 3, 5] = False +[] < [2, 3, 5] = True +[] <= [2, 3, 5] = True +[] | [5] = [5] +[] ^ [5] = [5] +[] & [5] = [] +[] - [5] = [] +[] |= [5] --> [5] +[] ^= [5] --> [5] +[] &= [5] --> [] +[] -= [5] --> [] +[] == [5] = False +[] != [5] = True +[] > [5] = False +[] >= [5] = False +[] < [5] = True +[] <= [5] = True +[] | [7] = [7] +[] ^ [7] = [7] +[] & [7] = [] +[] - [7] = [] +[] |= [7] --> [7] +[] ^= [7] --> [7] +[] &= [7] --> [] +[] -= [7] --> [] +[] == [7] = False +[] != [7] = True +[] > [7] = False +[] >= [7] = False +[] < [7] = True +[] <= [7] = True +[1] | [] = [1] +[1] ^ [] = [1] +[1] & [] = [] +[1] - [] = [1] +[1] |= [] --> [1] +[1] ^= [] --> [1] +[1] &= [] --> [] +[1] -= [] --> [1] +[1] == [] = False +[1] != [] = True +[1] > [] = True +[1] >= [] = True +[1] < [] = False +[1] <= [] = False +[1] | [1] = [1] +[1] ^ [1] = [] +[1] & [1] = [1] +[1] - [1] = [] +[1] |= [1] --> [1] +[1] ^= [1] --> [] +[1] &= [1] --> [1] +[1] -= [1] --> [] +[1] == [1] = True +[1] != [1] = False +[1] > [1] = False +[1] >= [1] = True +[1] < [1] = False +[1] <= [1] = True +[1] | [1, 2] = [1, 2] +[1] ^ [1, 2] = [2] +[1] & [1, 2] = [1] +[1] - [1, 2] = [] +[1] |= [1, 2] --> [1, 2] +[1] ^= [1, 2] --> [2] +[1] &= [1, 2] --> [1] +[1] -= [1, 2] --> [] +[1] == [1, 2] = False +[1] != [1, 2] = True +[1] > [1, 2] = False +[1] >= [1, 2] = False +[1] < [1, 2] = True +[1] <= [1, 2] = True +[1] | [1, 2, 3] = [1, 2, 3] +[1] ^ [1, 2, 3] = [2, 3] +[1] & [1, 2, 3] = [1] +[1] - [1, 2, 3] = [] +[1] |= [1, 2, 3] --> [1, 2, 3] +[1] ^= [1, 2, 3] --> [2, 3] +[1] &= [1, 2, 3] --> [1] +[1] -= [1, 2, 3] --> [] +[1] == [1, 2, 3] = False +[1] != [1, 2, 3] = True +[1] > [1, 2, 3] = False +[1] >= [1, 2, 3] = False +[1] < [1, 2, 3] = True +[1] <= [1, 2, 3] = True +[1] | [2, 3] = [1, 2, 3] +[1] ^ [2, 3] = [1, 2, 3] +[1] & [2, 3] = [] +[1] - [2, 3] = [1] +[1] |= [2, 3] --> [1, 2, 3] +[1] ^= [2, 3] --> [1, 2, 3] +[1] &= [2, 3] --> [] +[1] -= [2, 3] --> [1] +[1] == [2, 3] = False +[1] != [2, 3] = True +[1] > [2, 3] = False +[1] >= [2, 3] = False +[1] < [2, 3] = False +[1] <= [2, 3] = False +[1] | [2, 3, 5] = [1, 2, 3, 5] +[1] ^ [2, 3, 5] = [1, 2, 3, 5] +[1] & [2, 3, 5] = [] +[1] - [2, 3, 5] = [1] +[1] |= [2, 3, 5] --> [1, 2, 3, 5] +[1] ^= [2, 3, 5] --> [1, 2, 3, 5] +[1] &= [2, 3, 5] --> [] +[1] -= [2, 3, 5] --> [1] +[1] == [2, 3, 5] = False +[1] != [2, 3, 5] = True +[1] > [2, 3, 5] = False +[1] >= [2, 3, 5] = False +[1] < [2, 3, 5] = False +[1] <= [2, 3, 5] = False +[1] | [5] = [1, 5] +[1] ^ [5] = [1, 5] +[1] & [5] = [] +[1] - [5] = [1] +[1] |= [5] --> [1, 5] +[1] ^= [5] --> [1, 5] +[1] &= [5] --> [] +[1] -= [5] --> [1] +[1] == [5] = False +[1] != [5] = True +[1] > [5] = False +[1] >= [5] = False +[1] < [5] = False +[1] <= [5] = False +[1] | [7] = [1, 7] +[1] ^ [7] = [1, 7] +[1] & [7] = [] +[1] - [7] = [1] +[1] |= [7] --> [1, 7] +[1] ^= [7] --> [1, 7] +[1] &= [7] --> [] +[1] -= [7] --> [1] +[1] == [7] = False +[1] != [7] = True +[1] > [7] = False +[1] >= [7] = False +[1] < [7] = False +[1] <= [7] = False +[1, 2] | [] = [1, 2] +[1, 2] ^ [] = [1, 2] +[1, 2] & [] = [] +[1, 2] - [] = [1, 2] +[1, 2] |= [] --> [1, 2] +[1, 2] ^= [] --> [1, 2] +[1, 2] &= [] --> [] +[1, 2] -= [] --> [1, 2] +[1, 2] == [] = False +[1, 2] != [] = True +[1, 2] > [] = True +[1, 2] >= [] = True +[1, 2] < [] = False +[1, 2] <= [] = False +[1, 2] | [1] = [1, 2] +[1, 2] ^ [1] = [2] +[1, 2] & [1] = [1] +[1, 2] - [1] = [2] +[1, 2] |= [1] --> [1, 2] +[1, 2] ^= [1] --> [2] +[1, 2] &= [1] --> [1] +[1, 2] -= [1] --> [2] +[1, 2] == [1] = False +[1, 2] != [1] = True +[1, 2] > [1] = True +[1, 2] >= [1] = True +[1, 2] < [1] = False +[1, 2] <= [1] = False +[1, 2] | [1, 2] = [1, 2] +[1, 2] ^ [1, 2] = [] +[1, 2] & [1, 2] = [1, 2] +[1, 2] - [1, 2] = [] +[1, 2] |= [1, 2] --> [1, 2] +[1, 2] ^= [1, 2] --> [] +[1, 2] &= [1, 2] --> [1, 2] +[1, 2] -= [1, 2] --> [] +[1, 2] == [1, 2] = True +[1, 2] != [1, 2] = False +[1, 2] > [1, 2] = False +[1, 2] >= [1, 2] = True +[1, 2] < [1, 2] = False +[1, 2] <= [1, 2] = True +[1, 2] | [1, 2, 3] = [1, 2, 3] +[1, 2] ^ [1, 2, 3] = [3] +[1, 2] & [1, 2, 3] = [1, 2] +[1, 2] - [1, 2, 3] = [] +[1, 2] |= [1, 2, 3] --> [1, 2, 3] +[1, 2] ^= [1, 2, 3] --> [3] +[1, 2] &= [1, 2, 3] --> [1, 2] +[1, 2] -= [1, 2, 3] --> [] +[1, 2] == [1, 2, 3] = False +[1, 2] != [1, 2, 3] = True +[1, 2] > [1, 2, 3] = False +[1, 2] >= [1, 2, 3] = False +[1, 2] < [1, 2, 3] = True +[1, 2] <= [1, 2, 3] = True +[1, 2] | [2, 3] = [1, 2, 3] +[1, 2] ^ [2, 3] = [1, 3] +[1, 2] & [2, 3] = [2] +[1, 2] - [2, 3] = [1] +[1, 2] |= [2, 3] --> [1, 2, 3] +[1, 2] ^= [2, 3] --> [1, 3] +[1, 2] &= [2, 3] --> [2] +[1, 2] -= [2, 3] --> [1] +[1, 2] == [2, 3] = False +[1, 2] != [2, 3] = True +[1, 2] > [2, 3] = False +[1, 2] >= [2, 3] = False +[1, 2] < [2, 3] = False +[1, 2] <= [2, 3] = False +[1, 2] | [2, 3, 5] = [1, 2, 3, 5] +[1, 2] ^ [2, 3, 5] = [1, 3, 5] +[1, 2] & [2, 3, 5] = [2] +[1, 2] - [2, 3, 5] = [1] +[1, 2] |= [2, 3, 5] --> [1, 2, 3, 5] +[1, 2] ^= [2, 3, 5] --> [1, 3, 5] +[1, 2] &= [2, 3, 5] --> [2] +[1, 2] -= [2, 3, 5] --> [1] +[1, 2] == [2, 3, 5] = False +[1, 2] != [2, 3, 5] = True +[1, 2] > [2, 3, 5] = False +[1, 2] >= [2, 3, 5] = False +[1, 2] < [2, 3, 5] = False +[1, 2] <= [2, 3, 5] = False +[1, 2] | [5] = [1, 2, 5] +[1, 2] ^ [5] = [1, 2, 5] +[1, 2] & [5] = [] +[1, 2] - [5] = [1, 2] +[1, 2] |= [5] --> [1, 2, 5] +[1, 2] ^= [5] --> [1, 2, 5] +[1, 2] &= [5] --> [] +[1, 2] -= [5] --> [1, 2] +[1, 2] == [5] = False +[1, 2] != [5] = True +[1, 2] > [5] = False +[1, 2] >= [5] = False +[1, 2] < [5] = False +[1, 2] <= [5] = False +[1, 2] | [7] = [1, 2, 7] +[1, 2] ^ [7] = [1, 2, 7] +[1, 2] & [7] = [] +[1, 2] - [7] = [1, 2] +[1, 2] |= [7] --> [1, 2, 7] +[1, 2] ^= [7] --> [1, 2, 7] +[1, 2] &= [7] --> [] +[1, 2] -= [7] --> [1, 2] +[1, 2] == [7] = False +[1, 2] != [7] = True +[1, 2] > [7] = False +[1, 2] >= [7] = False +[1, 2] < [7] = False +[1, 2] <= [7] = False +[1, 2, 3] | [] = [1, 2, 3] +[1, 2, 3] ^ [] = [1, 2, 3] +[1, 2, 3] & [] = [] +[1, 2, 3] - [] = [1, 2, 3] +[1, 2, 3] |= [] --> [1, 2, 3] +[1, 2, 3] ^= [] --> [1, 2, 3] +[1, 2, 3] &= [] --> [] +[1, 2, 3] -= [] --> [1, 2, 3] +[1, 2, 3] == [] = False +[1, 2, 3] != [] = True +[1, 2, 3] > [] = True +[1, 2, 3] >= [] = True +[1, 2, 3] < [] = False +[1, 2, 3] <= [] = False +[1, 2, 3] | [1] = [1, 2, 3] +[1, 2, 3] ^ [1] = [2, 3] +[1, 2, 3] & [1] = [1] +[1, 2, 3] - [1] = [2, 3] +[1, 2, 3] |= [1] --> [1, 2, 3] +[1, 2, 3] ^= [1] --> [2, 3] +[1, 2, 3] &= [1] --> [1] +[1, 2, 3] -= [1] --> [2, 3] +[1, 2, 3] == [1] = False +[1, 2, 3] != [1] = True +[1, 2, 3] > [1] = True +[1, 2, 3] >= [1] = True +[1, 2, 3] < [1] = False +[1, 2, 3] <= [1] = False +[1, 2, 3] | [1, 2] = [1, 2, 3] +[1, 2, 3] ^ [1, 2] = [3] +[1, 2, 3] & [1, 2] = [1, 2] +[1, 2, 3] - [1, 2] = [3] +[1, 2, 3] |= [1, 2] --> [1, 2, 3] +[1, 2, 3] ^= [1, 2] --> [3] +[1, 2, 3] &= [1, 2] --> [1, 2] +[1, 2, 3] -= [1, 2] --> [3] +[1, 2, 3] == [1, 2] = False +[1, 2, 3] != [1, 2] = True +[1, 2, 3] > [1, 2] = True +[1, 2, 3] >= [1, 2] = True +[1, 2, 3] < [1, 2] = False +[1, 2, 3] <= [1, 2] = False +[1, 2, 3] | [1, 2, 3] = [1, 2, 3] +[1, 2, 3] ^ [1, 2, 3] = [] +[1, 2, 3] & [1, 2, 3] = [1, 2, 3] +[1, 2, 3] - [1, 2, 3] = [] +[1, 2, 3] |= [1, 2, 3] --> [1, 2, 3] +[1, 2, 3] ^= [1, 2, 3] --> [] +[1, 2, 3] &= [1, 2, 3] --> [1, 2, 3] +[1, 2, 3] -= [1, 2, 3] --> [] +[1, 2, 3] == [1, 2, 3] = True +[1, 2, 3] != [1, 2, 3] = False +[1, 2, 3] > [1, 2, 3] = False +[1, 2, 3] >= [1, 2, 3] = True +[1, 2, 3] < [1, 2, 3] = False +[1, 2, 3] <= [1, 2, 3] = True +[1, 2, 3] | [2, 3] = [1, 2, 3] +[1, 2, 3] ^ [2, 3] = [1] +[1, 2, 3] & [2, 3] = [2, 3] +[1, 2, 3] - [2, 3] = [1] +[1, 2, 3] |= [2, 3] --> [1, 2, 3] +[1, 2, 3] ^= [2, 3] --> [1] +[1, 2, 3] &= [2, 3] --> [2, 3] +[1, 2, 3] -= [2, 3] --> [1] +[1, 2, 3] == [2, 3] = False +[1, 2, 3] != [2, 3] = True +[1, 2, 3] > [2, 3] = True +[1, 2, 3] >= [2, 3] = True +[1, 2, 3] < [2, 3] = False +[1, 2, 3] <= [2, 3] = False +[1, 2, 3] | [2, 3, 5] = [1, 2, 3, 5] +[1, 2, 3] ^ [2, 3, 5] = [1, 5] +[1, 2, 3] & [2, 3, 5] = [2, 3] +[1, 2, 3] - [2, 3, 5] = [1] +[1, 2, 3] |= [2, 3, 5] --> [1, 2, 3, 5] +[1, 2, 3] ^= [2, 3, 5] --> [1, 5] +[1, 2, 3] &= [2, 3, 5] --> [2, 3] +[1, 2, 3] -= [2, 3, 5] --> [1] +[1, 2, 3] == [2, 3, 5] = False +[1, 2, 3] != [2, 3, 5] = True +[1, 2, 3] > [2, 3, 5] = False +[1, 2, 3] >= [2, 3, 5] = False +[1, 2, 3] < [2, 3, 5] = False +[1, 2, 3] <= [2, 3, 5] = False +[1, 2, 3] | [5] = [1, 2, 3, 5] +[1, 2, 3] ^ [5] = [1, 2, 3, 5] +[1, 2, 3] & [5] = [] +[1, 2, 3] - [5] = [1, 2, 3] +[1, 2, 3] |= [5] --> [1, 2, 3, 5] +[1, 2, 3] ^= [5] --> [1, 2, 3, 5] +[1, 2, 3] &= [5] --> [] +[1, 2, 3] -= [5] --> [1, 2, 3] +[1, 2, 3] == [5] = False +[1, 2, 3] != [5] = True +[1, 2, 3] > [5] = False +[1, 2, 3] >= [5] = False +[1, 2, 3] < [5] = False +[1, 2, 3] <= [5] = False +[1, 2, 3] | [7] = [1, 2, 3, 7] +[1, 2, 3] ^ [7] = [1, 2, 3, 7] +[1, 2, 3] & [7] = [] +[1, 2, 3] - [7] = [1, 2, 3] +[1, 2, 3] |= [7] --> [1, 2, 3, 7] +[1, 2, 3] ^= [7] --> [1, 2, 3, 7] +[1, 2, 3] &= [7] --> [] +[1, 2, 3] -= [7] --> [1, 2, 3] +[1, 2, 3] == [7] = False +[1, 2, 3] != [7] = True +[1, 2, 3] > [7] = False +[1, 2, 3] >= [7] = False +[1, 2, 3] < [7] = False +[1, 2, 3] <= [7] = False +[2, 3] | [] = [2, 3] +[2, 3] ^ [] = [2, 3] +[2, 3] & [] = [] +[2, 3] - [] = [2, 3] +[2, 3] |= [] --> [2, 3] +[2, 3] ^= [] --> [2, 3] +[2, 3] &= [] --> [] +[2, 3] -= [] --> [2, 3] +[2, 3] == [] = False +[2, 3] != [] = True +[2, 3] > [] = True +[2, 3] >= [] = True +[2, 3] < [] = False +[2, 3] <= [] = False +[2, 3] | [1] = [1, 2, 3] +[2, 3] ^ [1] = [1, 2, 3] +[2, 3] & [1] = [] +[2, 3] - [1] = [2, 3] +[2, 3] |= [1] --> [1, 2, 3] +[2, 3] ^= [1] --> [1, 2, 3] +[2, 3] &= [1] --> [] +[2, 3] -= [1] --> [2, 3] +[2, 3] == [1] = False +[2, 3] != [1] = True +[2, 3] > [1] = False +[2, 3] >= [1] = False +[2, 3] < [1] = False +[2, 3] <= [1] = False +[2, 3] | [1, 2] = [1, 2, 3] +[2, 3] ^ [1, 2] = [1, 3] +[2, 3] & [1, 2] = [2] +[2, 3] - [1, 2] = [3] +[2, 3] |= [1, 2] --> [1, 2, 3] +[2, 3] ^= [1, 2] --> [1, 3] +[2, 3] &= [1, 2] --> [2] +[2, 3] -= [1, 2] --> [3] +[2, 3] == [1, 2] = False +[2, 3] != [1, 2] = True +[2, 3] > [1, 2] = False +[2, 3] >= [1, 2] = False +[2, 3] < [1, 2] = False +[2, 3] <= [1, 2] = False +[2, 3] | [1, 2, 3] = [1, 2, 3] +[2, 3] ^ [1, 2, 3] = [1] +[2, 3] & [1, 2, 3] = [2, 3] +[2, 3] - [1, 2, 3] = [] +[2, 3] |= [1, 2, 3] --> [1, 2, 3] +[2, 3] ^= [1, 2, 3] --> [1] +[2, 3] &= [1, 2, 3] --> [2, 3] +[2, 3] -= [1, 2, 3] --> [] +[2, 3] == [1, 2, 3] = False +[2, 3] != [1, 2, 3] = True +[2, 3] > [1, 2, 3] = False +[2, 3] >= [1, 2, 3] = False +[2, 3] < [1, 2, 3] = True +[2, 3] <= [1, 2, 3] = True +[2, 3] | [2, 3] = [2, 3] +[2, 3] ^ [2, 3] = [] +[2, 3] & [2, 3] = [2, 3] +[2, 3] - [2, 3] = [] +[2, 3] |= [2, 3] --> [2, 3] +[2, 3] ^= [2, 3] --> [] +[2, 3] &= [2, 3] --> [2, 3] +[2, 3] -= [2, 3] --> [] +[2, 3] == [2, 3] = True +[2, 3] != [2, 3] = False +[2, 3] > [2, 3] = False +[2, 3] >= [2, 3] = True +[2, 3] < [2, 3] = False +[2, 3] <= [2, 3] = True +[2, 3] | [2, 3, 5] = [2, 3, 5] +[2, 3] ^ [2, 3, 5] = [5] +[2, 3] & [2, 3, 5] = [2, 3] +[2, 3] - [2, 3, 5] = [] +[2, 3] |= [2, 3, 5] --> [2, 3, 5] +[2, 3] ^= [2, 3, 5] --> [5] +[2, 3] &= [2, 3, 5] --> [2, 3] +[2, 3] -= [2, 3, 5] --> [] +[2, 3] == [2, 3, 5] = False +[2, 3] != [2, 3, 5] = True +[2, 3] > [2, 3, 5] = False +[2, 3] >= [2, 3, 5] = False +[2, 3] < [2, 3, 5] = True +[2, 3] <= [2, 3, 5] = True +[2, 3] | [5] = [2, 3, 5] +[2, 3] ^ [5] = [2, 3, 5] +[2, 3] & [5] = [] +[2, 3] - [5] = [2, 3] +[2, 3] |= [5] --> [2, 3, 5] +[2, 3] ^= [5] --> [2, 3, 5] +[2, 3] &= [5] --> [] +[2, 3] -= [5] --> [2, 3] +[2, 3] == [5] = False +[2, 3] != [5] = True +[2, 3] > [5] = False +[2, 3] >= [5] = False +[2, 3] < [5] = False +[2, 3] <= [5] = False +[2, 3] | [7] = [2, 3, 7] +[2, 3] ^ [7] = [2, 3, 7] +[2, 3] & [7] = [] +[2, 3] - [7] = [2, 3] +[2, 3] |= [7] --> [2, 3, 7] +[2, 3] ^= [7] --> [2, 3, 7] +[2, 3] &= [7] --> [] +[2, 3] -= [7] --> [2, 3] +[2, 3] == [7] = False +[2, 3] != [7] = True +[2, 3] > [7] = False +[2, 3] >= [7] = False +[2, 3] < [7] = False +[2, 3] <= [7] = False +[2, 3, 5] | [] = [2, 3, 5] +[2, 3, 5] ^ [] = [2, 3, 5] +[2, 3, 5] & [] = [] +[2, 3, 5] - [] = [2, 3, 5] +[2, 3, 5] |= [] --> [2, 3, 5] +[2, 3, 5] ^= [] --> [2, 3, 5] +[2, 3, 5] &= [] --> [] +[2, 3, 5] -= [] --> [2, 3, 5] +[2, 3, 5] == [] = False +[2, 3, 5] != [] = True +[2, 3, 5] > [] = True +[2, 3, 5] >= [] = True +[2, 3, 5] < [] = False +[2, 3, 5] <= [] = False +[2, 3, 5] | [1] = [1, 2, 3, 5] +[2, 3, 5] ^ [1] = [1, 2, 3, 5] +[2, 3, 5] & [1] = [] +[2, 3, 5] - [1] = [2, 3, 5] +[2, 3, 5] |= [1] --> [1, 2, 3, 5] +[2, 3, 5] ^= [1] --> [1, 2, 3, 5] +[2, 3, 5] &= [1] --> [] +[2, 3, 5] -= [1] --> [2, 3, 5] +[2, 3, 5] == [1] = False +[2, 3, 5] != [1] = True +[2, 3, 5] > [1] = False +[2, 3, 5] >= [1] = False +[2, 3, 5] < [1] = False +[2, 3, 5] <= [1] = False +[2, 3, 5] | [1, 2] = [1, 2, 3, 5] +[2, 3, 5] ^ [1, 2] = [1, 3, 5] +[2, 3, 5] & [1, 2] = [2] +[2, 3, 5] - [1, 2] = [3, 5] +[2, 3, 5] |= [1, 2] --> [1, 2, 3, 5] +[2, 3, 5] ^= [1, 2] --> [1, 3, 5] +[2, 3, 5] &= [1, 2] --> [2] +[2, 3, 5] -= [1, 2] --> [3, 5] +[2, 3, 5] == [1, 2] = False +[2, 3, 5] != [1, 2] = True +[2, 3, 5] > [1, 2] = False +[2, 3, 5] >= [1, 2] = False +[2, 3, 5] < [1, 2] = False +[2, 3, 5] <= [1, 2] = False +[2, 3, 5] | [1, 2, 3] = [1, 2, 3, 5] +[2, 3, 5] ^ [1, 2, 3] = [1, 5] +[2, 3, 5] & [1, 2, 3] = [2, 3] +[2, 3, 5] - [1, 2, 3] = [5] +[2, 3, 5] |= [1, 2, 3] --> [1, 2, 3, 5] +[2, 3, 5] ^= [1, 2, 3] --> [1, 5] +[2, 3, 5] &= [1, 2, 3] --> [2, 3] +[2, 3, 5] -= [1, 2, 3] --> [5] +[2, 3, 5] == [1, 2, 3] = False +[2, 3, 5] != [1, 2, 3] = True +[2, 3, 5] > [1, 2, 3] = False +[2, 3, 5] >= [1, 2, 3] = False +[2, 3, 5] < [1, 2, 3] = False +[2, 3, 5] <= [1, 2, 3] = False +[2, 3, 5] | [2, 3] = [2, 3, 5] +[2, 3, 5] ^ [2, 3] = [5] +[2, 3, 5] & [2, 3] = [2, 3] +[2, 3, 5] - [2, 3] = [5] +[2, 3, 5] |= [2, 3] --> [2, 3, 5] +[2, 3, 5] ^= [2, 3] --> [5] +[2, 3, 5] &= [2, 3] --> [2, 3] +[2, 3, 5] -= [2, 3] --> [5] +[2, 3, 5] == [2, 3] = False +[2, 3, 5] != [2, 3] = True +[2, 3, 5] > [2, 3] = True +[2, 3, 5] >= [2, 3] = True +[2, 3, 5] < [2, 3] = False +[2, 3, 5] <= [2, 3] = False +[2, 3, 5] | [2, 3, 5] = [2, 3, 5] +[2, 3, 5] ^ [2, 3, 5] = [] +[2, 3, 5] & [2, 3, 5] = [2, 3, 5] +[2, 3, 5] - [2, 3, 5] = [] +[2, 3, 5] |= [2, 3, 5] --> [2, 3, 5] +[2, 3, 5] ^= [2, 3, 5] --> [] +[2, 3, 5] &= [2, 3, 5] --> [2, 3, 5] +[2, 3, 5] -= [2, 3, 5] --> [] +[2, 3, 5] == [2, 3, 5] = True +[2, 3, 5] != [2, 3, 5] = False +[2, 3, 5] > [2, 3, 5] = False +[2, 3, 5] >= [2, 3, 5] = True +[2, 3, 5] < [2, 3, 5] = False +[2, 3, 5] <= [2, 3, 5] = True +[2, 3, 5] | [5] = [2, 3, 5] +[2, 3, 5] ^ [5] = [2, 3] +[2, 3, 5] & [5] = [5] +[2, 3, 5] - [5] = [2, 3] +[2, 3, 5] |= [5] --> [2, 3, 5] +[2, 3, 5] ^= [5] --> [2, 3] +[2, 3, 5] &= [5] --> [5] +[2, 3, 5] -= [5] --> [2, 3] +[2, 3, 5] == [5] = False +[2, 3, 5] != [5] = True +[2, 3, 5] > [5] = True +[2, 3, 5] >= [5] = True +[2, 3, 5] < [5] = False +[2, 3, 5] <= [5] = False +[2, 3, 5] | [7] = [2, 3, 5, 7] +[2, 3, 5] ^ [7] = [2, 3, 5, 7] +[2, 3, 5] & [7] = [] +[2, 3, 5] - [7] = [2, 3, 5] +[2, 3, 5] |= [7] --> [2, 3, 5, 7] +[2, 3, 5] ^= [7] --> [2, 3, 5, 7] +[2, 3, 5] &= [7] --> [] +[2, 3, 5] -= [7] --> [2, 3, 5] +[2, 3, 5] == [7] = False +[2, 3, 5] != [7] = True +[2, 3, 5] > [7] = False +[2, 3, 5] >= [7] = False +[2, 3, 5] < [7] = False +[2, 3, 5] <= [7] = False +[5] | [] = [5] +[5] ^ [] = [5] +[5] & [] = [] +[5] - [] = [5] +[5] |= [] --> [5] +[5] ^= [] --> [5] +[5] &= [] --> [] +[5] -= [] --> [5] +[5] == [] = False +[5] != [] = True +[5] > [] = True +[5] >= [] = True +[5] < [] = False +[5] <= [] = False +[5] | [1] = [1, 5] +[5] ^ [1] = [1, 5] +[5] & [1] = [] +[5] - [1] = [5] +[5] |= [1] --> [1, 5] +[5] ^= [1] --> [1, 5] +[5] &= [1] --> [] +[5] -= [1] --> [5] +[5] == [1] = False +[5] != [1] = True +[5] > [1] = False +[5] >= [1] = False +[5] < [1] = False +[5] <= [1] = False +[5] | [1, 2] = [1, 2, 5] +[5] ^ [1, 2] = [1, 2, 5] +[5] & [1, 2] = [] +[5] - [1, 2] = [5] +[5] |= [1, 2] --> [1, 2, 5] +[5] ^= [1, 2] --> [1, 2, 5] +[5] &= [1, 2] --> [] +[5] -= [1, 2] --> [5] +[5] == [1, 2] = False +[5] != [1, 2] = True +[5] > [1, 2] = False +[5] >= [1, 2] = False +[5] < [1, 2] = False +[5] <= [1, 2] = False +[5] | [1, 2, 3] = [1, 2, 3, 5] +[5] ^ [1, 2, 3] = [1, 2, 3, 5] +[5] & [1, 2, 3] = [] +[5] - [1, 2, 3] = [5] +[5] |= [1, 2, 3] --> [1, 2, 3, 5] +[5] ^= [1, 2, 3] --> [1, 2, 3, 5] +[5] &= [1, 2, 3] --> [] +[5] -= [1, 2, 3] --> [5] +[5] == [1, 2, 3] = False +[5] != [1, 2, 3] = True +[5] > [1, 2, 3] = False +[5] >= [1, 2, 3] = False +[5] < [1, 2, 3] = False +[5] <= [1, 2, 3] = False +[5] | [2, 3] = [2, 3, 5] +[5] ^ [2, 3] = [2, 3, 5] +[5] & [2, 3] = [] +[5] - [2, 3] = [5] +[5] |= [2, 3] --> [2, 3, 5] +[5] ^= [2, 3] --> [2, 3, 5] +[5] &= [2, 3] --> [] +[5] -= [2, 3] --> [5] +[5] == [2, 3] = False +[5] != [2, 3] = True +[5] > [2, 3] = False +[5] >= [2, 3] = False +[5] < [2, 3] = False +[5] <= [2, 3] = False +[5] | [2, 3, 5] = [2, 3, 5] +[5] ^ [2, 3, 5] = [2, 3] +[5] & [2, 3, 5] = [5] +[5] - [2, 3, 5] = [] +[5] |= [2, 3, 5] --> [2, 3, 5] +[5] ^= [2, 3, 5] --> [2, 3] +[5] &= [2, 3, 5] --> [5] +[5] -= [2, 3, 5] --> [] +[5] == [2, 3, 5] = False +[5] != [2, 3, 5] = True +[5] > [2, 3, 5] = False +[5] >= [2, 3, 5] = False +[5] < [2, 3, 5] = True +[5] <= [2, 3, 5] = True +[5] | [5] = [5] +[5] ^ [5] = [] +[5] & [5] = [5] +[5] - [5] = [] +[5] |= [5] --> [5] +[5] ^= [5] --> [] +[5] &= [5] --> [5] +[5] -= [5] --> [] +[5] == [5] = True +[5] != [5] = False +[5] > [5] = False +[5] >= [5] = True +[5] < [5] = False +[5] <= [5] = True +[5] | [7] = [5, 7] +[5] ^ [7] = [5, 7] +[5] & [7] = [] +[5] - [7] = [5] +[5] |= [7] --> [5, 7] +[5] ^= [7] --> [5, 7] +[5] &= [7] --> [] +[5] -= [7] --> [5] +[5] == [7] = False +[5] != [7] = True +[5] > [7] = False +[5] >= [7] = False +[5] < [7] = False +[5] <= [7] = False +[7] | [] = [7] +[7] ^ [] = [7] +[7] & [] = [] +[7] - [] = [7] +[7] |= [] --> [7] +[7] ^= [] --> [7] +[7] &= [] --> [] +[7] -= [] --> [7] +[7] == [] = False +[7] != [] = True +[7] > [] = True +[7] >= [] = True +[7] < [] = False +[7] <= [] = False +[7] | [1] = [1, 7] +[7] ^ [1] = [1, 7] +[7] & [1] = [] +[7] - [1] = [7] +[7] |= [1] --> [1, 7] +[7] ^= [1] --> [1, 7] +[7] &= [1] --> [] +[7] -= [1] --> [7] +[7] == [1] = False +[7] != [1] = True +[7] > [1] = False +[7] >= [1] = False +[7] < [1] = False +[7] <= [1] = False +[7] | [1, 2] = [1, 2, 7] +[7] ^ [1, 2] = [1, 2, 7] +[7] & [1, 2] = [] +[7] - [1, 2] = [7] +[7] |= [1, 2] --> [1, 2, 7] +[7] ^= [1, 2] --> [1, 2, 7] +[7] &= [1, 2] --> [] +[7] -= [1, 2] --> [7] +[7] == [1, 2] = False +[7] != [1, 2] = True +[7] > [1, 2] = False +[7] >= [1, 2] = False +[7] < [1, 2] = False +[7] <= [1, 2] = False +[7] | [1, 2, 3] = [1, 2, 3, 7] +[7] ^ [1, 2, 3] = [1, 2, 3, 7] +[7] & [1, 2, 3] = [] +[7] - [1, 2, 3] = [7] +[7] |= [1, 2, 3] --> [1, 2, 3, 7] +[7] ^= [1, 2, 3] --> [1, 2, 3, 7] +[7] &= [1, 2, 3] --> [] +[7] -= [1, 2, 3] --> [7] +[7] == [1, 2, 3] = False +[7] != [1, 2, 3] = True +[7] > [1, 2, 3] = False +[7] >= [1, 2, 3] = False +[7] < [1, 2, 3] = False +[7] <= [1, 2, 3] = False +[7] | [2, 3] = [2, 3, 7] +[7] ^ [2, 3] = [2, 3, 7] +[7] & [2, 3] = [] +[7] - [2, 3] = [7] +[7] |= [2, 3] --> [2, 3, 7] +[7] ^= [2, 3] --> [2, 3, 7] +[7] &= [2, 3] --> [] +[7] -= [2, 3] --> [7] +[7] == [2, 3] = False +[7] != [2, 3] = True +[7] > [2, 3] = False +[7] >= [2, 3] = False +[7] < [2, 3] = False +[7] <= [2, 3] = False +[7] | [2, 3, 5] = [2, 3, 5, 7] +[7] ^ [2, 3, 5] = [2, 3, 5, 7] +[7] & [2, 3, 5] = [] +[7] - [2, 3, 5] = [7] +[7] |= [2, 3, 5] --> [2, 3, 5, 7] +[7] ^= [2, 3, 5] --> [2, 3, 5, 7] +[7] &= [2, 3, 5] --> [] +[7] -= [2, 3, 5] --> [7] +[7] == [2, 3, 5] = False +[7] != [2, 3, 5] = True +[7] > [2, 3, 5] = False +[7] >= [2, 3, 5] = False +[7] < [2, 3, 5] = False +[7] <= [2, 3, 5] = False +[7] | [5] = [5, 7] +[7] ^ [5] = [5, 7] +[7] & [5] = [] +[7] - [5] = [7] +[7] |= [5] --> [5, 7] +[7] ^= [5] --> [5, 7] +[7] &= [5] --> [] +[7] -= [5] --> [7] +[7] == [5] = False +[7] != [5] = True +[7] > [5] = False +[7] >= [5] = False +[7] < [5] = False +[7] <= [5] = False +[7] | [7] = [7] +[7] ^ [7] = [] +[7] & [7] = [7] +[7] - [7] = [] +[7] |= [7] --> [7] +[7] ^= [7] --> [] +[7] &= [7] --> [7] +[7] -= [7] --> [] +[7] == [7] = True +[7] != [7] = False +[7] > [7] = False +[7] >= [7] = True +[7] < [7] = False +[7] <= [7] = True +False +True 4 +True 3 +True 1 +True 2 +TypeError +TypeError +TypeError +TypeError diff --git a/micropython-tests/expected/basics/set_clear.py.exp b/micropython-tests/expected/basics/set_clear.py.exp new file mode 100644 index 0000000..e7578b8 --- /dev/null +++ b/micropython-tests/expected/basics/set_clear.py.exp @@ -0,0 +1,2 @@ +None +[] diff --git a/micropython-tests/expected/basics/set_comprehension.py.exp b/micropython-tests/expected/basics/set_comprehension.py.exp new file mode 100644 index 0000000..57387b1 --- /dev/null +++ b/micropython-tests/expected/basics/set_comprehension.py.exp @@ -0,0 +1 @@ +{0, 1, 2, 3, 4} diff --git a/micropython-tests/expected/basics/set_containment.py.exp b/micropython-tests/expected/basics/set_containment.py.exp new file mode 100644 index 0000000..456b58e --- /dev/null +++ b/micropython-tests/expected/basics/set_containment.py.exp @@ -0,0 +1,12 @@ +1 in {}: False +1 not in {}: True +1 in {1}: True +1 not in {1}: False +1 in {2}: False +1 not in {2}: True +2 in {}: False +2 not in {}: True +2 in {1}: False +2 not in {1}: True +2 in {2}: True +2 not in {2}: False diff --git a/micropython-tests/expected/basics/set_copy.py.exp b/micropython-tests/expected/basics/set_copy.py.exp new file mode 100644 index 0000000..00cb03f --- /dev/null +++ b/micropython-tests/expected/basics/set_copy.py.exp @@ -0,0 +1,2 @@ +[1, 2, 3, 4, 5] +[1, 2, 3, 4, 7] diff --git a/micropython-tests/expected/basics/set_difference.py.exp b/micropython-tests/expected/basics/set_difference.py.exp new file mode 100644 index 0000000..336c4b9 --- /dev/null +++ b/micropython-tests/expected/basics/set_difference.py.exp @@ -0,0 +1,11 @@ +[1, 2, 3, 4] +[2, 3, 4] +[3, 4] +[4] +None +[1, 2, 3, 4] +None +[2, 3, 4] +None +[3, 4] +set() diff --git a/micropython-tests/expected/basics/set_discard.py.exp b/micropython-tests/expected/basics/set_discard.py.exp new file mode 100644 index 0000000..0334edf --- /dev/null +++ b/micropython-tests/expected/basics/set_discard.py.exp @@ -0,0 +1,2 @@ +None +[2] diff --git a/micropython-tests/expected/basics/set_intersection.py.exp b/micropython-tests/expected/basics/set_intersection.py.exp new file mode 100644 index 0000000..f2977eb --- /dev/null +++ b/micropython-tests/expected/basics/set_intersection.py.exp @@ -0,0 +1,5 @@ +[1, 2, 3, 4] +[1, 3] +[3, 4] +None +[1] diff --git a/micropython-tests/expected/basics/set_isdisjoint.py.exp b/micropython-tests/expected/basics/set_isdisjoint.py.exp new file mode 100644 index 0000000..3ce45b8 --- /dev/null +++ b/micropython-tests/expected/basics/set_isdisjoint.py.exp @@ -0,0 +1,5 @@ +False +False +True +True +False diff --git a/micropython-tests/expected/basics/set_isfooset.py.exp b/micropython-tests/expected/basics/set_isfooset.py.exp new file mode 100644 index 0000000..56b5213 --- /dev/null +++ b/micropython-tests/expected/basics/set_isfooset.py.exp @@ -0,0 +1,80 @@ +True +True +True +False +True +False +True +False +True +False +True +False +True +False +True +False +False +True +True +True +True +False +False +False +False +False +True +True +True +False +True +False +False +True +False +True +True +True +False +False +False +False +False +True +False +True +True +True +False +True +False +False +False +False +True +True +False +False +False +False +False +False +False +False +False +True +False +False +False +False +False +False +True +True +False +False +False +False +False +False diff --git a/micropython-tests/expected/basics/set_iter.py.exp b/micropython-tests/expected/basics/set_iter.py.exp new file mode 100644 index 0000000..12bae17 --- /dev/null +++ b/micropython-tests/expected/basics/set_iter.py.exp @@ -0,0 +1 @@ +[1, 2, 3, 4] diff --git a/micropython-tests/expected/basics/set_iter_of_iter.py.exp b/micropython-tests/expected/basics/set_iter_of_iter.py.exp new file mode 100644 index 0000000..b5d8bb5 --- /dev/null +++ b/micropython-tests/expected/basics/set_iter_of_iter.py.exp @@ -0,0 +1 @@ +[1, 2, 3] diff --git a/micropython-tests/expected/basics/set_pop.py.exp b/micropython-tests/expected/basics/set_pop.py.exp new file mode 100644 index 0000000..6d8352b --- /dev/null +++ b/micropython-tests/expected/basics/set_pop.py.exp @@ -0,0 +1,13 @@ +1 +0 +1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] diff --git a/micropython-tests/expected/basics/set_remove.py.exp b/micropython-tests/expected/basics/set_remove.py.exp new file mode 100644 index 0000000..7abad3c --- /dev/null +++ b/micropython-tests/expected/basics/set_remove.py.exp @@ -0,0 +1,403 @@ +None +[] +KeyError 1 +testing set with 0 items +testing set with 1 items +1 +0 +testing set with 2 items +2 +1 +2 +1 +testing set with 3 items +3 +2 +3 +2 +3 +2 +testing set with 4 items +4 +3 +4 +3 +4 +3 +4 +3 +testing set with 5 items +5 +4 +5 +4 +5 +4 +5 +4 +5 +4 +testing set with 6 items +6 +5 +6 +5 +6 +5 +6 +5 +6 +5 +6 +5 +testing set with 7 items +7 +6 +7 +6 +7 +6 +7 +6 +7 +6 +7 +6 +7 +6 +testing set with 8 items +8 +7 +8 +7 +8 +7 +8 +7 +8 +7 +8 +7 +8 +7 +8 +7 +testing set with 9 items +9 +8 +9 +8 +9 +8 +9 +8 +9 +8 +9 +8 +9 +8 +9 +8 +9 +8 +testing set with 10 items +10 +9 +10 +9 +10 +9 +10 +9 +10 +9 +10 +9 +10 +9 +10 +9 +10 +9 +10 +9 +testing set with 11 items +11 +10 +11 +10 +11 +10 +11 +10 +11 +10 +11 +10 +11 +10 +11 +10 +11 +10 +11 +10 +11 +10 +testing set with 12 items +12 +11 +12 +11 +12 +11 +12 +11 +12 +11 +12 +11 +12 +11 +12 +11 +12 +11 +12 +11 +12 +11 +12 +11 +testing set with 13 items +13 +12 +13 +12 +13 +12 +13 +12 +13 +12 +13 +12 +13 +12 +13 +12 +13 +12 +13 +12 +13 +12 +13 +12 +13 +12 +testing set with 14 items +14 +13 +14 +13 +14 +13 +14 +13 +14 +13 +14 +13 +14 +13 +14 +13 +14 +13 +14 +13 +14 +13 +14 +13 +14 +13 +14 +13 +testing set with 15 items +15 +14 +15 +14 +15 +14 +15 +14 +15 +14 +15 +14 +15 +14 +15 +14 +15 +14 +15 +14 +15 +14 +15 +14 +15 +14 +15 +14 +15 +14 +testing set with 16 items +16 +15 +16 +15 +16 +15 +16 +15 +16 +15 +16 +15 +16 +15 +16 +15 +16 +15 +16 +15 +16 +15 +16 +15 +16 +15 +16 +15 +16 +15 +16 +15 +testing set with 17 items +17 +16 +17 +16 +17 +16 +17 +16 +17 +16 +17 +16 +17 +16 +17 +16 +17 +16 +17 +16 +17 +16 +17 +16 +17 +16 +17 +16 +17 +16 +17 +16 +17 +16 +testing set with 18 items +18 +17 +18 +17 +18 +17 +18 +17 +18 +17 +18 +17 +18 +17 +18 +17 +18 +17 +18 +17 +18 +17 +18 +17 +18 +17 +18 +17 +18 +17 +18 +17 +18 +17 +18 +17 +testing set with 19 items +19 +18 +19 +18 +19 +18 +19 +18 +19 +18 +19 +18 +19 +18 +19 +18 +19 +18 +19 +18 +19 +18 +19 +18 +19 +18 +19 +18 +19 +18 +19 +18 +19 +18 +19 +18 +19 +18 diff --git a/micropython-tests/expected/basics/set_specialmeth.py.exp b/micropython-tests/expected/basics/set_specialmeth.py.exp new file mode 100644 index 0000000..1cc8b5e --- /dev/null +++ b/micropython-tests/expected/basics/set_specialmeth.py.exp @@ -0,0 +1,2 @@ +True +False diff --git a/micropython-tests/expected/basics/set_symmetric_difference.py.exp b/micropython-tests/expected/basics/set_symmetric_difference.py.exp new file mode 100644 index 0000000..14d035a --- /dev/null +++ b/micropython-tests/expected/basics/set_symmetric_difference.py.exp @@ -0,0 +1,4 @@ +[1, 3] +[1, 3] +None +[1, 3] diff --git a/micropython-tests/expected/basics/set_type.py.exp b/micropython-tests/expected/basics/set_type.py.exp new file mode 100644 index 0000000..433df36 --- /dev/null +++ b/micropython-tests/expected/basics/set_type.py.exp @@ -0,0 +1,3 @@ + +True +True diff --git a/micropython-tests/expected/basics/set_union.py.exp b/micropython-tests/expected/basics/set_union.py.exp new file mode 100644 index 0000000..44e2ace --- /dev/null +++ b/micropython-tests/expected/basics/set_union.py.exp @@ -0,0 +1 @@ +[1, 2] diff --git a/micropython-tests/expected/basics/set_unop.py.exp b/micropython-tests/expected/basics/set_unop.py.exp new file mode 100644 index 0000000..4963a7b --- /dev/null +++ b/micropython-tests/expected/basics/set_unop.py.exp @@ -0,0 +1,5 @@ +False +True +0 +3 +TypeError diff --git a/micropython-tests/expected/basics/set_update.py.exp b/micropython-tests/expected/basics/set_update.py.exp new file mode 100644 index 0000000..1133089 --- /dev/null +++ b/micropython-tests/expected/basics/set_update.py.exp @@ -0,0 +1,3 @@ +{1} +[1, 2] +[1, 2, 3, 4] diff --git a/micropython-tests/expected/basics/slice_attrs.py.exp b/micropython-tests/expected/basics/slice_attrs.py.exp new file mode 100644 index 0000000..f2e55c7 --- /dev/null +++ b/micropython-tests/expected/basics/slice_attrs.py.exp @@ -0,0 +1,3 @@ +1 2 None +1 2 3 +AttributeError diff --git a/micropython-tests/expected/basics/slice_indices.py.exp b/micropython-tests/expected/basics/slice_indices.py.exp new file mode 100644 index 0000000..f715959 --- /dev/null +++ b/micropython-tests/expected/basics/slice_indices.py.exp @@ -0,0 +1,12 @@ +(0, 10, 1) +(2, 10, 1) +(0, 7, 1) +(2, 7, 1) +(2, 7, 2) +(2, 7, -2) +(7, 2, 2) +(7, 2, -2) +(2, 5, 2) +(2, 4, -2) +(5, 2, 2) +(4, 2, -2) diff --git a/micropython-tests/expected/basics/slice_intbig.py.exp b/micropython-tests/expected/basics/slice_intbig.py.exp new file mode 100644 index 0000000..09643b4 --- /dev/null +++ b/micropython-tests/expected/basics/slice_intbig.py.exp @@ -0,0 +1,3 @@ +[2, 3, 4, 5, 6, 7, 8, 9] +[0, 1] +[0, 2, 4, 6, 8] diff --git a/micropython-tests/expected/basics/slots_bool_len.py.exp b/micropython-tests/expected/basics/slots_bool_len.py.exp new file mode 100644 index 0000000..3df4fac --- /dev/null +++ b/micropython-tests/expected/basics/slots_bool_len.py.exp @@ -0,0 +1,8 @@ +__bool__ +True +__len__ +1 +__len__ +False +__len__ +0 diff --git a/micropython-tests/expected/basics/special_comparisons.py.exp b/micropython-tests/expected/basics/special_comparisons.py.exp new file mode 100644 index 0000000..df7010b --- /dev/null +++ b/micropython-tests/expected/basics/special_comparisons.py.exp @@ -0,0 +1,92 @@ +a == a +A __eq__ called +True +a != a +A __eq__ called +False +a == b +A __eq__ called +True +a != b +A __eq__ called +False +a == c +A __eq__ called +True +a != c +A __eq__ called +False +a == d +A __eq__ called +True +a != d +A __eq__ called +False +b == a +A __eq__ called +True +b != a +B __ne__ called +True +b == b +True +b != b +B __ne__ called +True +b == c +C __eq__ called +False +b != c +B __ne__ called +True +b == d +False +b != d +B __ne__ called +True +c == a +C __eq__ called +False +c != a +C __eq__ called +True +c == b +C __eq__ called +False +c != b +C __eq__ called +True +c == c +C __eq__ called +False +c != c +C __eq__ called +True +c == d +C __eq__ called +False +c != d +C __eq__ called +True +d == a +A __eq__ called +True +d != a +D __ne__ called +False +d == b +False +d != b +D __ne__ called +False +d == c +C __eq__ called +False +d != c +D __ne__ called +False +d == d +True +d != d +D __ne__ called +False diff --git a/micropython-tests/expected/basics/special_comparisons2.py.exp b/micropython-tests/expected/basics/special_comparisons2.py.exp new file mode 100644 index 0000000..2e2da4f --- /dev/null +++ b/micropython-tests/expected/basics/special_comparisons2.py.exp @@ -0,0 +1,64 @@ +E eq F +False +F ne E +-456 +==== testing None +E eq None +123 +E eq None +123 +E eq None +False +E eq None +False +False +False +F ne None +-456 +F ne None +-456 +==== testing 0 +E eq 0 +123 +E eq 0 +123 +E eq 0 +False +E eq 0 +False +False +False +F ne 0 +-456 +F ne 0 +-456 +==== testing 1 +E eq 1 +123 +E eq 1 +123 +E eq 1 +False +E eq 1 +False +False +False +F ne 1 +-456 +F ne 1 +-456 +==== testing a +E eq a +123 +E eq a +123 +E eq a +False +E eq a +False +False +False +F ne a +-456 +F ne a +-456 diff --git a/micropython-tests/expected/basics/special_methods.py.exp b/micropython-tests/expected/basics/special_methods.py.exp new file mode 100644 index 0000000..f41ebbe --- /dev/null +++ b/micropython-tests/expected/basics/special_methods.py.exp @@ -0,0 +1,17 @@ +__init__ called +__init__ called +__repr__ called +__eq__ called +__eq__ called +__ne__ called +__ne__ called +__lt__ called +__le__ called +__eq__ called +__ge__ called +__gt__ called +__add__ called +__sub__ called +42 +__int__ called +TypeError diff --git a/micropython-tests/expected/basics/stopiteration.py.exp b/micropython-tests/expected/basics/stopiteration.py.exp new file mode 100644 index 0000000..a2d1819 --- /dev/null +++ b/micropython-tests/expected/basics/stopiteration.py.exp @@ -0,0 +1,13 @@ +next (42,) +iter () +enumerate (42,) +map (42,) +zip (42,) +generator0 () +generator1 () +generator0 (42,) +generator1 () +send () +send (42,) +throw () +throw (42,) diff --git a/micropython-tests/expected/basics/string1.py.exp b/micropython-tests/expected/basics/string1.py.exp new file mode 100644 index 0000000..e02421d --- /dev/null +++ b/micropython-tests/expected/basics/string1.py.exp @@ -0,0 +1,23 @@ +abc +abc +abc +'\x07\x08\t\n\x0b\x0c\r' +\z + +abc +abc +abcdef +123456 +123123123123123 +TypeError +TypeError +b +c +IndexError +IndexError +['s', 't', 'r'] +True +True +False +True +'\'"' diff --git a/micropython-tests/expected/basics/string_center.py.exp b/micropython-tests/expected/basics/string_center.py.exp new file mode 100644 index 0000000..a94e7a3 --- /dev/null +++ b/micropython-tests/expected/basics/string_center.py.exp @@ -0,0 +1,7 @@ +foo +foo +foo +foo + foo + foo + foo diff --git a/micropython-tests/expected/basics/string_compare.py.exp b/micropython-tests/expected/basics/string_compare.py.exp new file mode 100644 index 0000000..4d94c2c --- /dev/null +++ b/micropython-tests/expected/basics/string_compare.py.exp @@ -0,0 +1,47 @@ +True +False +False +False +False +False +True +True +False +False +True +True +False +True +False +False +False +False +False +True +True +True +False +False +False +False +True +True +True +False +False +True +False +True +True +True +False +False +True +False +True +True +True +False +False +False +True diff --git a/micropython-tests/expected/basics/string_count.py.exp b/micropython-tests/expected/basics/string_count.py.exp new file mode 100644 index 0000000..60dc6c5 --- /dev/null +++ b/micropython-tests/expected/basics/string_count.py.exp @@ -0,0 +1,40 @@ +1 +0 +2 +1 +0 +0 +4 +3 +1 +1 +0 +5 +4 +2 +1 +1 +0 +3 +2 +1 +2 +2 +1 +1 +0 +1 +1 +3 +1 +2 +0 +4 +3 +4 +4 +3 +1 +1 +3 +TypeError diff --git a/micropython-tests/expected/basics/string_cr_conversion.py.exp b/micropython-tests/expected/basics/string_cr_conversion.py.exp new file mode 100644 index 0000000..86dca6a --- /dev/null +++ b/micropython-tests/expected/basics/string_cr_conversion.py.exp @@ -0,0 +1 @@ +'abc\ndef' diff --git a/micropython-tests/expected/basics/string_crlf_conversion.py.exp b/micropython-tests/expected/basics/string_crlf_conversion.py.exp new file mode 100644 index 0000000..86dca6a --- /dev/null +++ b/micropython-tests/expected/basics/string_crlf_conversion.py.exp @@ -0,0 +1 @@ +'abc\ndef' diff --git a/micropython-tests/expected/basics/string_endswith.py.exp b/micropython-tests/expected/basics/string_endswith.py.exp new file mode 100644 index 0000000..e71f00f --- /dev/null +++ b/micropython-tests/expected/basics/string_endswith.py.exp @@ -0,0 +1,7 @@ +True +False +False +True +True +False +TypeError diff --git a/micropython-tests/expected/basics/string_escape.py.exp b/micropython-tests/expected/basics/string_escape.py.exp new file mode 100644 index 0000000..e0f1035 --- /dev/null +++ b/micropython-tests/expected/basics/string_escape.py.exp @@ -0,0 +1,7 @@ +3 +1 +3 +5 +83 +3 +255 diff --git a/micropython-tests/expected/basics/string_find.py.exp b/micropython-tests/expected/basics/string_find.py.exp new file mode 100644 index 0000000..412821c --- /dev/null +++ b/micropython-tests/expected/basics/string_find.py.exp @@ -0,0 +1,25 @@ +2 +2 +2 +2 +2 +2 +-1 +-1 +-1 +2 +2 +2 +0 +0 +1 +2 +3 +-1 +-1 +-1 +-1 +-1 +-1 +-1 +TypeError diff --git a/micropython-tests/expected/basics/string_format.py.exp b/micropython-tests/expected/basics/string_format.py.exp new file mode 100644 index 0000000..a2c993a --- /dev/null +++ b/micropython-tests/expected/basics/string_format.py.exp @@ -0,0 +1,63 @@ +}}{{ >}{< +{}-{} >1-[4, 5]< +{0}-{1} >1-[4, 5]< +{1}-{0} >[4, 5]-1< +{:x} >1< +{!r} >2< +{:x} >10< +{!r} >'foo'< +{!s} >foo< +{0!r:>10s} {0!s:>10s}> 'foo' foo< +{:4b} >1010< +{:4c} > 0< +{:4d} > 123< +{:4n} > 123< +{:4o} > 173< +{:4x} > 7b< +{:4X} > 7B< +{:4,d} >12,345,678< +{:#4b} >0b1010< +{:#4o} >0o173< +{:#4x} >0x7b< +{:#4X} >0X7B< +{:#4d} > 0< +{:#4b} > 0b0< +{:#4o} > 0o0< +{:#4x} > 0x0< +{:#4X} > 0X0< +{:<6s} >ab < +{:>6s} > ab< +{:^6s} > ab < +{:.1s} >a< +{: <6d} >123 < +{: <6d} >-123 < +{:0<6d} >123000< +{:0<6d} >-12300< +{:@<6d} >123@@@< +{:@<6d} >-123@@< +{:@< 6d}> 123@@< +{:@< 6d}>-123@@< +{:@<+6d}>+123@@< +{:@<+6d}>-123@@< +{:@<-6d}>123@@@< +{:@<-6d}>-123@@< +{:@>6d} >@@-123< +{:@<6d} >-123@@< +{:@=6d} >-@@123< +{:06d} >-00123< +{:>20} > foo< +{:^20} > foo < +{:<20} >foo < +{:d} >0< +{:20} > 0< +{:d} >1< +{:20} > 1< +#######123 +#######123 +#######123 +foo + foo + foo +bar/foo +123 +123-bar diff --git a/micropython-tests/expected/basics/string_format2.py.exp b/micropython-tests/expected/basics/string_format2.py.exp new file mode 100644 index 0000000..379a20c --- /dev/null +++ b/micropython-tests/expected/basics/string_format2.py.exp @@ -0,0 +1,816 @@ +{:c} >0< +{:c} >0< +{:c} >0< +{:c} >0< +{:0< +{: 0< +{:00< +{:@0< +{:>c} >0< +{: >c} >0< +{:0>c} >0< +{:@>c} >0< +{:^c} >0< +{: ^c} >0< +{:0^c} >0< +{:@^c} >0< +{:1c} >0< +{:1c} >0< +{:1c} >0< +{:1c} >0< +{:<1c} >0< +{: <1c} >0< +{:0<1c} >0< +{:@<1c} >0< +{:>1c} >0< +{: >1c} >0< +{:0>1c} >0< +{:@>1c} >0< +{:^1c} >0< +{: ^1c} >0< +{:0^1c} >0< +{:@^1c} >0< +{:2c} > 0< +{:2c} > 0< +{:2c} > 0< +{:2c} > 0< +{:<2c} >0 < +{: <2c} >0 < +{:0<2c} >00< +{:@<2c} >0@< +{:>2c} > 0< +{: >2c} > 0< +{:0>2c} >00< +{:@>2c} >@0< +{:^2c} >0 < +{: ^2c} >0 < +{:0^2c} >00< +{:@^2c} >0@< +{:s} >< +{:s} >a< +{:s} >bcd< +{:s} >This is a test with a longer string< +{:s} >< +{:s} >a< +{:s} >bcd< +{:s} >This is a test with a longer string< +{:s} >< +{:s} >a< +{:s} >bcd< +{:s} >This is a test with a longer string< +{:s} >< +{:s} >a< +{:s} >bcd< +{:s} >This is a test with a longer string< +{:< +{:a< +{:bcd< +{:This is a test with a longer string< +{: < +{: a< +{: bcd< +{: This is a test with a longer string< +{:0< +{:0a< +{:0bcd< +{:0This is a test with a longer string< +{:@< +{:@a< +{:@bcd< +{:@This is a test with a longer string< +{:>s} >< +{:>s} >a< +{:>s} >bcd< +{:>s} >This is a test with a longer string< +{: >s} >< +{: >s} >a< +{: >s} >bcd< +{: >s} >This is a test with a longer string< +{:0>s} >< +{:0>s} >a< +{:0>s} >bcd< +{:0>s} >This is a test with a longer string< +{:@>s} >< +{:@>s} >a< +{:@>s} >bcd< +{:@>s} >This is a test with a longer string< +{:^s} >< +{:^s} >a< +{:^s} >bcd< +{:^s} >This is a test with a longer string< +{: ^s} >< +{: ^s} >a< +{: ^s} >bcd< +{: ^s} >This is a test with a longer string< +{:0^s} >< +{:0^s} >a< +{:0^s} >bcd< +{:0^s} >This is a test with a longer string< +{:@^s} >< +{:@^s} >a< +{:@^s} >bcd< +{:@^s} >This is a test with a longer string< +{:1s} > < +{:1s} >a< +{:1s} >bcd< +{:1s} >This is a test with a longer string< +{:1s} > < +{:1s} >a< +{:1s} >bcd< +{:1s} >This is a test with a longer string< +{:1s} > < +{:1s} >a< +{:1s} >bcd< +{:1s} >This is a test with a longer string< +{:1s} > < +{:1s} >a< +{:1s} >bcd< +{:1s} >This is a test with a longer string< +{:<1s} > < +{:<1s} >a< +{:<1s} >bcd< +{:<1s} >This is a test with a longer string< +{: <1s} > < +{: <1s} >a< +{: <1s} >bcd< +{: <1s} >This is a test with a longer string< +{:0<1s} >0< +{:0<1s} >a< +{:0<1s} >bcd< +{:0<1s} >This is a test with a longer string< +{:@<1s} >@< +{:@<1s} >a< +{:@<1s} >bcd< +{:@<1s} >This is a test with a longer string< +{:>1s} > < +{:>1s} >a< +{:>1s} >bcd< +{:>1s} >This is a test with a longer string< +{: >1s} > < +{: >1s} >a< +{: >1s} >bcd< +{: >1s} >This is a test with a longer string< +{:0>1s} >0< +{:0>1s} >a< +{:0>1s} >bcd< +{:0>1s} >This is a test with a longer string< +{:@>1s} >@< +{:@>1s} >a< +{:@>1s} >bcd< +{:@>1s} >This is a test with a longer string< +{:^1s} > < +{:^1s} >a< +{:^1s} >bcd< +{:^1s} >This is a test with a longer string< +{: ^1s} > < +{: ^1s} >a< +{: ^1s} >bcd< +{: ^1s} >This is a test with a longer string< +{:0^1s} >0< +{:0^1s} >a< +{:0^1s} >bcd< +{:0^1s} >This is a test with a longer string< +{:@^1s} >@< +{:@^1s} >a< +{:@^1s} >bcd< +{:@^1s} >This is a test with a longer string< +{:4s} > < +{:4s} >a < +{:4s} >bcd < +{:4s} >This is a test with a longer string< +{:4s} > < +{:4s} >a < +{:4s} >bcd < +{:4s} >This is a test with a longer string< +{:4s} > < +{:4s} >a < +{:4s} >bcd < +{:4s} >This is a test with a longer string< +{:4s} > < +{:4s} >a < +{:4s} >bcd < +{:4s} >This is a test with a longer string< +{:<4s} > < +{:<4s} >a < +{:<4s} >bcd < +{:<4s} >This is a test with a longer string< +{: <4s} > < +{: <4s} >a < +{: <4s} >bcd < +{: <4s} >This is a test with a longer string< +{:0<4s} >0000< +{:0<4s} >a000< +{:0<4s} >bcd0< +{:0<4s} >This is a test with a longer string< +{:@<4s} >@@@@< +{:@<4s} >a@@@< +{:@<4s} >bcd@< +{:@<4s} >This is a test with a longer string< +{:>4s} > < +{:>4s} > a< +{:>4s} > bcd< +{:>4s} >This is a test with a longer string< +{: >4s} > < +{: >4s} > a< +{: >4s} > bcd< +{: >4s} >This is a test with a longer string< +{:0>4s} >0000< +{:0>4s} >000a< +{:0>4s} >0bcd< +{:0>4s} >This is a test with a longer string< +{:@>4s} >@@@@< +{:@>4s} >@@@a< +{:@>4s} >@bcd< +{:@>4s} >This is a test with a longer string< +{:^4s} > < +{:^4s} > a < +{:^4s} >bcd < +{:^4s} >This is a test with a longer string< +{: ^4s} > < +{: ^4s} > a < +{: ^4s} >bcd < +{: ^4s} >This is a test with a longer string< +{:0^4s} >0000< +{:0^4s} >0a00< +{:0^4s} >bcd0< +{:0^4s} >This is a test with a longer string< +{:@^4s} >@@@@< +{:@^4s} >@a@@< +{:@^4s} >bcd@< +{:@^4s} >This is a test with a longer string< +{:10s} > < +{:10s} >a < +{:10s} >bcd < +{:10s} >This is a test with a longer string< +{:10s} > < +{:10s} >a < +{:10s} >bcd < +{:10s} >This is a test with a longer string< +{:10s} > < +{:10s} >a < +{:10s} >bcd < +{:10s} >This is a test with a longer string< +{:10s} > < +{:10s} >a < +{:10s} >bcd < +{:10s} >This is a test with a longer string< +{:<10s} > < +{:<10s} >a < +{:<10s} >bcd < +{:<10s} >This is a test with a longer string< +{: <10s}> < +{: <10s}>a < +{: <10s}>bcd < +{: <10s}>This is a test with a longer string< +{:0<10s}>0000000000< +{:0<10s}>a000000000< +{:0<10s}>bcd0000000< +{:0<10s}>This is a test with a longer string< +{:@<10s}>@@@@@@@@@@< +{:@<10s}>a@@@@@@@@@< +{:@<10s}>bcd@@@@@@@< +{:@<10s}>This is a test with a longer string< +{:>10s} > < +{:>10s} > a< +{:>10s} > bcd< +{:>10s} >This is a test with a longer string< +{: >10s}> < +{: >10s}> a< +{: >10s}> bcd< +{: >10s}>This is a test with a longer string< +{:0>10s}>0000000000< +{:0>10s}>000000000a< +{:0>10s}>0000000bcd< +{:0>10s}>This is a test with a longer string< +{:@>10s}>@@@@@@@@@@< +{:@>10s}>@@@@@@@@@a< +{:@>10s}>@@@@@@@bcd< +{:@>10s}>This is a test with a longer string< +{:^10s} > < +{:^10s} > a < +{:^10s} > bcd < +{:^10s} >This is a test with a longer string< +{: ^10s}> < +{: ^10s}> a < +{: ^10s}> bcd < +{: ^10s}>This is a test with a longer string< +{:0^10s}>0000000000< +{:0^10s}>0000a00000< +{:0^10s}>000bcd0000< +{:0^10s}>This is a test with a longer string< +{:@^10s}>@@@@@@@@@@< +{:@^10s}>@@@@a@@@@@< +{:@^10s}>@@@bcd@@@@< +{:@^10s}>This is a test with a longer string< +{!r:s} >''< +{!r:s} >'a'< +{!r:s} >'bcd'< +{!r:s} >'This is a test with a longer string'< +{!r:s} >''< +{!r:s} >'a'< +{!r:s} >'bcd'< +{!r:s} >'This is a test with a longer string'< +{!r:s} >''< +{!r:s} >'a'< +{!r:s} >'bcd'< +{!r:s} >'This is a test with a longer string'< +{!r:s} >''< +{!r:s} >'a'< +{!r:s} >'bcd'< +{!r:s} >'This is a test with a longer string'< +{!r:''< +{!r:'a'< +{!r:'bcd'< +{!r:'This is a test with a longer string'< +{!r: ''< +{!r: 'a'< +{!r: 'bcd'< +{!r: 'This is a test with a longer string'< +{!r:0''< +{!r:0'a'< +{!r:0'bcd'< +{!r:0'This is a test with a longer string'< +{!r:@''< +{!r:@'a'< +{!r:@'bcd'< +{!r:@'This is a test with a longer string'< +{!r:>s} >''< +{!r:>s} >'a'< +{!r:>s} >'bcd'< +{!r:>s} >'This is a test with a longer string'< +{!r: >s}>''< +{!r: >s}>'a'< +{!r: >s}>'bcd'< +{!r: >s}>'This is a test with a longer string'< +{!r:0>s}>''< +{!r:0>s}>'a'< +{!r:0>s}>'bcd'< +{!r:0>s}>'This is a test with a longer string'< +{!r:@>s}>''< +{!r:@>s}>'a'< +{!r:@>s}>'bcd'< +{!r:@>s}>'This is a test with a longer string'< +{!r:^s} >''< +{!r:^s} >'a'< +{!r:^s} >'bcd'< +{!r:^s} >'This is a test with a longer string'< +{!r: ^s}>''< +{!r: ^s}>'a'< +{!r: ^s}>'bcd'< +{!r: ^s}>'This is a test with a longer string'< +{!r:0^s}>''< +{!r:0^s}>'a'< +{!r:0^s}>'bcd'< +{!r:0^s}>'This is a test with a longer string'< +{!r:@^s}>''< +{!r:@^s}>'a'< +{!r:@^s}>'bcd'< +{!r:@^s}>'This is a test with a longer string'< +{!r:1s} >''< +{!r:1s} >'a'< +{!r:1s} >'bcd'< +{!r:1s} >'This is a test with a longer string'< +{!r:1s} >''< +{!r:1s} >'a'< +{!r:1s} >'bcd'< +{!r:1s} >'This is a test with a longer string'< +{!r:1s} >''< +{!r:1s} >'a'< +{!r:1s} >'bcd'< +{!r:1s} >'This is a test with a longer string'< +{!r:1s} >''< +{!r:1s} >'a'< +{!r:1s} >'bcd'< +{!r:1s} >'This is a test with a longer string'< +{!r:<1s}>''< +{!r:<1s}>'a'< +{!r:<1s}>'bcd'< +{!r:<1s}>'This is a test with a longer string'< +{!r: <1s}>''< +{!r: <1s}>'a'< +{!r: <1s}>'bcd'< +{!r: <1s}>'This is a test with a longer string'< +{!r:0<1s}>''< +{!r:0<1s}>'a'< +{!r:0<1s}>'bcd'< +{!r:0<1s}>'This is a test with a longer string'< +{!r:@<1s}>''< +{!r:@<1s}>'a'< +{!r:@<1s}>'bcd'< +{!r:@<1s}>'This is a test with a longer string'< +{!r:>1s}>''< +{!r:>1s}>'a'< +{!r:>1s}>'bcd'< +{!r:>1s}>'This is a test with a longer string'< +{!r: >1s}>''< +{!r: >1s}>'a'< +{!r: >1s}>'bcd'< +{!r: >1s}>'This is a test with a longer string'< +{!r:0>1s}>''< +{!r:0>1s}>'a'< +{!r:0>1s}>'bcd'< +{!r:0>1s}>'This is a test with a longer string'< +{!r:@>1s}>''< +{!r:@>1s}>'a'< +{!r:@>1s}>'bcd'< +{!r:@>1s}>'This is a test with a longer string'< +{!r:^1s}>''< +{!r:^1s}>'a'< +{!r:^1s}>'bcd'< +{!r:^1s}>'This is a test with a longer string'< +{!r: ^1s}>''< +{!r: ^1s}>'a'< +{!r: ^1s}>'bcd'< +{!r: ^1s}>'This is a test with a longer string'< +{!r:0^1s}>''< +{!r:0^1s}>'a'< +{!r:0^1s}>'bcd'< +{!r:0^1s}>'This is a test with a longer string'< +{!r:@^1s}>''< +{!r:@^1s}>'a'< +{!r:@^1s}>'bcd'< +{!r:@^1s}>'This is a test with a longer string'< +{!r:4s} >'' < +{!r:4s} >'a' < +{!r:4s} >'bcd'< +{!r:4s} >'This is a test with a longer string'< +{!r:4s} >'' < +{!r:4s} >'a' < +{!r:4s} >'bcd'< +{!r:4s} >'This is a test with a longer string'< +{!r:4s} >'' < +{!r:4s} >'a' < +{!r:4s} >'bcd'< +{!r:4s} >'This is a test with a longer string'< +{!r:4s} >'' < +{!r:4s} >'a' < +{!r:4s} >'bcd'< +{!r:4s} >'This is a test with a longer string'< +{!r:<4s}>'' < +{!r:<4s}>'a' < +{!r:<4s}>'bcd'< +{!r:<4s}>'This is a test with a longer string'< +{!r: <4s}>'' < +{!r: <4s}>'a' < +{!r: <4s}>'bcd'< +{!r: <4s}>'This is a test with a longer string'< +{!r:0<4s}>''00< +{!r:0<4s}>'a'0< +{!r:0<4s}>'bcd'< +{!r:0<4s}>'This is a test with a longer string'< +{!r:@<4s}>''@@< +{!r:@<4s}>'a'@< +{!r:@<4s}>'bcd'< +{!r:@<4s}>'This is a test with a longer string'< +{!r:>4s}> ''< +{!r:>4s}> 'a'< +{!r:>4s}>'bcd'< +{!r:>4s}>'This is a test with a longer string'< +{!r: >4s}> ''< +{!r: >4s}> 'a'< +{!r: >4s}>'bcd'< +{!r: >4s}>'This is a test with a longer string'< +{!r:0>4s}>00''< +{!r:0>4s}>0'a'< +{!r:0>4s}>'bcd'< +{!r:0>4s}>'This is a test with a longer string'< +{!r:@>4s}>@@''< +{!r:@>4s}>@'a'< +{!r:@>4s}>'bcd'< +{!r:@>4s}>'This is a test with a longer string'< +{!r:^4s}> '' < +{!r:^4s}>'a' < +{!r:^4s}>'bcd'< +{!r:^4s}>'This is a test with a longer string'< +{!r: ^4s}> '' < +{!r: ^4s}>'a' < +{!r: ^4s}>'bcd'< +{!r: ^4s}>'This is a test with a longer string'< +{!r:0^4s}>0''0< +{!r:0^4s}>'a'0< +{!r:0^4s}>'bcd'< +{!r:0^4s}>'This is a test with a longer string'< +{!r:@^4s}>@''@< +{!r:@^4s}>'a'@< +{!r:@^4s}>'bcd'< +{!r:@^4s}>'This is a test with a longer string'< +{!r:10s}>'' < +{!r:10s}>'a' < +{!r:10s}>'bcd' < +{!r:10s}>'This is a test with a longer string'< +{!r:10s}>'' < +{!r:10s}>'a' < +{!r:10s}>'bcd' < +{!r:10s}>'This is a test with a longer string'< +{!r:10s}>'' < +{!r:10s}>'a' < +{!r:10s}>'bcd' < +{!r:10s}>'This is a test with a longer string'< +{!r:10s}>'' < +{!r:10s}>'a' < +{!r:10s}>'bcd' < +{!r:10s}>'This is a test with a longer string'< +{!r:<10s}>'' < +{!r:<10s}>'a' < +{!r:<10s}>'bcd' < +{!r:<10s}>'This is a test with a longer string'< +{!r: <10s}>'' < +{!r: <10s}>'a' < +{!r: <10s}>'bcd' < +{!r: <10s}>'This is a test with a longer string'< +{!r:0<10s}>''00000000< +{!r:0<10s}>'a'0000000< +{!r:0<10s}>'bcd'00000< +{!r:0<10s}>'This is a test with a longer string'< +{!r:@<10s}>''@@@@@@@@< +{!r:@<10s}>'a'@@@@@@@< +{!r:@<10s}>'bcd'@@@@@< +{!r:@<10s}>'This is a test with a longer string'< +{!r:>10s}> ''< +{!r:>10s}> 'a'< +{!r:>10s}> 'bcd'< +{!r:>10s}>'This is a test with a longer string'< +{!r: >10s}> ''< +{!r: >10s}> 'a'< +{!r: >10s}> 'bcd'< +{!r: >10s}>'This is a test with a longer string'< +{!r:0>10s}>00000000''< +{!r:0>10s}>0000000'a'< +{!r:0>10s}>00000'bcd'< +{!r:0>10s}>'This is a test with a longer string'< +{!r:@>10s}>@@@@@@@@''< +{!r:@>10s}>@@@@@@@'a'< +{!r:@>10s}>@@@@@'bcd'< +{!r:@>10s}>'This is a test with a longer string'< +{!r:^10s}> '' < +{!r:^10s}> 'a' < +{!r:^10s}> 'bcd' < +{!r:^10s}>'This is a test with a longer string'< +{!r: ^10s}> '' < +{!r: ^10s}> 'a' < +{!r: ^10s}> 'bcd' < +{!r: ^10s}>'This is a test with a longer string'< +{!r:0^10s}>0000''0000< +{!r:0^10s}>000'a'0000< +{!r:0^10s}>00'bcd'000< +{!r:0^10s}>'This is a test with a longer string'< +{!r:@^10s}>@@@@''@@@@< +{!r:@^10s}>@@@'a'@@@@< +{!r:@^10s}>@@'bcd'@@@< +{!r:@^10s}>'This is a test with a longer string'< +{!s:s} >< +{!s:s} >a< +{!s:s} >bcd< +{!s:s} >This is a test with a longer string< +{!s:s} >< +{!s:s} >a< +{!s:s} >bcd< +{!s:s} >This is a test with a longer string< +{!s:s} >< +{!s:s} >a< +{!s:s} >bcd< +{!s:s} >This is a test with a longer string< +{!s:s} >< +{!s:s} >a< +{!s:s} >bcd< +{!s:s} >This is a test with a longer string< +{!s:< +{!s:a< +{!s:bcd< +{!s:This is a test with a longer string< +{!s: < +{!s: a< +{!s: bcd< +{!s: This is a test with a longer string< +{!s:0< +{!s:0a< +{!s:0bcd< +{!s:0This is a test with a longer string< +{!s:@< +{!s:@a< +{!s:@bcd< +{!s:@This is a test with a longer string< +{!s:>s} >< +{!s:>s} >a< +{!s:>s} >bcd< +{!s:>s} >This is a test with a longer string< +{!s: >s}>< +{!s: >s}>a< +{!s: >s}>bcd< +{!s: >s}>This is a test with a longer string< +{!s:0>s}>< +{!s:0>s}>a< +{!s:0>s}>bcd< +{!s:0>s}>This is a test with a longer string< +{!s:@>s}>< +{!s:@>s}>a< +{!s:@>s}>bcd< +{!s:@>s}>This is a test with a longer string< +{!s:^s} >< +{!s:^s} >a< +{!s:^s} >bcd< +{!s:^s} >This is a test with a longer string< +{!s: ^s}>< +{!s: ^s}>a< +{!s: ^s}>bcd< +{!s: ^s}>This is a test with a longer string< +{!s:0^s}>< +{!s:0^s}>a< +{!s:0^s}>bcd< +{!s:0^s}>This is a test with a longer string< +{!s:@^s}>< +{!s:@^s}>a< +{!s:@^s}>bcd< +{!s:@^s}>This is a test with a longer string< +{!s:1s} > < +{!s:1s} >a< +{!s:1s} >bcd< +{!s:1s} >This is a test with a longer string< +{!s:1s} > < +{!s:1s} >a< +{!s:1s} >bcd< +{!s:1s} >This is a test with a longer string< +{!s:1s} > < +{!s:1s} >a< +{!s:1s} >bcd< +{!s:1s} >This is a test with a longer string< +{!s:1s} > < +{!s:1s} >a< +{!s:1s} >bcd< +{!s:1s} >This is a test with a longer string< +{!s:<1s}> < +{!s:<1s}>a< +{!s:<1s}>bcd< +{!s:<1s}>This is a test with a longer string< +{!s: <1s}> < +{!s: <1s}>a< +{!s: <1s}>bcd< +{!s: <1s}>This is a test with a longer string< +{!s:0<1s}>0< +{!s:0<1s}>a< +{!s:0<1s}>bcd< +{!s:0<1s}>This is a test with a longer string< +{!s:@<1s}>@< +{!s:@<1s}>a< +{!s:@<1s}>bcd< +{!s:@<1s}>This is a test with a longer string< +{!s:>1s}> < +{!s:>1s}>a< +{!s:>1s}>bcd< +{!s:>1s}>This is a test with a longer string< +{!s: >1s}> < +{!s: >1s}>a< +{!s: >1s}>bcd< +{!s: >1s}>This is a test with a longer string< +{!s:0>1s}>0< +{!s:0>1s}>a< +{!s:0>1s}>bcd< +{!s:0>1s}>This is a test with a longer string< +{!s:@>1s}>@< +{!s:@>1s}>a< +{!s:@>1s}>bcd< +{!s:@>1s}>This is a test with a longer string< +{!s:^1s}> < +{!s:^1s}>a< +{!s:^1s}>bcd< +{!s:^1s}>This is a test with a longer string< +{!s: ^1s}> < +{!s: ^1s}>a< +{!s: ^1s}>bcd< +{!s: ^1s}>This is a test with a longer string< +{!s:0^1s}>0< +{!s:0^1s}>a< +{!s:0^1s}>bcd< +{!s:0^1s}>This is a test with a longer string< +{!s:@^1s}>@< +{!s:@^1s}>a< +{!s:@^1s}>bcd< +{!s:@^1s}>This is a test with a longer string< +{!s:4s} > < +{!s:4s} >a < +{!s:4s} >bcd < +{!s:4s} >This is a test with a longer string< +{!s:4s} > < +{!s:4s} >a < +{!s:4s} >bcd < +{!s:4s} >This is a test with a longer string< +{!s:4s} > < +{!s:4s} >a < +{!s:4s} >bcd < +{!s:4s} >This is a test with a longer string< +{!s:4s} > < +{!s:4s} >a < +{!s:4s} >bcd < +{!s:4s} >This is a test with a longer string< +{!s:<4s}> < +{!s:<4s}>a < +{!s:<4s}>bcd < +{!s:<4s}>This is a test with a longer string< +{!s: <4s}> < +{!s: <4s}>a < +{!s: <4s}>bcd < +{!s: <4s}>This is a test with a longer string< +{!s:0<4s}>0000< +{!s:0<4s}>a000< +{!s:0<4s}>bcd0< +{!s:0<4s}>This is a test with a longer string< +{!s:@<4s}>@@@@< +{!s:@<4s}>a@@@< +{!s:@<4s}>bcd@< +{!s:@<4s}>This is a test with a longer string< +{!s:>4s}> < +{!s:>4s}> a< +{!s:>4s}> bcd< +{!s:>4s}>This is a test with a longer string< +{!s: >4s}> < +{!s: >4s}> a< +{!s: >4s}> bcd< +{!s: >4s}>This is a test with a longer string< +{!s:0>4s}>0000< +{!s:0>4s}>000a< +{!s:0>4s}>0bcd< +{!s:0>4s}>This is a test with a longer string< +{!s:@>4s}>@@@@< +{!s:@>4s}>@@@a< +{!s:@>4s}>@bcd< +{!s:@>4s}>This is a test with a longer string< +{!s:^4s}> < +{!s:^4s}> a < +{!s:^4s}>bcd < +{!s:^4s}>This is a test with a longer string< +{!s: ^4s}> < +{!s: ^4s}> a < +{!s: ^4s}>bcd < +{!s: ^4s}>This is a test with a longer string< +{!s:0^4s}>0000< +{!s:0^4s}>0a00< +{!s:0^4s}>bcd0< +{!s:0^4s}>This is a test with a longer string< +{!s:@^4s}>@@@@< +{!s:@^4s}>@a@@< +{!s:@^4s}>bcd@< +{!s:@^4s}>This is a test with a longer string< +{!s:10s}> < +{!s:10s}>a < +{!s:10s}>bcd < +{!s:10s}>This is a test with a longer string< +{!s:10s}> < +{!s:10s}>a < +{!s:10s}>bcd < +{!s:10s}>This is a test with a longer string< +{!s:10s}> < +{!s:10s}>a < +{!s:10s}>bcd < +{!s:10s}>This is a test with a longer string< +{!s:10s}> < +{!s:10s}>a < +{!s:10s}>bcd < +{!s:10s}>This is a test with a longer string< +{!s:<10s}> < +{!s:<10s}>a < +{!s:<10s}>bcd < +{!s:<10s}>This is a test with a longer string< +{!s: <10s}> < +{!s: <10s}>a < +{!s: <10s}>bcd < +{!s: <10s}>This is a test with a longer string< +{!s:0<10s}>0000000000< +{!s:0<10s}>a000000000< +{!s:0<10s}>bcd0000000< +{!s:0<10s}>This is a test with a longer string< +{!s:@<10s}>@@@@@@@@@@< +{!s:@<10s}>a@@@@@@@@@< +{!s:@<10s}>bcd@@@@@@@< +{!s:@<10s}>This is a test with a longer string< +{!s:>10s}> < +{!s:>10s}> a< +{!s:>10s}> bcd< +{!s:>10s}>This is a test with a longer string< +{!s: >10s}> < +{!s: >10s}> a< +{!s: >10s}> bcd< +{!s: >10s}>This is a test with a longer string< +{!s:0>10s}>0000000000< +{!s:0>10s}>000000000a< +{!s:0>10s}>0000000bcd< +{!s:0>10s}>This is a test with a longer string< +{!s:@>10s}>@@@@@@@@@@< +{!s:@>10s}>@@@@@@@@@a< +{!s:@>10s}>@@@@@@@bcd< +{!s:@>10s}>This is a test with a longer string< +{!s:^10s}> < +{!s:^10s}> a < +{!s:^10s}> bcd < +{!s:^10s}>This is a test with a longer string< +{!s: ^10s}> < +{!s: ^10s}> a < +{!s: ^10s}> bcd < +{!s: ^10s}>This is a test with a longer string< +{!s:0^10s}>0000000000< +{!s:0^10s}>0000a00000< +{!s:0^10s}>000bcd0000< +{!s:0^10s}>This is a test with a longer string< +{!s:@^10s}>@@@@@@@@@@< +{!s:@^10s}>@@@@a@@@@@< +{!s:@^10s}>@@@bcd@@@@< +{!s:@^10s}>This is a test with a longer string< diff --git a/micropython-tests/expected/basics/string_format_error.py.exp b/micropython-tests/expected/basics/string_format_error.py.exp new file mode 100644 index 0000000..d6d28b2 --- /dev/null +++ b/micropython-tests/expected/basics/string_format_error.py.exp @@ -0,0 +1,17 @@ +ValueError +IndexError +ValueError +ValueError +ValueError +ValueError +ValueError +ValueError +IndexError +KeyError +ValueError +IndexError +ValueError +ValueError +ValueError +ValueError +ValueError diff --git a/micropython-tests/expected/basics/string_format_modulo.py.exp b/micropython-tests/expected/basics/string_format_modulo.py.exp new file mode 100644 index 0000000..d0410c4 Binary files /dev/null and b/micropython-tests/expected/basics/string_format_modulo.py.exp differ diff --git a/micropython-tests/expected/basics/string_format_modulo_int.py.exp b/micropython-tests/expected/basics/string_format_modulo_int.py.exp new file mode 100644 index 0000000..a2ef32d --- /dev/null +++ b/micropython-tests/expected/basics/string_format_modulo_int.py.exp @@ -0,0 +1,61 @@ +10 ++10 + 10 +-10 +1 +-10 +1 +-10 +1 +12 +22 +12 +0x12 +0X12 + 0o22 + 0x12 +0x0012 + 10 +20 +00000020 +> -0012< +> -0012< +> -0012< +>-0000012< +>-0012 < +>-0012 < +>-0012 < +> 0012< +> 0012< +> +0012< +>00000012< +>0012 < +>0012 < +>+0012 < +-1 ++0 ++1 +-1 ++0 ++1 + -1 + +0 + +1 +-1 ++0 ++1 +-1 ++0 ++1 + -1 + +0 + +1 +-1 ++0 ++1 +-1 ++0 ++1 +-01 ++00 ++01 diff --git a/micropython-tests/expected/basics/string_index.py.exp b/micropython-tests/expected/basics/string_index.py.exp new file mode 100644 index 0000000..47587ec --- /dev/null +++ b/micropython-tests/expected/basics/string_index.py.exp @@ -0,0 +1,23 @@ +2 +2 +2 +2 +2 +2 +Raised ValueError +Raised ValueError +Raised ValueError +2 +2 +2 +0 +0 +1 +2 +3 +Raised ValueError +Raised ValueError +Raised ValueError +Raised ValueError +Raised ValueError +Raised ValueError diff --git a/micropython-tests/expected/basics/string_istest.py.exp b/micropython-tests/expected/basics/string_istest.py.exp new file mode 100644 index 0000000..b633280 --- /dev/null +++ b/micropython-tests/expected/basics/string_istest.py.exp @@ -0,0 +1,20 @@ +False +True +False +False +False +True +False +False +False +True +False +False +False +True +False +False +True +False +False +True diff --git a/micropython-tests/expected/basics/string_join.py.exp b/micropython-tests/expected/basics/string_join.py.exp new file mode 100644 index 0000000..4e26c50 --- /dev/null +++ b/micropython-tests/expected/basics/string_join.py.exp @@ -0,0 +1,19 @@ + +a +a,b + +a +a,b + +abc +a,b,c +abc,abc,abc,abc,abc +b'abc,123' +TypeError +TypeError +TypeError +ab +ab +ab +ab +a diff --git a/micropython-tests/expected/basics/string_large.py.exp b/micropython-tests/expected/basics/string_large.py.exp new file mode 100644 index 0000000..e69de29 diff --git a/micropython-tests/expected/basics/string_mult.py.exp b/micropython-tests/expected/basics/string_mult.py.exp new file mode 100644 index 0000000..d275ce7 --- /dev/null +++ b/micropython-tests/expected/basics/string_mult.py.exp @@ -0,0 +1,12 @@ +00000 + + + + + + +1212 +1212 +12121212 +12121212 +123 123123123 diff --git a/micropython-tests/expected/basics/string_partition.py.exp b/micropython-tests/expected/basics/string_partition.py.exp new file mode 100644 index 0000000..5f3c3ff --- /dev/null +++ b/micropython-tests/expected/basics/string_partition.py.exp @@ -0,0 +1,20 @@ +('asdf', '', '') +('', 'a', 'sdf') +('a', 's', 'df') +('asd', 'f', '') +('as', 'd', 'f') +('', 'asd', 'f') +('a', 'sdf', '') +('', 'as', 'df') +('as', 'df', '') +('', 'asdf', '') +('asdf', '', '') +('asdf', '', '') +('asdf', '', '') +('', 'a', 'bba') +('a', 'b', 'ba') +Raised TypeError +Raised ValueError +(b'a', b'b', b'ba') +Raised TypeError +Raised TypeError diff --git a/micropython-tests/expected/basics/string_replace.py.exp b/micropython-tests/expected/basics/string_replace.py.exp new file mode 100644 index 0000000..e45de9b --- /dev/null +++ b/micropython-tests/expected/basics/string_replace.py.exp @@ -0,0 +1,15 @@ + +aaa +aaa +bbb +bsdfbsdf +ccbbccbbccbbaa +a +testtest +testINGtestING! +1 +1A1 +1A1B1 +12A12B12 +TypeError +TypeError diff --git a/micropython-tests/expected/basics/string_repr.py.exp b/micropython-tests/expected/basics/string_repr.py.exp new file mode 100644 index 0000000..3065d8b --- /dev/null +++ b/micropython-tests/expected/basics/string_repr.py.exp @@ -0,0 +1,128 @@ +0x00: '\x00' +0x01: '\x01' +0x02: '\x02' +0x03: '\x03' +0x04: '\x04' +0x05: '\x05' +0x06: '\x06' +0x07: '\x07' +0x08: '\x08' +0x09: '\t' +0x0a: '\n' +0x0b: '\x0b' +0x0c: '\x0c' +0x0d: '\r' +0x0e: '\x0e' +0x0f: '\x0f' +0x10: '\x10' +0x11: '\x11' +0x12: '\x12' +0x13: '\x13' +0x14: '\x14' +0x15: '\x15' +0x16: '\x16' +0x17: '\x17' +0x18: '\x18' +0x19: '\x19' +0x1a: '\x1a' +0x1b: '\x1b' +0x1c: '\x1c' +0x1d: '\x1d' +0x1e: '\x1e' +0x1f: '\x1f' +0x20: ' ' +0x21: '!' +0x22: '"' +0x23: '#' +0x24: '$' +0x25: '%' +0x26: '&' +0x27: "'" +0x28: '(' +0x29: ')' +0x2a: '*' +0x2b: '+' +0x2c: ',' +0x2d: '-' +0x2e: '.' +0x2f: '/' +0x30: '0' +0x31: '1' +0x32: '2' +0x33: '3' +0x34: '4' +0x35: '5' +0x36: '6' +0x37: '7' +0x38: '8' +0x39: '9' +0x3a: ':' +0x3b: ';' +0x3c: '<' +0x3d: '=' +0x3e: '>' +0x3f: '?' +0x40: '@' +0x41: 'A' +0x42: 'B' +0x43: 'C' +0x44: 'D' +0x45: 'E' +0x46: 'F' +0x47: 'G' +0x48: 'H' +0x49: 'I' +0x4a: 'J' +0x4b: 'K' +0x4c: 'L' +0x4d: 'M' +0x4e: 'N' +0x4f: 'O' +0x50: 'P' +0x51: 'Q' +0x52: 'R' +0x53: 'S' +0x54: 'T' +0x55: 'U' +0x56: 'V' +0x57: 'W' +0x58: 'X' +0x59: 'Y' +0x5a: 'Z' +0x5b: '[' +0x5c: '\\' +0x5d: ']' +0x5e: '^' +0x5f: '_' +0x60: '`' +0x61: 'a' +0x62: 'b' +0x63: 'c' +0x64: 'd' +0x65: 'e' +0x66: 'f' +0x67: 'g' +0x68: 'h' +0x69: 'i' +0x6a: 'j' +0x6b: 'k' +0x6c: 'l' +0x6d: 'm' +0x6e: 'n' +0x6f: 'o' +0x70: 'p' +0x71: 'q' +0x72: 'r' +0x73: 's' +0x74: 't' +0x75: 'u' +0x76: 'v' +0x77: 'w' +0x78: 'x' +0x79: 'y' +0x7a: 'z' +0x7b: '{' +0x7c: '|' +0x7d: '}' +0x7e: '~' +0x7f: '\x7f' diff --git a/micropython-tests/expected/basics/string_rfind.py.exp b/micropython-tests/expected/basics/string_rfind.py.exp new file mode 100644 index 0000000..8d194b6 --- /dev/null +++ b/micropython-tests/expected/basics/string_rfind.py.exp @@ -0,0 +1,24 @@ +2 +2 +2 +2 +2 +2 +-1 +-1 +-1 +2 +2 +2 +3 +3 +3 +3 +3 +-1 +-1 +-1 +-1 +-1 +-1 +-1 diff --git a/micropython-tests/expected/basics/string_rindex.py.exp b/micropython-tests/expected/basics/string_rindex.py.exp new file mode 100644 index 0000000..77a6e18 --- /dev/null +++ b/micropython-tests/expected/basics/string_rindex.py.exp @@ -0,0 +1,23 @@ +2 +2 +2 +2 +2 +2 +Raised ValueError +Raised ValueError +Raised ValueError +2 +2 +2 +3 +3 +3 +3 +3 +Raised ValueError +Raised ValueError +Raised ValueError +Raised ValueError +Raised ValueError +Raised ValueError diff --git a/micropython-tests/expected/basics/string_rpartition.py.exp b/micropython-tests/expected/basics/string_rpartition.py.exp new file mode 100644 index 0000000..643ca42 --- /dev/null +++ b/micropython-tests/expected/basics/string_rpartition.py.exp @@ -0,0 +1,17 @@ +('', '', 'asdf') +('', 'a', 'sdf') +('a', 's', 'df') +('asd', 'f', '') +('as', 'd', 'f') +('', 'asd', 'f') +('a', 'sdf', '') +('', 'as', 'df') +('as', 'df', '') +('', 'asdf', '') +('', '', 'asdf') +('', '', 'asdf') +('', '', 'asdf') +('abb', 'a', '') +('ab', 'b', 'a') +Raised TypeError +Raised ValueError diff --git a/micropython-tests/expected/basics/string_rsplit.py.exp b/micropython-tests/expected/basics/string_rsplit.py.exp new file mode 100644 index 0000000..844ee74 --- /dev/null +++ b/micropython-tests/expected/basics/string_rsplit.py.exp @@ -0,0 +1,29 @@ +['a', 'b'] +ValueError +ValueError +TypeError +['', 'bc'] +['a', 'c'] +['ab', ''] +['abc'] +['', 'c'] +['a', ''] +['', ''] +['abc'] +['a', 'a', ''] +['abcabc'] +['abca', ''] +['a', 'a', ''] +['10/11', '12'] +['10', '11', '12'] +['10', '11', '12'] +['10', '11', '12'] +['10', '11', '12'] +['/*10/*11/*12', ''] +['/*10/*11', '12', ''] +['/*10', '11', '12', ''] +['', '10', '11', '12', ''] +['', '10', '11', '12', ''] +[b'a', b'a', b''] +['', 'b', 'c', ''] +['', 'b', 'c', ''] diff --git a/micropython-tests/expected/basics/string_slice.py.exp b/micropython-tests/expected/basics/string_slice.py.exp new file mode 100644 index 0000000..1c461f8 --- /dev/null +++ b/micropython-tests/expected/basics/string_slice.py.exp @@ -0,0 +1,23 @@ +1 +12 +1 +23 +123 +12 + + + + +123 +123 +123 + + + +123 + + +123 + + +b'12' diff --git a/micropython-tests/expected/basics/string_split.py.exp b/micropython-tests/expected/basics/string_split.py.exp new file mode 100644 index 0000000..4a710b3 --- /dev/null +++ b/micropython-tests/expected/basics/string_split.py.exp @@ -0,0 +1,23 @@ +['a', 'b'] +['a', 'b'] +['a', 'b '] +['a', 'b'] +['a', 'b c '] +['a b c '] +['a', 'b', 'c'] +['foo', '\x07', 'bar'] +['foo', 'bar'] +ValueError +['', 'bc'] +['a', 'c'] +['ab', ''] +['abc'] +['', 'c'] +['a', ''] +['', ''] +['abc'] +['a', 'a', ''] +['abcabc'] +['a', 'abc'] +['a', 'a', ''] +[b'a', b'a', b''] diff --git a/micropython-tests/expected/basics/string_splitlines.py.exp b/micropython-tests/expected/basics/string_splitlines.py.exp new file mode 100644 index 0000000..52c8bcd --- /dev/null +++ b/micropython-tests/expected/basics/string_splitlines.py.exp @@ -0,0 +1,20 @@ +['foo', 'bar'] +['foo', 'bar'] +['foo and', 'bar'] +['foo', 'bar', ''] +['foo', '', 'bar', ''] +['', 'foo', 'bar'] +['foo', 'bar'] +['', 'foo and', '', 'bar'] +['foo', 'bar'] +['', 'foo and', '', 'bar'] +['foo\n', 'bar'] +['foo\n', 'bar\n'] +['foo\n', 'bar\n', '\n'] +['foo\r', 'bar'] +['foo\r', 'bar\r', '\r'] +['foo\r\n', 'bar'] +['foo\r\n', 'bar\r\n', '\r\n'] +[b'foo', b'bar'] +[b'foo', b'bar'] +[b'foo\r\n', b'bar\r\n', b'\r\n'] diff --git a/micropython-tests/expected/basics/string_startswith.py.exp b/micropython-tests/expected/basics/string_startswith.py.exp new file mode 100644 index 0000000..976670c --- /dev/null +++ b/micropython-tests/expected/basics/string_startswith.py.exp @@ -0,0 +1,11 @@ +True +False +False +True +True +True +True +False +False +False +TypeError diff --git a/micropython-tests/expected/basics/string_strip.py.exp b/micropython-tests/expected/basics/string_strip.py.exp new file mode 100644 index 0000000..9522684 Binary files /dev/null and b/micropython-tests/expected/basics/string_strip.py.exp differ diff --git a/micropython-tests/expected/basics/string_upperlow.py.exp b/micropython-tests/expected/basics/string_upperlow.py.exp new file mode 100644 index 0000000..8e48852 --- /dev/null +++ b/micropython-tests/expected/basics/string_upperlow.py.exp @@ -0,0 +1,5 @@ + + T N +R V F + t e s t +*@A1B2CABC_[]/\ diff --git a/micropython-tests/expected/basics/struct1.py.exp b/micropython-tests/expected/basics/struct1.py.exp new file mode 100644 index 0000000..e3a11be --- /dev/null +++ b/micropython-tests/expected/basics/struct1.py.exp @@ -0,0 +1,34 @@ +5 +(-128, 65536) +5 +(-128, 256) +b'\x01\x00\x00\x00' +b'\x00\x00\x00\x01' +b'\x01\x00\x00\x00' +b'\x00\x00\x00\x01' +b'\x01\x00' +b'\x00\x01' +b'\x01' +b'\x01' +b'\x80\x00\x01\x00\x00' +b'\x80\x00\x00\x01\x00' +104 +104 +(b'foo\x00\x00\x00', 13330) +b"foo\x00\x00\x00\x10'" +True +b'\x00\x00\x00{' +struct.error +TypeError +Unknown type +(102, 111, 111, 13330, -1) +b'\x01\x02\x03' +bytearray(b'>>>ABC<<<') +bytearray(b'>>>DEF<<<') +struct.error +struct.error +struct.error +(52,) +(54,) +struct.error +struct.error diff --git a/micropython-tests/expected/basics/struct1_intbig.py.exp b/micropython-tests/expected/basics/struct1_intbig.py.exp new file mode 100644 index 0000000..42d538a --- /dev/null +++ b/micropython-tests/expected/basics/struct1_intbig.py.exp @@ -0,0 +1,30 @@ +b'\xff\xff\xff\xff' +b'\xff\xff\xff\xff' +b'\x01\x00\x00\x00\x00\x00\x00\x00' +b'\x00\x00\x00\x00\x00\x00\x00\x01' +b'\xff\xff\xff\xff\xff\xff\xff\xff' +b'\xff\xff\xff\xff\xff\xff\xff\xff' +b'\xff\xff\xff\xff\xff\xff\xff\xff' +b'\xff\xff\xff\xff\xff\xff\xff\xff' +b'\xff\xff\xff\xff\xff\xff\xff\xff' +b'\xff\xff\xff\xff\xff\xff\xff\xff' +b'\x15\x81\xe9}\xf4\x10"\x11' +b'\xeb~\x16\x82\x0b\xef\xdd\xee' +b'\x11"\x10\xf4}\xe9\x81\x15' +b'\xee\xdd\xef\x0b\x82\x16~\xeb' +(6211610197754262546,) +(1311768467284833366,) +(-705918829886819310,) +(-994074541928860586,) +(4294967295,) +(18446744073709551615,) +(2147483647,) +(9223372036854775807,) +b b'\xfe' (-2,) +>h b'\xff\xfe' (-2,) +>i b'\xff\xff\xff\xfe' (-2,) +>q b'\xff\xff\xff\xff\xff\xff\xff\xfe' (-2,) diff --git a/micropython-tests/expected/basics/struct2.py.exp b/micropython-tests/expected/basics/struct2.py.exp new file mode 100644 index 0000000..f056549 --- /dev/null +++ b/micropython-tests/expected/basics/struct2.py.exp @@ -0,0 +1,22 @@ +0 +(b'',) +b'' +2 +(b'12',) +b'12' +4 +(12849, 13363) +b'\x02\x01\x03\x02' +6 +(b'', b'0', 12849, 13363) +b'a\x02\x01\x03\x02' +Exception +Exception +Exception +Exception +Exception +Exception +Exception +Exception +Exception +Exception diff --git a/micropython-tests/expected/basics/struct_endian.py.exp b/micropython-tests/expected/basics/struct_endian.py.exp new file mode 100644 index 0000000..d5267ef --- /dev/null +++ b/micropython-tests/expected/basics/struct_endian.py.exp @@ -0,0 +1,6 @@ +(12849,) +(875770417,) +(875770417,) +(875770417, 943142453) +bytearray(b'>3210<<<<<<<') +bytearray(b'>327654DCBA<') diff --git a/micropython-tests/expected/basics/subclass_classmethod.py.exp b/micropython-tests/expected/basics/subclass_classmethod.py.exp new file mode 100644 index 0000000..cbc4157 --- /dev/null +++ b/micropython-tests/expected/basics/subclass_classmethod.py.exp @@ -0,0 +1,4 @@ +Sub +1 +1 +1 diff --git a/micropython-tests/expected/basics/subclass_native1.py.exp b/micropython-tests/expected/basics/subclass_native1.py.exp new file mode 100644 index 0000000..11f5c20 --- /dev/null +++ b/micropython-tests/expected/basics/subclass_native1.py.exp @@ -0,0 +1,8 @@ +[1, 2, 5] +something +5 +[-1, 2, 5] +3 +[-1, 2, 5, 20, 30, 40] +TypeError +TypeError diff --git a/micropython-tests/expected/basics/subclass_native2_list.py.exp b/micropython-tests/expected/basics/subclass_native2_list.py.exp new file mode 100644 index 0000000..02cb01b --- /dev/null +++ b/micropython-tests/expected/basics/subclass_native2_list.py.exp @@ -0,0 +1,3 @@ +Base1.__init__ () +0 +--- diff --git a/micropython-tests/expected/basics/subclass_native2_tuple.py.exp b/micropython-tests/expected/basics/subclass_native2_tuple.py.exp new file mode 100644 index 0000000..b8860d5 --- /dev/null +++ b/micropython-tests/expected/basics/subclass_native2_tuple.py.exp @@ -0,0 +1,14 @@ +Base1.__init__ () +0 +Base1.__init__ ([1, 2, 3],) +3 +--- +Base1.__init__ () +0 +Base1.__init__ ([1, 2, 3],) +3 +Base1.__init__ ([1, 2, 3],) +Base1.__init__ ([1, 2, 3],) +True +True +True diff --git a/micropython-tests/expected/basics/subclass_native3.py.exp b/micropython-tests/expected/basics/subclass_native3.py.exp new file mode 100644 index 0000000..7f081f8 --- /dev/null +++ b/micropython-tests/expected/basics/subclass_native3.py.exp @@ -0,0 +1,12 @@ +(100, 'Some error') +MyExc(100, 'Some error') +(100, 'Some error') +Caught exception: MyExc('Some error', 1) +Caught exception: MyExc('Some error2', 2) +Caught user exception +None +1 +3 +(4,) +None +1 diff --git a/micropython-tests/expected/basics/subclass_native4.py.exp b/micropython-tests/expected/basics/subclass_native4.py.exp new file mode 100644 index 0000000..3242a20 --- /dev/null +++ b/micropython-tests/expected/basics/subclass_native4.py.exp @@ -0,0 +1,2 @@ +[1, 2, 3] +[1, 2, 3, 10] diff --git a/micropython-tests/expected/basics/subclass_native5.py.exp b/micropython-tests/expected/basics/subclass_native5.py.exp new file mode 100644 index 0000000..e69de29 diff --git a/micropython-tests/expected/basics/subclass_native_buffer.py.exp b/micropython-tests/expected/basics/subclass_native_buffer.py.exp new file mode 100644 index 0000000..dad1fd9 --- /dev/null +++ b/micropython-tests/expected/basics/subclass_native_buffer.py.exp @@ -0,0 +1,4 @@ +b'\x00\x01\x02\x03' +b'\x00\x01\x04\x05' +b'\x04\x05\x00\x01' +b'\x00\x01' diff --git a/micropython-tests/expected/basics/subclass_native_cmp.py.exp b/micropython-tests/expected/basics/subclass_native_cmp.py.exp new file mode 100644 index 0000000..fb97f4b --- /dev/null +++ b/micropython-tests/expected/basics/subclass_native_cmp.py.exp @@ -0,0 +1,5 @@ +(1, 2, 3) +True +True +False True +True False diff --git a/micropython-tests/expected/basics/subclass_native_containment.py.exp b/micropython-tests/expected/basics/subclass_native_containment.py.exp new file mode 100644 index 0000000..dc9316c --- /dev/null +++ b/micropython-tests/expected/basics/subclass_native_containment.py.exp @@ -0,0 +1,6 @@ +False +True +False +True +False +True diff --git a/micropython-tests/expected/basics/subclass_native_init.py.exp b/micropython-tests/expected/basics/subclass_native_init.py.exp new file mode 100644 index 0000000..93c461e --- /dev/null +++ b/micropython-tests/expected/basics/subclass_native_init.py.exp @@ -0,0 +1,8 @@ +[2, 3] +A.__init__ +B.__init__ +D.__init__ +D.__init__ +D.foo +[0, 1, 2, 3, 4] +[0, 1] diff --git a/micropython-tests/expected/basics/subclass_native_iter.py.exp b/micropython-tests/expected/basics/subclass_native_iter.py.exp new file mode 100644 index 0000000..2de1e17 --- /dev/null +++ b/micropython-tests/expected/basics/subclass_native_iter.py.exp @@ -0,0 +1 @@ +[10, 11, 12, 13] diff --git a/micropython-tests/expected/basics/subclass_native_specmeth.py.exp b/micropython-tests/expected/basics/subclass_native_specmeth.py.exp new file mode 100644 index 0000000..32b1897 --- /dev/null +++ b/micropython-tests/expected/basics/subclass_native_specmeth.py.exp @@ -0,0 +1,4 @@ +[1, 2, 3] +[1, 2, 3] +[1, 2, 3] +[10, 20, 30] diff --git a/micropython-tests/expected/basics/subclass_native_str.py.exp b/micropython-tests/expected/basics/subclass_native_str.py.exp new file mode 100644 index 0000000..c2974fa --- /dev/null +++ b/micropython-tests/expected/basics/subclass_native_str.py.exp @@ -0,0 +1,4 @@ +True +True +False +False diff --git a/micropython-tests/expected/basics/syntaxerror.py.exp b/micropython-tests/expected/basics/syntaxerror.py.exp new file mode 100644 index 0000000..a680556 --- /dev/null +++ b/micropython-tests/expected/basics/syntaxerror.py.exp @@ -0,0 +1,46 @@ +SyntaxError +IndentationError +SyntaxError +SyntaxError +SyntaxError +SyntaxError +IndentationError +SyntaxError +SyntaxError +SyntaxError +SyntaxError +SyntaxError +SyntaxError +SyntaxError +SyntaxError +SyntaxError +SyntaxError +SyntaxError +SyntaxError +SyntaxError +SyntaxError +SyntaxError +SyntaxError +SyntaxError +SyntaxError +SyntaxError +SyntaxError +SyntaxError +SyntaxError +SyntaxError +SyntaxError +SyntaxError +SyntaxError +SyntaxError +SyntaxError +SyntaxError +SyntaxError +SyntaxError +SyntaxError +SyntaxError +SyntaxError +SyntaxError +SyntaxError +SyntaxError +SyntaxError +SyntaxError diff --git a/micropython-tests/expected/basics/syntaxerror_return.py.exp b/micropython-tests/expected/basics/syntaxerror_return.py.exp new file mode 100644 index 0000000..8729fc4 --- /dev/null +++ b/micropython-tests/expected/basics/syntaxerror_return.py.exp @@ -0,0 +1 @@ +SyntaxError diff --git a/micropython-tests/expected/basics/sys1.py.exp b/micropython-tests/expected/basics/sys1.py.exp new file mode 100644 index 0000000..aa67555 --- /dev/null +++ b/micropython-tests/expected/basics/sys1.py.exp @@ -0,0 +1,7 @@ +sys + + +True +True +True + diff --git a/micropython-tests/expected/basics/sys_exit.py.exp b/micropython-tests/expected/basics/sys_exit.py.exp new file mode 100644 index 0000000..51545fc --- /dev/null +++ b/micropython-tests/expected/basics/sys_exit.py.exp @@ -0,0 +1,3 @@ +SystemExit () +SystemExit () +SystemExit (42,) diff --git a/micropython-tests/expected/basics/sys_getsizeof.py.exp b/micropython-tests/expected/basics/sys_getsizeof.py.exp new file mode 100644 index 0000000..b8ca7e7 --- /dev/null +++ b/micropython-tests/expected/basics/sys_getsizeof.py.exp @@ -0,0 +1,3 @@ +True +True +True diff --git a/micropython-tests/expected/basics/sys_path.py.exp b/micropython-tests/expected/basics/sys_path.py.exp new file mode 100644 index 0000000..da5134f --- /dev/null +++ b/micropython-tests/expected/basics/sys_path.py.exp @@ -0,0 +1,8 @@ +# test sys.path + + + +try: + + import usys as sys + diff --git a/micropython-tests/expected/basics/true_value.py.exp b/micropython-tests/expected/basics/true_value.py.exp new file mode 100644 index 0000000..952e288 --- /dev/null +++ b/micropython-tests/expected/basics/true_value.py.exp @@ -0,0 +1,11 @@ +False +None +0 +Empty string +Non-empty string +Empty tuple +Non-empty tuple +Empty list +Non-empty list +Empty dict +Non-empty dict diff --git a/micropython-tests/expected/basics/try1.py.exp b/micropython-tests/expected/basics/try1.py.exp new file mode 100644 index 0000000..7ef0961 --- /dev/null +++ b/micropython-tests/expected/basics/try1.py.exp @@ -0,0 +1,2 @@ +1 +caught diff --git a/micropython-tests/expected/basics/try2.py.exp b/micropython-tests/expected/basics/try2.py.exp new file mode 100644 index 0000000..8c79b4c --- /dev/null +++ b/micropython-tests/expected/basics/try2.py.exp @@ -0,0 +1,11 @@ +try 1 +try 2 +except 2 +except 1 +try 1 +try 2 +except 1 +except 1 +try func1 +try func2 +except func1 diff --git a/micropython-tests/expected/basics/try3.py.exp b/micropython-tests/expected/basics/try3.py.exp new file mode 100644 index 0000000..531d559 --- /dev/null +++ b/micropython-tests/expected/basics/try3.py.exp @@ -0,0 +1,3 @@ +except 1 +except 2 +f except diff --git a/micropython-tests/expected/basics/try4.py.exp b/micropython-tests/expected/basics/try4.py.exp new file mode 100644 index 0000000..d7affdd --- /dev/null +++ b/micropython-tests/expected/basics/try4.py.exp @@ -0,0 +1,4 @@ +except 1 +except 2 +except 3 +f except diff --git a/micropython-tests/expected/basics/try_as_var.py.exp b/micropython-tests/expected/basics/try_as_var.py.exp new file mode 100644 index 0000000..15a4194 --- /dev/null +++ b/micropython-tests/expected/basics/try_as_var.py.exp @@ -0,0 +1,2 @@ + (534,) +NameError diff --git a/micropython-tests/expected/basics/try_continue.py.exp b/micropython-tests/expected/basics/try_continue.py.exp new file mode 100644 index 0000000..d70dde0 --- /dev/null +++ b/micropython-tests/expected/basics/try_continue.py.exp @@ -0,0 +1,5 @@ +a 1 +b 1 +a 2 +a 3 +b 3 diff --git a/micropython-tests/expected/basics/try_else.py.exp b/micropython-tests/expected/basics/try_else.py.exp new file mode 100644 index 0000000..fc94a2a --- /dev/null +++ b/micropython-tests/expected/basics/try_else.py.exp @@ -0,0 +1,18 @@ +1 +3 +1 +2 +1 +caught +1 +2 +3 +6 +1 +2 +3 +5 +1 +2 +3 +4 diff --git a/micropython-tests/expected/basics/try_else_finally.py.exp b/micropython-tests/expected/basics/try_else_finally.py.exp new file mode 100644 index 0000000..4bbceda --- /dev/null +++ b/micropython-tests/expected/basics/try_else_finally.py.exp @@ -0,0 +1,27 @@ +1 +3 +4 +1 +2 +4 +1 +4 +caught +1 +2 +3 +5 +7 +8 +1 +2 +3 +5 +6 +8 +1 +2 +3 +4 +6 +8 diff --git a/micropython-tests/expected/basics/try_error.py.exp b/micropython-tests/expected/basics/try_error.py.exp new file mode 100644 index 0000000..ec44334 --- /dev/null +++ b/micropython-tests/expected/basics/try_error.py.exp @@ -0,0 +1,2 @@ +TypeError +TypeError diff --git a/micropython-tests/expected/basics/try_finally1.py.exp b/micropython-tests/expected/basics/try_finally1.py.exp new file mode 100644 index 0000000..dbd17ce --- /dev/null +++ b/micropython-tests/expected/basics/try_finally1.py.exp @@ -0,0 +1,43 @@ +noexc-finally +try +finally +noexc-finally-finally +try1 +try2 +finally2 +finally1 + +noexc-finally-func-finally +try1 +try2 +finally2 +finally1 + +exc-finally-except +try1 +try2 +except2 +finally1 + +exc-finally-except-filter +try1 +try2 +except2 +finally1 + +exc-except-finally-finally +try1 +try2 +finally2 +finally1 +catch-all except + +exc-finally-subexcept +try1 +try2 +except2 +finally1 + +try +finally +except diff --git a/micropython-tests/expected/basics/try_finally2.py.exp b/micropython-tests/expected/basics/try_finally2.py.exp new file mode 100644 index 0000000..6ed281c --- /dev/null +++ b/micropython-tests/expected/basics/try_finally2.py.exp @@ -0,0 +1,2 @@ +1 +1 diff --git a/micropython-tests/expected/basics/try_finally_break.py.exp b/micropython-tests/expected/basics/try_finally_break.py.exp new file mode 100644 index 0000000..d0b3698 --- /dev/null +++ b/micropython-tests/expected/basics/try_finally_break.py.exp @@ -0,0 +1,25 @@ +1 +2 +5 +a 1 +1 +iter 0 +1 +None +1 +2 +None +1 +2 +None +1 +3 +4 +7 +1 +2 +4 +7 +1 +4 +7 diff --git a/micropython-tests/expected/basics/try_finally_break2.py.exp b/micropython-tests/expected/basics/try_finally_break2.py.exp new file mode 100644 index 0000000..bc5e931 --- /dev/null +++ b/micropython-tests/expected/basics/try_finally_break2.py.exp @@ -0,0 +1,17 @@ +4 0 0 1 +4 0 0 2 +4 0 0 3 +4 0 0 4 +4 1 0 1 +4 1 0 2 +4 1 0 3 +4 1 0 4 +4 2 0 1 +4 2 0 2 +4 2 0 3 +4 2 0 4 +4 3 0 1 +4 3 0 2 +4 3 0 3 +4 3 0 4 +None diff --git a/micropython-tests/expected/basics/try_finally_loops.py.exp b/micropython-tests/expected/basics/try_finally_loops.py.exp new file mode 100644 index 0000000..426f05d --- /dev/null +++ b/micropython-tests/expected/basics/try_finally_loops.py.exp @@ -0,0 +1,30 @@ +finally 1 +finally 2 +finally 2 +finally 2 +finally 3 +finally 3 +finally 3 +0 +finally 1 +finally 2 +here +finnaly 3 +1 +finally 1 +finally 2 +here +finnaly 3 +2 +finally 1 +finally 2 +here +finnaly 3 +3 +finally 1 +finally 2 +here +finnaly 3 +1 +finally 4 +global diff --git a/micropython-tests/expected/basics/try_finally_return.py.exp b/micropython-tests/expected/basics/try_finally_return.py.exp new file mode 100644 index 0000000..aca761d --- /dev/null +++ b/micropython-tests/expected/basics/try_finally_return.py.exp @@ -0,0 +1,15 @@ +finally 1 +it worked +finally 2 +finally 3 +it worked, did this work? +finally +1 +finally +(1, 3) +finally 2 +finally 1 +(1, 3, 5, 7) +finally 2 +finally 1 +(1, 3, 5, 7) diff --git a/micropython-tests/expected/basics/try_finally_return2.py.exp b/micropython-tests/expected/basics/try_finally_return2.py.exp new file mode 100644 index 0000000..b4c364f --- /dev/null +++ b/micropython-tests/expected/basics/try_finally_return2.py.exp @@ -0,0 +1,19 @@ +finally +0 +finally 1 +finally 2 +2 +finally 1 +finally 2 +1 +finally 1 +finally 2 +2 +finally +0 +finally +0 +finally +0 +finally +0 diff --git a/micropython-tests/expected/basics/try_finally_return3.py.exp b/micropython-tests/expected/basics/try_finally_return3.py.exp new file mode 100644 index 0000000..5fef648 --- /dev/null +++ b/micropython-tests/expected/basics/try_finally_return3.py.exp @@ -0,0 +1,23 @@ +1 +42 +1 +2 +42 +1 +2 +3 +42 +2 +1 +42 +2 +1 +42 +1 +3 +2 +42 +1 +3 +2 +42 diff --git a/micropython-tests/expected/basics/try_finally_return4.py.exp b/micropython-tests/expected/basics/try_finally_return4.py.exp new file mode 100644 index 0000000..f92572f --- /dev/null +++ b/micropython-tests/expected/basics/try_finally_return4.py.exp @@ -0,0 +1,38 @@ +1 +2 +3 +4 +5 +None +1 +2 +3 +5 +42 +1 +2 +5 +43 +1 +2 +5 +43 +1 +2 +5 +caught +1 +2 +5 +caught +1 +2 +3 +4 +5 +None +1 +2 +3 +5 +42 diff --git a/micropython-tests/expected/basics/try_finally_return5.py.exp b/micropython-tests/expected/basics/try_finally_return5.py.exp new file mode 100644 index 0000000..dfa403c --- /dev/null +++ b/micropython-tests/expected/basics/try_finally_return5.py.exp @@ -0,0 +1,3 @@ +4 0 +return +43 diff --git a/micropython-tests/expected/basics/try_reraise.py.exp b/micropython-tests/expected/basics/try_reraise.py.exp new file mode 100644 index 0000000..3969b22 --- /dev/null +++ b/micropython-tests/expected/basics/try_reraise.py.exp @@ -0,0 +1,2 @@ +ValueError('val', 3) +RuntimeError diff --git a/micropython-tests/expected/basics/try_reraise2.py.exp b/micropython-tests/expected/basics/try_reraise2.py.exp new file mode 100644 index 0000000..caea15b --- /dev/null +++ b/micropython-tests/expected/basics/try_reraise2.py.exp @@ -0,0 +1,10 @@ +1 +2 +3 +4 +5 +6 +7 +8 +9 +ValueError('val', 3) diff --git a/micropython-tests/expected/basics/try_return.py.exp b/micropython-tests/expected/basics/try_return.py.exp new file mode 100644 index 0000000..9de126d --- /dev/null +++ b/micropython-tests/expected/basics/try_return.py.exp @@ -0,0 +1,4 @@ +1 +1 +IndexError +-1 diff --git a/micropython-tests/expected/basics/tuple1.py.exp b/micropython-tests/expected/basics/tuple1.py.exp new file mode 100644 index 0000000..e239cfb --- /dev/null +++ b/micropython-tests/expected/basics/tuple1.py.exp @@ -0,0 +1,9 @@ +(1, 2, 12) +TypeError +(1, 2, 12) +AttributeError +(1, 2, 12, 10, 100, 10000) +(1, 2, 12, 10, 11, 12) +(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19) +TypeError +TypeError diff --git a/micropython-tests/expected/basics/tuple_compare.py.exp b/micropython-tests/expected/basics/tuple_compare.py.exp new file mode 100644 index 0000000..76f1fee --- /dev/null +++ b/micropython-tests/expected/basics/tuple_compare.py.exp @@ -0,0 +1,53 @@ +True +False +False +False +False +False +True +True +False +False +True +True +False +True +False +False +False +False +False +True +True +True +False +False +False +False +True +True +True +False +False +True +False +True +True +True +False +False +True +False +True +True +True +False +False +True +False +True +False +False +True +False +TypeError diff --git a/micropython-tests/expected/basics/tuple_count.py.exp b/micropython-tests/expected/basics/tuple_count.py.exp new file mode 100644 index 0000000..f1e5eee --- /dev/null +++ b/micropython-tests/expected/basics/tuple_count.py.exp @@ -0,0 +1,2 @@ +3 +2 diff --git a/micropython-tests/expected/basics/tuple_index.py.exp b/micropython-tests/expected/basics/tuple_index.py.exp new file mode 100644 index 0000000..3053189 --- /dev/null +++ b/micropython-tests/expected/basics/tuple_index.py.exp @@ -0,0 +1,9 @@ +0 +1 +2 +2 +Raised ValueError +1 +2 +4 +Raised ValueError diff --git a/micropython-tests/expected/basics/tuple_mult.py.exp b/micropython-tests/expected/basics/tuple_mult.py.exp new file mode 100644 index 0000000..7fecb00 --- /dev/null +++ b/micropython-tests/expected/basics/tuple_mult.py.exp @@ -0,0 +1,14 @@ +(0, 0, 0, 0, 0) +() +() +() +() +() +() +(1, 2, 1, 2) +(1, 2, 1, 2) +(1, 2, 1, 2, 1, 2, 1, 2) +(1, 2, 1, 2, 1, 2, 1, 2) +(1, 2, 3) (1, 2, 3, 1, 2, 3, 1, 2, 3) +(1, 2, 1, 2) +TypeError diff --git a/micropython-tests/expected/basics/tuple_slice.py.exp b/micropython-tests/expected/basics/tuple_slice.py.exp new file mode 100644 index 0000000..6e9ff2e --- /dev/null +++ b/micropython-tests/expected/basics/tuple_slice.py.exp @@ -0,0 +1,3 @@ +(2, 12) +(1, 2) +(12,) diff --git a/micropython-tests/expected/basics/types1.py.exp b/micropython-tests/expected/basics/types1.py.exp new file mode 100644 index 0000000..5e0ab8a --- /dev/null +++ b/micropython-tests/expected/basics/types1.py.exp @@ -0,0 +1,16 @@ + + + + + +True +True +True +True +True +True +True +True +True +True +AttributeError diff --git a/micropython-tests/expected/basics/types2.py.exp b/micropython-tests/expected/basics/types2.py.exp new file mode 100644 index 0000000..2a665ab --- /dev/null +++ b/micropython-tests/expected/basics/types2.py.exp @@ -0,0 +1,7 @@ +True +True +True +True +True +True +2 diff --git a/micropython-tests/expected/basics/unary_op.py.exp b/micropython-tests/expected/basics/unary_op.py.exp new file mode 100644 index 0000000..15732b1 --- /dev/null +++ b/micropython-tests/expected/basics/unary_op.py.exp @@ -0,0 +1,22 @@ +1 +-1 +-2 +True +True +False +True +False +False +True +False +True +False +True +False +False +True +False +True +False +False +True diff --git a/micropython-tests/expected/basics/unboundlocal.py.exp b/micropython-tests/expected/basics/unboundlocal.py.exp new file mode 100644 index 0000000..8b432f1 --- /dev/null +++ b/micropython-tests/expected/basics/unboundlocal.py.exp @@ -0,0 +1,2 @@ +NameError +NameError diff --git a/micropython-tests/expected/basics/unpack1.py.exp b/micropython-tests/expected/basics/unpack1.py.exp new file mode 100644 index 0000000..b166e63 --- /dev/null +++ b/micropython-tests/expected/basics/unpack1.py.exp @@ -0,0 +1,44 @@ +1 +2 3 +1 2 3 +0 +0 1 +0 1 2 +range(0, 1) +0 +0 1 +0 1 2 +-1 0 1 +0 +0 1 +0 1 2 +[] +[4] +[5, 6] +[] 7 +[8] 9 +[10, 11] 12 +13 [] +14 [15] +16 [17, 18] +19 [] +21 [22] +24 [25, 26] +[28, 29] [28, 29] True False +[1, 2, 3] +ValueError +[0, 1, 2, 3, 4] +[0, 1, 2, 3] 4 +[0, 1, 2] 3 4 +0 [1, 2, 3, 4] +0 [1, 2, 3] 4 +0 [1, 2] 3 4 +0 1 [2, 3, 4] +0 1 [2, 3] 4 +0 1 [2] 3 4 +[2, 4, 6, 8] +[2, 4, 6] 8 +2 [4, 6, 8] +2 [4, 6] 8 +ValueError +ValueError diff --git a/micropython-tests/expected/basics/while1.py.exp b/micropython-tests/expected/basics/while1.py.exp new file mode 100644 index 0000000..10481a9 --- /dev/null +++ b/micropython-tests/expected/basics/while1.py.exp @@ -0,0 +1,8 @@ +0 0 1 +0 0 2 +0 1 1 +0 1 2 +1 0 1 +1 0 2 +1 1 1 +1 1 2 diff --git a/micropython-tests/expected/basics/while_cond.py.exp b/micropython-tests/expected/basics/while_cond.py.exp new file mode 100644 index 0000000..454a1d9 --- /dev/null +++ b/micropython-tests/expected/basics/while_cond.py.exp @@ -0,0 +1,8 @@ +1 +2 +3 +4 +b +a +a +b diff --git a/micropython-tests/expected/basics/while_nest_exc.py.exp b/micropython-tests/expected/basics/while_nest_exc.py.exp new file mode 100644 index 0000000..e0d13b0 --- /dev/null +++ b/micropython-tests/expected/basics/while_nest_exc.py.exp @@ -0,0 +1,4 @@ +1 +2 +3 +5 diff --git a/micropython-tests/expected/basics/with1.py.exp b/micropython-tests/expected/basics/with1.py.exp new file mode 100644 index 0000000..7bf6dbf --- /dev/null +++ b/micropython-tests/expected/basics/with1.py.exp @@ -0,0 +1,21 @@ +__enter__ +True +__exit__ None None +__enter__ +__exit__ ValueError() +ValueError +__enter__ +__exit__ ValueError() +No ValueError2 +=== +__enter__ +finally1 +finally2 +__exit__ ValueError() +=== +__enter__ +finally1 +finally2 +__exit__ ValueError() +finally3 +finally4 diff --git a/micropython-tests/expected/basics/with_break.py.exp b/micropython-tests/expected/basics/with_break.py.exp new file mode 100644 index 0000000..0c41fef --- /dev/null +++ b/micropython-tests/expected/basics/with_break.py.exp @@ -0,0 +1,12 @@ +0 +__enter__ +__exit__ None None +1 +__enter__ +__exit__ None None +2 +__enter__ +__exit__ None None +3 +__enter__ +__exit__ None None diff --git a/micropython-tests/expected/basics/with_continue.py.exp b/micropython-tests/expected/basics/with_continue.py.exp new file mode 100644 index 0000000..ae7d029 --- /dev/null +++ b/micropython-tests/expected/basics/with_continue.py.exp @@ -0,0 +1,15 @@ +0 +__enter__ +__exit__ None None +1 +__enter__ +__exit__ None None +2 +__enter__ +__exit__ None None +3 +__enter__ +__exit__ None None +4 +__enter__ +__exit__ None None diff --git a/micropython-tests/expected/basics/with_raise.py.exp b/micropython-tests/expected/basics/with_raise.py.exp new file mode 100644 index 0000000..5f81530 --- /dev/null +++ b/micropython-tests/expected/basics/with_raise.py.exp @@ -0,0 +1,9 @@ +__enter__ 1 +__exit__ 1 None None +__enter__ 10 +('enter', 10) +__enter__ 15 +('enter', 15) +__enter__ 20 +__exit__ 20 None None +('exit', 20) diff --git a/micropython-tests/expected/basics/with_return.py.exp b/micropython-tests/expected/basics/with_return.py.exp new file mode 100644 index 0000000..5e4837a --- /dev/null +++ b/micropython-tests/expected/basics/with_return.py.exp @@ -0,0 +1,19 @@ +__enter__ 1 +__exit__ 1 None None +4 +__enter__ 1 +__exit__ 1 None None +1 +__enter__ 1 +__exit__ 1 None None +(1, 3) +__enter__ 1 +__enter__ 2 +__exit__ 2 None None +__exit__ 1 None None +(1, 3, 5, 7) +__enter__ 1 +__enter__ 2 +__exit__ 2 None None +__exit__ 1 None None +(1, 3, 5, 7) diff --git a/micropython-tests/expected/extmod/uasyncio_get_event_loop.py.exp b/micropython-tests/expected/extmod/uasyncio_get_event_loop.py.exp new file mode 100644 index 0000000..5d0fb3b --- /dev/null +++ b/micropython-tests/expected/extmod/uasyncio_get_event_loop.py.exp @@ -0,0 +1,2 @@ +start +end diff --git a/micropython-tests/expected/extmod/ubinascii_a2b_base64.py.exp b/micropython-tests/expected/extmod/ubinascii_a2b_base64.py.exp new file mode 100644 index 0000000..e87dbfd --- /dev/null +++ b/micropython-tests/expected/extmod/ubinascii_a2b_base64.py.exp @@ -0,0 +1,21 @@ +b'' +b'f' +b'fo' +b'foo' +b'foob' +b'fooba' +b'foobar' +b'\x00\x01\x02\x03\x04\x05\x06\x07' +b'\x08\t\n\x0b\x0c\r\x0e\x0f' +b'\x7f\x80\xff' +b'\x7f\x80\xfe' +b'1234ABCDabcd' +b'foo' +b'foo' +b'foo' +b'foo' +b'foobar' +ValueError +ValueError +ValueError +ValueError diff --git a/micropython-tests/expected/extmod/ubinascii_b2a_base64.py.exp b/micropython-tests/expected/extmod/ubinascii_b2a_base64.py.exp new file mode 100644 index 0000000..712b74c --- /dev/null +++ b/micropython-tests/expected/extmod/ubinascii_b2a_base64.py.exp @@ -0,0 +1,12 @@ +b'\n' +b'Zg==\n' +b'Zm8=\n' +b'Zm9v\n' +b'Zm9vYg==\n' +b'Zm9vYmE=\n' +b'Zm9vYmFy\n' +b'AAECAwQFBgc=\n' +b'CAkKCwwNDg8=\n' +b'f4D/\n' +b'MTIzNEFCQ0RhYmNk\n' +b'AAA+\n' diff --git a/micropython-tests/expected/extmod/ubinascii_crc32.py.exp b/micropython-tests/expected/extmod/ubinascii_crc32.py.exp new file mode 100644 index 0000000..9b56ef5 --- /dev/null +++ b/micropython-tests/expected/extmod/ubinascii_crc32.py.exp @@ -0,0 +1,8 @@ +0x414fa339 +0x190a55ad +0xff6cab0b +0x91267e8a +0x414fa339 +0x190a55ad +0xff6cab0b +0x91267e8a diff --git a/micropython-tests/expected/extmod/ubinascii_hexlify.py.exp b/micropython-tests/expected/extmod/ubinascii_hexlify.py.exp new file mode 100644 index 0000000..993685f --- /dev/null +++ b/micropython-tests/expected/extmod/ubinascii_hexlify.py.exp @@ -0,0 +1,4 @@ +b'0001020304050607' +b'08090a0b0c0d0e0f' +b'7f80ff' +b'313233344142434461626364' diff --git a/micropython-tests/expected/extmod/ubinascii_unhexlify.py.exp b/micropython-tests/expected/extmod/ubinascii_unhexlify.py.exp new file mode 100644 index 0000000..dc395df --- /dev/null +++ b/micropython-tests/expected/extmod/ubinascii_unhexlify.py.exp @@ -0,0 +1,6 @@ +b'\x00\x01\x02\x03\x04\x05\x06\x07' +b'\x08\t\n\x0b\x0c\r\x0e\x0f' +b'\x7f\x80\xff' +b'1234ABCDabcd' +ValueError +ValueError diff --git a/micropython-tests/expected/extmod/uhashlib_md5.py.exp b/micropython-tests/expected/extmod/uhashlib_md5.py.exp new file mode 100644 index 0000000..2e4fc5c --- /dev/null +++ b/micropython-tests/expected/extmod/uhashlib_md5.py.exp @@ -0,0 +1 @@ +b'\xfc^\x03\x8d8\xa5p2\x08TA\xe7\xfep\x10\xb0' diff --git a/micropython-tests/expected/extmod/uhashlib_sha1.py.exp b/micropython-tests/expected/extmod/uhashlib_sha1.py.exp new file mode 100644 index 0000000..57916a2 --- /dev/null +++ b/micropython-tests/expected/extmod/uhashlib_sha1.py.exp @@ -0,0 +1 @@ +b'j\xdf\xb1\x83\xa4\xa2\xc9J/\x92\xda\xb5\xad\xe7b\xa4x\x89\xa5\xa1' diff --git a/micropython-tests/expected/extmod/uhashlib_sha256.py.exp b/micropython-tests/expected/extmod/uhashlib_sha256.py.exp new file mode 100644 index 0000000..c08874d --- /dev/null +++ b/micropython-tests/expected/extmod/uhashlib_sha256.py.exp @@ -0,0 +1,5 @@ +b"\xe3\xb0\xc4B\x98\xfc\x1c\x14\x9a\xfb\xf4\xc8\x99o\xb9$'\xaeA\xe4d\x9b\x93L\xa4\x95\x99\x1bxR\xb8U" +b'\xa6e\xa4Y B/\x9dA~Hg\xef\xdcO\xb8\xa0J\x1f?\xff\x1f\xa0~\x99\x8e\x86\xf7\xf7\xa2z\xe3' +b'\xa7\x94\xd32.X\xf5)%\x8e\r\x931\xaa\x9a\x17\xee\xcen\x05\x84\x8a\xa8\x9f\xe1\xe6\xff\xa0\x06#\x19W' +b'\x86g\xe7\x18)N\x9e\r\xf1\xd3\x06\x00\xba>\xeb \x1fvJ\xad-\xadrt\x86C\xe4\xa2\x85\xe1\xd1\xf7' +b'R\x8f\xf5\n\xb0^w\xbb\xbd"J\x9e\xc8ae\xdb\xb6\x82J\x9a\x9e\xfbTK\xe0\xa1\xd5}[AdW' diff --git a/micropython-tests/expected/extmod/uheapq1.py.exp b/micropython-tests/expected/extmod/uheapq1.py.exp new file mode 100644 index 0000000..5da5a40 --- /dev/null +++ b/micropython-tests/expected/extmod/uheapq1.py.exp @@ -0,0 +1,7 @@ +IndexError +TypeError +[1, 3, 2] +1 2 3 +[2, 3, 4, 5, 10, 8, 7, 11, 9] +[1, 2, 4, 5, 3, 8, 7, 11, 9, 10, 6, 12] +1 2 3 4 5 6 7 8 9 10 11 12 diff --git a/micropython-tests/expected/extmod/ujson_dump.py.exp b/micropython-tests/expected/extmod/ujson_dump.py.exp new file mode 100644 index 0000000..a0c3e57 --- /dev/null +++ b/micropython-tests/expected/extmod/ujson_dump.py.exp @@ -0,0 +1,4 @@ +false +{"a": [2, [3, null]]} +Exception +Exception diff --git a/micropython-tests/expected/extmod/ujson_dump_iobase.py.exp b/micropython-tests/expected/extmod/ujson_dump_iobase.py.exp new file mode 100644 index 0000000..fc13e65 --- /dev/null +++ b/micropython-tests/expected/extmod/ujson_dump_iobase.py.exp @@ -0,0 +1 @@ +[123, {}] diff --git a/micropython-tests/expected/extmod/ujson_dump_separators.py.exp b/micropython-tests/expected/extmod/ujson_dump_separators.py.exp new file mode 100644 index 0000000..624343a --- /dev/null +++ b/micropython-tests/expected/extmod/ujson_dump_separators.py.exp @@ -0,0 +1,35 @@ +false +{"a": [2, [3, null]]} +Exception +Exception +false +{"a": [2, [3, null]]} +Exception +Exception +false +{"a": [2,[3,null]]} +Exception +Exception +false +{"a":[2,[3,null]]} +Exception +Exception +false +{"a": [2, [3, null]]} +Exception +Exception +false +{"a": [2,[3,null]]} +Exception +Exception +false +{"a":[2,[3,null]]} +Exception +Exception +Exception +Exception +Exception +Exception +Exception +Exception +Exception diff --git a/micropython-tests/expected/extmod/ujson_dumps.py.exp b/micropython-tests/expected/extmod/ujson_dumps.py.exp new file mode 100644 index 0000000..946ec67 --- /dev/null +++ b/micropython-tests/expected/extmod/ujson_dumps.py.exp @@ -0,0 +1,23 @@ +false +true +null +1 +"abc" +"\u0000\u0001~" +[] +[1] +[1, 2] +[1, true] +[] +[1] +[1, 2] +[1, [2, 3]] +{} +{"a": 1} +{"a": [2, [3, null]]} +"\"quoted\"" +"space\n\r\tspace" +{"null": -1} +{"false": 0} +{"true": 1} +{"1": 2} diff --git a/micropython-tests/expected/extmod/ujson_dumps_float.py.exp b/micropython-tests/expected/extmod/ujson_dumps_float.py.exp new file mode 100644 index 0000000..5613d5f --- /dev/null +++ b/micropython-tests/expected/extmod/ujson_dumps_float.py.exp @@ -0,0 +1,2 @@ +1.2 +{"1.5": "hi"} diff --git a/micropython-tests/expected/extmod/ujson_dumps_ordereddict.py.exp b/micropython-tests/expected/extmod/ujson_dumps_ordereddict.py.exp new file mode 100644 index 0000000..e41c411 --- /dev/null +++ b/micropython-tests/expected/extmod/ujson_dumps_ordereddict.py.exp @@ -0,0 +1 @@ +{"1": 2, "3": 4} diff --git a/micropython-tests/expected/extmod/ujson_dumps_separators.py.exp b/micropython-tests/expected/extmod/ujson_dumps_separators.py.exp new file mode 100644 index 0000000..12744f6 --- /dev/null +++ b/micropython-tests/expected/extmod/ujson_dumps_separators.py.exp @@ -0,0 +1,168 @@ +false +true +null +1 +"abc" +"\u0000\u0001~" +[] +[1] +[1, 2] +[1, true] +[] +[1] +[1, 2] +[1, [2, 3]] +{} +{"a": 1} +{"a": [2, [3, null]]} +"\"quoted\"" +"space\n\r\tspace" +{"null": -1} +{"false": 0} +{"true": 1} +{"1": 2} +false +true +null +1 +"abc" +"\u0000\u0001~" +[] +[1] +[1, 2] +[1, true] +[] +[1] +[1, 2] +[1, [2, 3]] +{} +{"a": 1} +{"a": [2, [3, null]]} +"\"quoted\"" +"space\n\r\tspace" +{"null": -1} +{"false": 0} +{"true": 1} +{"1": 2} +false +true +null +1 +"abc" +"\u0000\u0001~" +[] +[1] +[1,2] +[1,true] +[] +[1] +[1,2] +[1,[2,3]] +{} +{"a": 1} +{"a": [2,[3,null]]} +"\"quoted\"" +"space\n\r\tspace" +{"null": -1} +{"false": 0} +{"true": 1} +{"1": 2} +false +true +null +1 +"abc" +"\u0000\u0001~" +[] +[1] +[1,2] +[1,true] +[] +[1] +[1,2] +[1,[2,3]] +{} +{"a":1} +{"a":[2,[3,null]]} +"\"quoted\"" +"space\n\r\tspace" +{"null":-1} +{"false":0} +{"true":1} +{"1":2} +false +true +null +1 +"abc" +"\u0000\u0001~" +[] +[1] +[1, 2] +[1, true] +[] +[1] +[1, 2] +[1, [2, 3]] +{} +{"a": 1} +{"a": [2, [3, null]]} +"\"quoted\"" +"space\n\r\tspace" +{"null": -1} +{"false": 0} +{"true": 1} +{"1": 2} +false +true +null +1 +"abc" +"\u0000\u0001~" +[] +[1] +[1,2] +[1,true] +[] +[1] +[1,2] +[1,[2,3]] +{} +{"a": 1} +{"a": [2,[3,null]]} +"\"quoted\"" +"space\n\r\tspace" +{"null": -1} +{"false": 0} +{"true": 1} +{"1": 2} +false +true +null +1 +"abc" +"\u0000\u0001~" +[] +[1] +[1,2] +[1,true] +[] +[1] +[1,2] +[1,[2,3]] +{} +{"a":1} +{"a":[2,[3,null]]} +"\"quoted\"" +"space\n\r\tspace" +{"null":-1} +{"false":0} +{"true":1} +{"1":2} +Exception +Exception +Exception +Exception +Exception +Exception +Exception diff --git a/micropython-tests/expected/extmod/ujson_load.py.exp b/micropython-tests/expected/extmod/ujson_load.py.exp new file mode 100644 index 0000000..f8c3c69 --- /dev/null +++ b/micropython-tests/expected/extmod/ujson_load.py.exp @@ -0,0 +1,4 @@ +None +abcde +[False, True, 1, -2] +{'a': True} diff --git a/micropython-tests/expected/extmod/ujson_loads.py.exp b/micropython-tests/expected/extmod/ujson_loads.py.exp new file mode 100644 index 0000000..390d011 --- /dev/null +++ b/micropython-tests/expected/extmod/ujson_loads.py.exp @@ -0,0 +1,28 @@ +None +False +True +1 +-2 +abcde +[] +[None] +[None, False, True] +[None, False, True] +sorted dict [] +sorted dict [('a', True)] +sorted dict [('a', None), ('b', False), ('c', True)] +sorted dict [('a', []), ('b', [1]), ('c', {'3': 4})] +abcdef +abc def +abc +def +abc def +abc def +abcꯍ +sorted dict [('a', []), ('b', [1]), ('c', {'3': 4})] +ValueError +ValueError +ValueError +ValueError +ValueError +ValueError diff --git a/micropython-tests/expected/extmod/ujson_loads_float.py.exp b/micropython-tests/expected/extmod/ujson_loads_float.py.exp new file mode 100644 index 0000000..792c917 --- /dev/null +++ b/micropython-tests/expected/extmod/ujson_loads_float.py.exp @@ -0,0 +1,6 @@ +1.200 +100.000 +-2.300 +-2000.000 +-2000.000 +-0.002 diff --git a/micropython-tests/expected/extmod/urandom_extra.py.exp b/micropython-tests/expected/extmod/urandom_extra.py.exp new file mode 100644 index 0000000..66071bb --- /dev/null +++ b/micropython-tests/expected/extmod/urandom_extra.py.exp @@ -0,0 +1,9 @@ +randrange +ValueError +ValueError +ValueError +ValueError +randint +ValueError +choice +IndexError diff --git a/micropython-tests/expected/extmod/urandom_extra_float.py.exp b/micropython-tests/expected/extmod/urandom_extra_float.py.exp new file mode 100644 index 0000000..f8dbfa3 --- /dev/null +++ b/micropython-tests/expected/extmod/urandom_extra_float.py.exp @@ -0,0 +1,2 @@ +random +uniform diff --git a/micropython-tests/expected/extmod/urandom_seed_default.py.exp b/micropython-tests/expected/extmod/urandom_seed_default.py.exp new file mode 100644 index 0000000..815d668 --- /dev/null +++ b/micropython-tests/expected/extmod/urandom_seed_default.py.exp @@ -0,0 +1,2 @@ +False +False diff --git a/micropython-tests/expected/extmod/ure1.py.exp b/micropython-tests/expected/extmod/ure1.py.exp new file mode 100644 index 0000000..8976ec4 --- /dev/null +++ b/micropython-tests/expected/extmod/ure1.py.exp @@ -0,0 +1,57 @@ +abc +IndexError +xyz781 +xyz78 +IndexError +a +z +None +None +=== +None +None +d +A +=== +-a +-a +=== +oo +IndexError +foo +wor +a + +ab +b +c +None +Caught invalid regex +b'a' +=== +a.c +True +True +a +.].] +.]+.] +abxcd1-23 +a\aa\bb\bbab +- +True +a +['foo', 'b', 'r'] +['foo', 'b', 'r'] +['foo', 'b', 'r'] +['foo', 'b', 'r'] +['foo', 'b', 'r'] +=== +f +b'f' +f +TypeError +f +b'f' +f +TypeError +=== diff --git a/micropython-tests/expected/extmod/ure_error.py.exp b/micropython-tests/expected/extmod/ure_error.py.exp new file mode 100644 index 0000000..83dd45d --- /dev/null +++ b/micropython-tests/expected/extmod/ure_error.py.exp @@ -0,0 +1,8 @@ +Error +Error +Error +Error +Error +Error +Error +Error diff --git a/micropython-tests/expected/extmod/ure_group.py.exp b/micropython-tests/expected/extmod/ure_group.py.exp new file mode 100644 index 0000000..2d58a75 --- /dev/null +++ b/micropython-tests/expected/extmod/ure_group.py.exp @@ -0,0 +1,19 @@ +---- +1234hello567 +1234hello567 +1234 +hello +---- +1234hello567 +1234 +hello567 +hello +567 +---- +abc +a +c +---- +bc +None +c diff --git a/micropython-tests/expected/extmod/ure_groups.py.exp b/micropython-tests/expected/extmod/ure_groups.py.exp new file mode 100644 index 0000000..b9dad2c --- /dev/null +++ b/micropython-tests/expected/extmod/ure_groups.py.exp @@ -0,0 +1,5 @@ +('1234hello567', '1234', 'hello') +('1234', 'hello567', 'hello', '567') +('a', 'c') +(None, 'c') +() diff --git a/micropython-tests/expected/extmod/ure_namedclass.py.exp b/micropython-tests/expected/extmod/ure_namedclass.py.exp new file mode 100644 index 0000000..9c71eaa --- /dev/null +++ b/micropython-tests/expected/extmod/ure_namedclass.py.exp @@ -0,0 +1,15 @@ +---- +1234hello567 +---- +ABC 1234hello567 +ABC +1234hello567 +---- +ABC hello abc +ABC +hello abc +---- +1234hello567 +1234hello567 +1234 +hello diff --git a/micropython-tests/expected/extmod/ure_span.py.exp b/micropython-tests/expected/extmod/ure_span.py.exp new file mode 100644 index 0000000..21e44cb --- /dev/null +++ b/micropython-tests/expected/extmod/ure_span.py.exp @@ -0,0 +1,19 @@ +---- +(0, 12) 0 12 +(0, 12) 0 12 +(0, 4) 0 4 +(4, 9) 4 9 +---- +(0, 12) 0 12 +(0, 4) 0 4 +(4, 12) 4 12 +(4, 9) 4 9 +(9, 12) 9 12 +---- +(0, 3) 0 3 +(0, 1) 0 1 +(2, 3) 2 3 +---- +(0, 2) 0 2 +(-1, -1) -1 -1 +(1, 2) 1 2 diff --git a/micropython-tests/expected/extmod/ure_split.py.exp b/micropython-tests/expected/extmod/ure_split.py.exp new file mode 100644 index 0000000..9860528 --- /dev/null +++ b/micropython-tests/expected/extmod/ure_split.py.exp @@ -0,0 +1,6 @@ +['a', 'b', 'c', 'foobar'] +['a', 'b', 'c', 'foobar'] +['a', 'b c foobar'] +['a', 'b', 'c foobar'] +['0', '3', '9'] +[b'foo', b'bar'] diff --git a/micropython-tests/expected/extmod/ure_sub.py.exp b/micropython-tests/expected/extmod/ure_sub.py.exp new file mode 100644 index 0000000..92e58bd --- /dev/null +++ b/micropython-tests/expected/extmod/ure_sub.py.exp @@ -0,0 +1,33 @@ +20 40 60 80 100 +5 10 15 20 25 +ABCBABCDAbcdA. + + +static PyObject* +py_myfunc(void){ + return; +} + + +static PyObject* +py_myfunc1(void){ + return; +} + + +static PyObject* +py_myfunc2(void){ + return; +} + +calzino colore blu con scarpa colore verde? ... +abcabc +c +1b2b3a +invalid group +invalid group +a +b'a' +a +TypeError +a\bc diff --git a/micropython-tests/expected/extmod/uselect_poll_basic.py.exp b/micropython-tests/expected/extmod/uselect_poll_basic.py.exp new file mode 100644 index 0000000..53ebc41 --- /dev/null +++ b/micropython-tests/expected/extmod/uselect_poll_basic.py.exp @@ -0,0 +1,2 @@ +modify:TypeError +1 32 diff --git a/micropython-tests/expected/extmod/uselect_poll_udp.py.exp b/micropython-tests/expected/extmod/uselect_poll_udp.py.exp new file mode 100644 index 0000000..9dc3cf5 --- /dev/null +++ b/micropython-tests/expected/extmod/uselect_poll_udp.py.exp @@ -0,0 +1,2 @@ +0 +True diff --git a/micropython-tests/expected/extmod/usocket_tcp_basic.py.exp b/micropython-tests/expected/extmod/usocket_tcp_basic.py.exp new file mode 100644 index 0000000..fd23897 --- /dev/null +++ b/micropython-tests/expected/extmod/usocket_tcp_basic.py.exp @@ -0,0 +1 @@ +ENOTCONN: True diff --git a/micropython-tests/expected/extmod/usocket_udp_nonblock.py.exp b/micropython-tests/expected/extmod/usocket_udp_nonblock.py.exp new file mode 100644 index 0000000..c833c5d --- /dev/null +++ b/micropython-tests/expected/extmod/usocket_udp_nonblock.py.exp @@ -0,0 +1 @@ +EAGAIN: True diff --git a/micropython-tests/expected/extmod/uzlib_decompress.py.exp b/micropython-tests/expected/extmod/uzlib_decompress.py.exp new file mode 100644 index 0000000..7576024 --- /dev/null +++ b/micropython-tests/expected/extmod/uzlib_decompress.py.exp @@ -0,0 +1,10 @@ +b'0' +b'a' +b'0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' +b'\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\x0c\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f !"#$%&\'()*+,-./0123456789:;<=>?' +b'hello' +b'13371813150|13764518736|12345678901' +b'>I}\x00\x951D>I}\x00\x951D>I}\x00\x951D>I}\x00\x951D' +b'hello' +Exception +Exception diff --git a/micropython-tests/expected/float/array_construct.py.exp b/micropython-tests/expected/float/array_construct.py.exp new file mode 100644 index 0000000..839f08e --- /dev/null +++ b/micropython-tests/expected/float/array_construct.py.exp @@ -0,0 +1,2 @@ +array('f', [1.0, 2.0]) +array('d', [1.0, 2.0]) diff --git a/micropython-tests/expected/float/builtin_float_abs.py.exp b/micropython-tests/expected/float/builtin_float_abs.py.exp new file mode 100644 index 0000000..eb2dc15 --- /dev/null +++ b/micropython-tests/expected/float/builtin_float_abs.py.exp @@ -0,0 +1,8 @@ +1.0 1.0 +-1.0 1.0 +0.0 0.0 +-0.0 0.0 +nan nan +-nan nan +inf inf +-inf inf diff --git a/micropython-tests/expected/float/builtin_float_hash.py.exp b/micropython-tests/expected/float/builtin_float_hash.py.exp new file mode 100644 index 0000000..7dde9ee --- /dev/null +++ b/micropython-tests/expected/float/builtin_float_hash.py.exp @@ -0,0 +1,14 @@ +0.0 0 +-0.0 0 +1.0 1 +2.0 2 +-12.0 -12 +12345.0 12345 +0.1 +-0.1 +10.3 +0.4e3 +1e16 +inf +-inf +nan diff --git a/micropython-tests/expected/float/builtin_float_minmax.py.exp b/micropython-tests/expected/float/builtin_float_minmax.py.exp new file mode 100644 index 0000000..32c444f --- /dev/null +++ b/micropython-tests/expected/float/builtin_float_minmax.py.exp @@ -0,0 +1,18 @@ +0 +0 +-1.0 +-1.0 +1.0 +1.0 +0 +0 +-1.5 +-1.5 +1.5 +1.5 +-1 +4 +-1 +6.5 +-6.5 +4 diff --git a/micropython-tests/expected/float/builtin_float_pow.py.exp b/micropython-tests/expected/float/builtin_float_pow.py.exp new file mode 100644 index 0000000..8011d67 --- /dev/null +++ b/micropython-tests/expected/float/builtin_float_pow.py.exp @@ -0,0 +1,8 @@ +1.0 +0.0 +1.0 +8.0 +0.0625 +0.0 +inf +nan diff --git a/micropython-tests/expected/float/builtin_float_round.py.exp b/micropython-tests/expected/float/builtin_float_round.py.exp new file mode 100644 index 0000000..0e10059 --- /dev/null +++ b/micropython-tests/expected/float/builtin_float_round.py.exp @@ -0,0 +1,29 @@ +0 +1 +0 +0 +123 +124 +-123 +-124 +1.23457 +1.2 +1.0 +1200.0 +-2 +-2 +-2 +-1 +0 +0 +0 +1 +2 +2 +2 +0.0 +1.0 +1.5 +1.47 + + diff --git a/micropython-tests/expected/float/builtin_float_round_intbig.py.exp b/micropython-tests/expected/float/builtin_float_round_intbig.py.exp new file mode 100644 index 0000000..2035190 --- /dev/null +++ b/micropython-tests/expected/float/builtin_float_round_intbig.py.exp @@ -0,0 +1,2 @@ +-1e+25 +1e+25 diff --git a/micropython-tests/expected/float/bytearray_construct_endian.py.exp b/micropython-tests/expected/float/bytearray_construct_endian.py.exp new file mode 100644 index 0000000..fa0acf8 --- /dev/null +++ b/micropython-tests/expected/float/bytearray_construct_endian.py.exp @@ -0,0 +1 @@ +bytearray(b'\x00\x00\x80?\x00\x00 @') diff --git a/micropython-tests/expected/float/bytes_construct_endian.py.exp b/micropython-tests/expected/float/bytes_construct_endian.py.exp new file mode 100644 index 0000000..6fde049 --- /dev/null +++ b/micropython-tests/expected/float/bytes_construct_endian.py.exp @@ -0,0 +1 @@ +b'\x00\x00\x80?\x00\x00 @' diff --git a/micropython-tests/expected/float/cmath_fun.py.exp b/micropython-tests/expected/float/cmath_fun.py.exp new file mode 100644 index 0000000..7d0d0e2 --- /dev/null +++ b/micropython-tests/expected/float/cmath_fun.py.exp @@ -0,0 +1,363 @@ +2.7183 +3.1416 +[0j, 0.5j, -0.5j, 1.2345j, -1.2345j, 10j, -10j, (0.5+0j), (-0.5+0j), (0.5+0.5j), (-0.5+0.5j), (0.5-0.5j), (-0.5-0.5j), (0.5+1.2345j), (-0.5+1.2345j), (0.5-1.2345j), (-0.5-1.2345j), (0.5+10j), (-0.5+10j), (0.5-10j), (-0.5-10j), (1.2345+0j), (-1.2345+0j), (1.2345+0.5j), (-1.2345+0.5j), (1.2345-0.5j), (-1.2345-0.5j), (1.2345+1.2345j), (-1.2345+1.2345j), (1.2345-1.2345j), (-1.2345-1.2345j), (1.2345+10j), (-1.2345+10j), (1.2345-10j), (-1.2345-10j), (10+0j), (-10+0j), (10+0.5j), (-10+0.5j), (10-0.5j), (-10-0.5j), (10+1.2345j), (-10+1.2345j), (10-1.2345j), (-10-1.2345j), (10+10j), (-10+10j), (10-10j), (-10-10j)] +phase +0 +1.5708 +-1.5708 +1.5708 +-1.5708 +1.5708 +-1.5708 +0 +3.1416 +0.7854 +2.3562 +-0.7854 +-2.3562 +1.186 +1.9556 +-1.186 +-1.9556 +1.5208 +1.6208 +-1.5208 +-1.6208 +0 +3.1416 +0.38483 +2.7568 +-0.38483 +-2.7568 +0.7854 +2.3562 +-0.7854 +-2.3562 +1.448 +1.6936 +-1.448 +-1.6936 +0 +3.1416 +0.049958 +3.0916 +-0.049958 +-3.0916 +0.12283 +3.0188 +-0.12283 +-3.0188 +0.7854 +2.3562 +-0.7854 +-2.3562 +polar +0 0 +0.5 1.5708 +0.5 -1.5708 +1.2345 1.5708 +1.2345 -1.5708 +10 1.5708 +10 -1.5708 +0.5 0 +0.5 3.1416 +0.70711 0.7854 +0.70711 2.3562 +0.70711 -0.7854 +0.70711 -2.3562 +1.3319 1.186 +1.3319 1.9556 +1.3319 -1.186 +1.3319 -1.9556 +10.012 1.5208 +10.012 1.6208 +10.012 -1.5208 +10.012 -1.6208 +1.2345 0 +1.2345 3.1416 +1.3319 0.38483 +1.3319 2.7568 +1.3319 -0.38483 +1.3319 -2.7568 +1.7458 0.7854 +1.7458 2.3562 +1.7458 -0.7854 +1.7458 -2.3562 +10.076 1.448 +10.076 1.6936 +10.076 -1.448 +10.076 -1.6936 +10 0 +10 3.1416 +10.012 0.049958 +10.012 3.0916 +10.012 -0.049958 +10.012 -3.0916 +10.076 0.12283 +10.076 3.0188 +10.076 -0.12283 +10.076 -3.0188 +14.142 0.7854 +14.142 2.3562 +14.142 -0.7854 +14.142 -2.3562 +rect +complex(0, 0) +complex(0, 0) +complex(0, -0) +complex(1, 0) +complex(-1, -0) +complex(0.5403, 0.84147) +complex(-0.5403, -0.84147) +complex(0.5403, -0.84147) +complex(-109.71, 55.602) +exp +complex(1, 0) +complex(0.87758, 0.47943) +complex(0.87758, -0.47943) +complex(0.32999, 0.94398) +complex(0.32999, -0.94398) +complex(-0.83907, -0.54402) +complex(-0.83907, 0.54402) +complex(1.6487, 0) +complex(0.60653, 0) +complex(1.4469, 0.79044) +complex(0.53228, 0.29079) +complex(1.4469, -0.79044) +complex(0.53228, -0.29079) +complex(0.54407, 1.5564) +complex(0.20015, 0.57255) +complex(0.54407, -1.5564) +complex(0.20015, -0.57255) +complex(-1.3834, -0.89694) +complex(-0.50892, -0.32997) +complex(-1.3834, 0.89694) +complex(-0.50892, 0.32997) +complex(3.4367, 0) +complex(0.29098, 0) +complex(3.016, 1.6476) +complex(0.25536, 0.1395) +complex(3.016, -1.6476) +complex(0.25536, -0.1395) +complex(1.1341, 3.2441) +complex(0.096021, 0.27468) +complex(1.1341, -3.2441) +complex(0.096021, -0.27468) +complex(-2.8836, -1.8696) +complex(-0.24415, -0.1583) +complex(-2.8836, 1.8696) +complex(-0.24415, 0.1583) +complex(22026, 0) +complex(4.54e-05, 0) +complex(19330, 10560) +complex(3.9842e-05, 2.1766e-05) +complex(19330, -10560) +complex(3.9842e-05, -2.1766e-05) +complex(7268.6, 20793) +complex(1.4982e-05, 4.2857e-05) +complex(7268.6, -20793) +complex(1.4982e-05, -4.2857e-05) +complex(-18482, -11983) +complex(-3.8094e-05, -2.4699e-05) +complex(-18482, 11983) +complex(-3.8094e-05, 2.4699e-05) +log +complex(-0.69315, 1.5708) +complex(-0.69315, -1.5708) +complex(0.21067, 1.5708) +complex(0.21067, -1.5708) +complex(2.3026, 1.5708) +complex(2.3026, -1.5708) +complex(-0.69315, 0) +complex(-0.69315, 3.1416) +complex(-0.34657, 0.7854) +complex(-0.34657, 2.3562) +complex(-0.34657, -0.7854) +complex(-0.34657, -2.3562) +complex(0.28662, 1.186) +complex(0.28662, 1.9556) +complex(0.28662, -1.186) +complex(0.28662, -1.9556) +complex(2.3038, 1.5208) +complex(2.3038, 1.6208) +complex(2.3038, -1.5208) +complex(2.3038, -1.6208) +complex(0.21067, 0) +complex(0.21067, 3.1416) +complex(0.28662, 0.38483) +complex(0.28662, 2.7568) +complex(0.28662, -0.38483) +complex(0.28662, -2.7568) +complex(0.55724, 0.7854) +complex(0.55724, 2.3562) +complex(0.55724, -0.7854) +complex(0.55724, -2.3562) +complex(2.3101, 1.448) +complex(2.3101, 1.6936) +complex(2.3101, -1.448) +complex(2.3101, -1.6936) +complex(2.3026, 0) +complex(2.3026, 3.1416) +complex(2.3038, 0.049958) +complex(2.3038, 3.0916) +complex(2.3038, -0.049958) +complex(2.3038, -3.0916) +complex(2.3101, 0.12283) +complex(2.3101, 3.0188) +complex(2.3101, -0.12283) +complex(2.3101, -3.0188) +complex(2.6492, 0.7854) +complex(2.6492, 2.3562) +complex(2.6492, -0.7854) +complex(2.6492, -2.3562) +sqrt +complex(0, 0) +complex(0.5, 0.5) +complex(0.5, -0.5) +complex(0.78565, 0.78565) +complex(0.78565, -0.78565) +complex(2.2361, 2.2361) +complex(2.2361, -2.2361) +complex(0.70711, 0) +complex(0, 0.70711) +complex(0.77689, 0.3218) +complex(0.3218, 0.77689) +complex(0.77689, -0.3218) +complex(0.3218, -0.77689) +complex(0.95706, 0.64495) +complex(0.64495, 0.95706) +complex(0.95706, -0.64495) +complex(0.64495, -0.95706) +complex(2.2927, 2.1809) +complex(2.1809, 2.2927) +complex(2.2927, -2.1809) +complex(2.1809, -2.2927) +complex(1.1111, 0) +complex(0, 1.1111) +complex(1.1328, 0.22069) +complex(0.22069, 1.1328) +complex(1.1328, -0.22069) +complex(0.22069, -1.1328) +complex(1.2207, 0.50564) +complex(0.50564, 1.2207) +complex(1.2207, -0.50564) +complex(0.50564, -1.2207) +complex(2.3781, 2.1025) +complex(2.1025, 2.3781) +complex(2.3781, -2.1025) +complex(2.1025, -2.3781) +complex(3.1623, 0) +complex(0, 3.1623) +complex(3.1633, 0.079032) +complex(0.079032, 3.1633) +complex(3.1633, -0.079032) +complex(0.079032, -3.1633) +complex(3.1683, 0.19482) +complex(0.19482, 3.1683) +complex(3.1683, -0.19482) +complex(0.19482, -3.1683) +complex(3.4743, 1.4391) +complex(1.4391, 3.4743) +complex(3.4743, -1.4391) +complex(1.4391, -3.4743) +cos +complex(1, -0) +complex(1.1276, -0) +complex(1.1276, 0) +complex(1.8638, -0) +complex(1.8638, 0) +complex(11013, -0) +complex(11013, 0) +complex(0.87758, -0) +complex(0.87758, 0) +complex(0.98958, -0.24983) +complex(0.98958, 0.24983) +complex(0.98958, 0.24983) +complex(0.98958, -0.24983) +complex(1.6357, -0.75406) +complex(1.6357, 0.75406) +complex(1.6357, 0.75406) +complex(1.6357, -0.75406) +complex(9665, -5280) +complex(9665, 5280) +complex(9665, 5280) +complex(9665, -5280) +complex(0.32999, -0) +complex(0.32999, 0) +complex(0.37211, -0.49191) +complex(0.37211, 0.49191) +complex(0.37211, 0.49191) +complex(0.37211, -0.49191) +complex(0.61505, -1.4847) +complex(0.61505, 1.4847) +complex(0.61505, 1.4847) +complex(0.61505, -1.4847) +complex(3634.3, -10396) +complex(3634.3, 10396) +complex(3634.3, 10396) +complex(3634.3, -10396) +complex(-0.83907, 0) +complex(-0.83907, -0) +complex(-0.94616, 0.28349) +complex(-0.94616, -0.28349) +complex(-0.94616, -0.28349) +complex(-0.94616, 0.28349) +complex(-1.5639, 0.85566) +complex(-1.5639, -0.85566) +complex(-1.5639, -0.85566) +complex(-1.5639, 0.85566) +complex(-9240.9, 5991.4) +complex(-9240.9, -5991.4) +complex(-9240.9, -5991.4) +complex(-9240.9, 5991.4) +sin +complex(0, 0) +complex(0, 0.5211) +complex(0, -0.5211) +complex(0, 1.5728) +complex(0, -1.5728) +complex(0, 11013) +complex(0, -11013) +complex(0.47943, 0) +complex(-0.47943, 0) +complex(0.54061, 0.4573) +complex(-0.54061, 0.4573) +complex(0.54061, -0.4573) +complex(-0.54061, -0.4573) +complex(0.89356, 1.3803) +complex(-0.89356, 1.3803) +complex(0.89356, -1.3803) +complex(-0.89356, -1.3803) +complex(5280, 9665) +complex(-5280, 9665) +complex(5280, -9665) +complex(-5280, -9665) +complex(0.94398, 0) +complex(-0.94398, 0) +complex(1.0645, 0.17196) +complex(-1.0645, 0.17196) +complex(1.0645, -0.17196) +complex(-1.0645, -0.17196) +complex(1.7594, 0.51903) +complex(-1.7594, 0.51903) +complex(1.7594, -0.51903) +complex(-1.7594, -0.51903) +complex(10396, 3634.3) +complex(-10396, 3634.3) +complex(10396, -3634.3) +complex(-10396, -3634.3) +complex(-0.54402, -0) +complex(0.54402, -0) +complex(-0.61345, -0.43724) +complex(0.61345, -0.43724) +complex(-0.61345, 0.43724) +complex(0.61345, 0.43724) +complex(-1.014, -1.3197) +complex(1.014, -1.3197) +complex(-1.014, 1.3197) +complex(1.014, 1.3197) +complex(-5991.4, -9240.9) +complex(5991.4, -9240.9) +complex(-5991.4, 9240.9) +complex(5991.4, 9240.9) +TypeError diff --git a/micropython-tests/expected/float/cmath_fun_special.py.exp b/micropython-tests/expected/float/cmath_fun_special.py.exp new file mode 100644 index 0000000..6bb2ab4 --- /dev/null +++ b/micropython-tests/expected/float/cmath_fun_special.py.exp @@ -0,0 +1,49 @@ +log10 +complex(-0.301, 0.6822) +complex(-0.301, -0.6822) +complex(0.09149, 0.6822) +complex(0.09149, -0.6822) +complex(1, 0.6822) +complex(1, -0.6822) +complex(-0.301, 0) +complex(-0.301, 1.364) +complex(-0.1505, 0.3411) +complex(-0.1505, 1.023) +complex(-0.1505, -0.3411) +complex(-0.1505, -1.023) +complex(0.1245, 0.5151) +complex(0.1245, 0.8493) +complex(0.1245, -0.5151) +complex(0.1245, -0.8493) +complex(1.001, 0.6605) +complex(1.001, 0.7039) +complex(1.001, -0.6605) +complex(1.001, -0.7039) +complex(0.09149, 0) +complex(0.09149, 1.364) +complex(0.1245, 0.1671) +complex(0.1245, 1.197) +complex(0.1245, -0.1671) +complex(0.1245, -1.197) +complex(0.242, 0.3411) +complex(0.242, 1.023) +complex(0.242, -0.3411) +complex(0.242, -1.023) +complex(1.003, 0.6288) +complex(1.003, 0.7355) +complex(1.003, -0.6288) +complex(1.003, -0.7355) +complex(1, 0) +complex(1, 1.364) +complex(1.001, 0.0217) +complex(1.001, 1.343) +complex(1.001, -0.0217) +complex(1.001, -1.343) +complex(1.003, 0.05334) +complex(1.003, 1.311) +complex(1.003, -0.05334) +complex(1.003, -1.311) +complex(1.151, 0.3411) +complex(1.151, 1.023) +complex(1.151, -0.3411) +complex(1.151, -1.023) diff --git a/micropython-tests/expected/float/complex1.py.exp b/micropython-tests/expected/float/complex1.py.exp new file mode 100644 index 0000000..c8ea763 --- /dev/null +++ b/micropython-tests/expected/float/complex1.py.exp @@ -0,0 +1,53 @@ +(1+0j) +(1.2+0j) +1.2j +(1+0j) +(1.2+0j) +1.2j +(1+2j) +(-2+1j) +True +1j +(-1-2j) +1j +(1+1j) +(2+1j) +3j +(-2+1j) +-1j +2j +(-2+0j) +0.5j +0.5 +(0.4+0.2j) +1 0 +0 0 +1 0 +-0.70711 -0.70711 +0.019703 0 +False +True +True True +True True +False +False +1.0 +2.2361 +1 + +(1.2+3j) +0.58779 0.80902 +-0.16625 0.51167 +(nan+nanj) +(nan+nanj) +(inf+infj) +(-inf-infj) +AttributeError +TypeError +TypeError +TypeError +TypeError +TypeError +ZeroDivisionError +ZeroDivisionError +ZeroDivisionError diff --git a/micropython-tests/expected/float/complex1_intbig.py.exp b/micropython-tests/expected/float/complex1_intbig.py.exp new file mode 100644 index 0000000..16c355d --- /dev/null +++ b/micropython-tests/expected/float/complex1_intbig.py.exp @@ -0,0 +1 @@ +1.1806e+21 1 diff --git a/micropython-tests/expected/float/complex_special_methods.py.exp b/micropython-tests/expected/float/complex_special_methods.py.exp new file mode 100644 index 0000000..2376a74 --- /dev/null +++ b/micropython-tests/expected/float/complex_special_methods.py.exp @@ -0,0 +1,2 @@ +__add__ +1 diff --git a/micropython-tests/expected/float/float1.py.exp b/micropython-tests/expected/float/float1.py.exp new file mode 100644 index 0000000..60d843b --- /dev/null +++ b/micropython-tests/expected/float/float1.py.exp @@ -0,0 +1,50 @@ +0.12 +1.0 +1.2 +0.0 +0.0 +0.0 +1.2 +1.2 +1.0 +10.0 +10.0 +0.1 +inf +-inf +inf +inf +inf +nan +nan +nan +ValueError +ValueError +ValueError +1.2 +3.4 +False +True +1.2 +-1.2 +0.5 +0.5 +0.0 +1.0 +True +False +False +True +True True +True True +False +False +ZeroDivisionError +ZeroDivisionError +ZeroDivisionError +ZeroDivisionError +TypeError +TypeError +TypeError +TypeError +1.84729 diff --git a/micropython-tests/expected/float/float2int_fp30_intbig.py.exp b/micropython-tests/expected/float/float2int_fp30_intbig.py.exp new file mode 100644 index 0000000..c15f4e3 --- /dev/null +++ b/micropython-tests/expected/float/float2int_fp30_intbig.py.exp @@ -0,0 +1,12 @@ +14187744 +14187744 +1267650600228229401496703205376 +1267650600228229401496703205376 +power of 2 test: passed +power of 10 test: passed +large neg: passed +large pos: passed +inf test: passed +inf test: passed +NaN test: passed +small num: passed diff --git a/micropython-tests/expected/float/float2int_intbig.py.exp b/micropython-tests/expected/float/float2int_intbig.py.exp new file mode 100644 index 0000000..a276d0b --- /dev/null +++ b/micropython-tests/expected/float/float2int_intbig.py.exp @@ -0,0 +1,11 @@ +14187745 +14187745 +1267650600228229401496703205376 +1267650600228229401496703205376 +power of 2 test: passed +power of 10 test: passed +large neg: passed +large pos: passed +inf test: passed +NaN test: passed +small num: passed diff --git a/micropython-tests/expected/float/float_array.py.exp b/micropython-tests/expected/float/float_array.py.exp new file mode 100644 index 0000000..c5c1bd3 --- /dev/null +++ b/micropython-tests/expected/float/float_array.py.exp @@ -0,0 +1,9 @@ +array('f') +1 1.200 +3 1.000 0.000 +3.450 +array('d') +1 1.200 +3 1.000 0.000 +3.450 +0.1000 diff --git a/micropython-tests/expected/float/float_compare.py.exp b/micropython-tests/expected/float/float_compare.py.exp new file mode 100644 index 0000000..d9049a4 --- /dev/null +++ b/micropython-tests/expected/float/float_compare.py.exp @@ -0,0 +1,7 @@ +False +False +False +False +False +TypeError +TypeError diff --git a/micropython-tests/expected/float/float_divmod_relaxed.py.exp b/micropython-tests/expected/float/float_divmod_relaxed.py.exp new file mode 100644 index 0000000..2222b54 --- /dev/null +++ b/micropython-tests/expected/float/float_divmod_relaxed.py.exp @@ -0,0 +1,634 @@ +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +True True True +ZeroDivisionError diff --git a/micropython-tests/expected/float/float_format.py.exp b/micropython-tests/expected/float/float_format.py.exp new file mode 100644 index 0000000..d5b8e27 --- /dev/null +++ b/micropython-tests/expected/float/float_format.py.exp @@ -0,0 +1,25 @@ +116 +116.0 +116.000 +1111 +1111.0 +1111.000 +1234 +1234.0 +1234.000 +5010 +5010.0 +5010.000 +11111 +11111.0 +11111.000 +0 +0.0 +0.00 +0.000 +0.0001 +0.00006 +0.000060 +0.0000600 +1.00e+12 +1.00e+19 diff --git a/micropython-tests/expected/float/float_parse.py.exp b/micropython-tests/expected/float/float_parse.py.exp new file mode 100644 index 0000000..89a076a --- /dev/null +++ b/micropython-tests/expected/float/float_parse.py.exp @@ -0,0 +1,26 @@ +0.0 +0.0 +1.0000e+00 +1.0000e+20 +1.0 +1e+20 +True +True +True +True +1e-37 +1e-37 +1e-37 +inf +0.0 +inf +0.0 +True +True +True +True +True +True +True +True +True diff --git a/micropython-tests/expected/float/float_struct.py.exp b/micropython-tests/expected/float/float_struct.py.exp new file mode 100644 index 0000000..75b55d1 --- /dev/null +++ b/micropython-tests/expected/float/float_struct.py.exp @@ -0,0 +1,6 @@ + f: 1.50000000000000000 - passed + d: 1.50000000000000000 - passed +>f: 1.50000000000000000 - passed +>d: 1.50000000000000000 - passed + >= True False False True False True +-2 -1 + + - * -3 -1 2 + / 2.0 + ** pow -0.5 -0.5 + == != < <= > >= False True True True False False +-2 0 + + - * -2 -2 0 + / ZeroDivisionError + ** pow 1 1 + == != < <= > >= False True True True False False +-2 1 + + - * -1 -3 -2 + / -2.0 + ** pow -2 -2 + == != < <= > >= False True True True False False +-2 2 + + - * 0 -4 -4 + / -1.0 + ** pow 4 4 + == != < <= > >= False True True True False False +-2 inf + + - * inf -inf -inf + / -0.0 + ** pow inf inf + == != < <= > >= False True True True False False +-2 nan + + - * nan nan nan + / nan + ** pow nan nan + == != < <= > >= False True False False False False +-1 -2 + + - * -3 1 2 + / 0.5 + ** pow 1.0 1.0 + == != < <= > >= False True False False True True +-1 -1 + + - * -2 0 1 + / 1.0 + ** pow -1.0 -1.0 + == != < <= > >= True False False True False True +-1 0 + + - * -1 -1 0 + / ZeroDivisionError + ** pow 1 1 + == != < <= > >= False True True True False False +-1 1 + + - * 0 -2 -1 + / -1.0 + ** pow -1 -1 + == != < <= > >= False True True True False False +-1 2 + + - * 1 -3 -2 + / -0.5 + ** pow 1 1 + == != < <= > >= False True True True False False +-1 inf + + - * inf -inf -inf + / -0.0 + ** pow 1.0 1.0 + == != < <= > >= False True True True False False +-1 nan + + - * nan nan nan + / nan + ** pow nan nan + == != < <= > >= False True False False False False +0 -2 + + - * -2 2 0 + / -0.0 + ** pow ZeroDivisionError + == != < <= > >= False True False False True True +0 -1 + + - * -1 1 0 + / -0.0 + ** pow ZeroDivisionError + == != < <= > >= False True False False True True +0 0 + + - * 0 0 0 + / ZeroDivisionError + ** pow 1 1 + == != < <= > >= True False False True False True +0 1 + + - * 1 -1 0 + / 0.0 + ** pow 0 0 + == != < <= > >= False True True True False False +0 2 + + - * 2 -2 0 + / 0.0 + ** pow 0 0 + == != < <= > >= False True True True False False +0 inf + + - * inf -inf nan + / 0.0 + ** pow 0.0 0.0 + == != < <= > >= False True True True False False +0 nan + + - * nan nan nan + / nan + ** pow nan nan + == != < <= > >= False True False False False False +1 -2 + + - * -1 3 -2 + / -0.5 + ** pow 1.0 1.0 + == != < <= > >= False True False False True True +1 -1 + + - * 0 2 -1 + / -1.0 + ** pow 1.0 1.0 + == != < <= > >= False True False False True True +1 0 + + - * 1 1 0 + / ZeroDivisionError + ** pow 1 1 + == != < <= > >= False True False False True True +1 1 + + - * 2 0 1 + / 1.0 + ** pow 1 1 + == != < <= > >= True False False True False True +1 2 + + - * 3 -1 2 + / 0.5 + ** pow 1 1 + == != < <= > >= False True True True False False +1 inf + + - * inf -inf inf + / 0.0 + ** pow 1.0 1.0 + == != < <= > >= False True True True False False +1 nan + + - * nan nan nan + / nan + ** pow 1.0 1.0 + == != < <= > >= False True False False False False +2 -2 + + - * 0 4 -4 + / -1.0 + ** pow 0.25 0.25 + == != < <= > >= False True False False True True +2 -1 + + - * 1 3 -2 + / -2.0 + ** pow 0.5 0.5 + == != < <= > >= False True False False True True +2 0 + + - * 2 2 0 + / ZeroDivisionError + ** pow 1 1 + == != < <= > >= False True False False True True +2 1 + + - * 3 1 2 + / 2.0 + ** pow 2 2 + == != < <= > >= False True False False True True +2 2 + + - * 4 0 4 + / 1.0 + ** pow 4 4 + == != < <= > >= True False False True False True +2 inf + + - * inf -inf inf + / 0.0 + ** pow inf inf + == != < <= > >= False True True True False False +2 nan + + - * nan nan nan + / nan + ** pow nan nan + == != < <= > >= False True False False False False +inf -2 + + - * inf inf -inf + / -inf + ** pow 0.0 0.0 + == != < <= > >= False True False False True True +inf -1 + + - * inf inf -inf + / -inf + ** pow 0.0 0.0 + == != < <= > >= False True False False True True +inf 0 + + - * inf inf nan + / ZeroDivisionError + ** pow 1.0 1.0 + == != < <= > >= False True False False True True +inf 1 + + - * inf inf inf + / inf + ** pow inf inf + == != < <= > >= False True False False True True +inf 2 + + - * inf inf inf + / inf + ** pow inf inf + == != < <= > >= False True False False True True +inf inf + + - * inf nan inf + / nan + ** pow inf inf + == != < <= > >= True False False True False True +inf nan + + - * nan nan nan + / nan + ** pow nan nan + == != < <= > >= False True False False False False +nan -2 + + - * nan nan nan + / nan + ** pow nan nan + == != < <= > >= False True False False False False +nan -1 + + - * nan nan nan + / nan + ** pow nan nan + == != < <= > >= False True False False False False +nan 0 + + - * nan nan nan + / ZeroDivisionError + ** pow 1.0 1.0 + == != < <= > >= False True False False False False +nan 1 + + - * nan nan nan + / nan + ** pow nan nan + == != < <= > >= False True False False False False +nan 2 + + - * nan nan nan + / nan + ** pow nan nan + == != < <= > >= False True False False False False +nan inf + + - * nan nan nan + / nan + ** pow nan nan + == != < <= > >= False True False False False False +nan nan + + - * nan nan nan + / nan + ** pow nan nan + == != < <= > >= False True False False False False diff --git a/micropython-tests/expected/float/int_big_float.py.exp b/micropython-tests/expected/float/int_big_float.py.exp new file mode 100644 index 0000000..02b9735 --- /dev/null +++ b/micropython-tests/expected/float/int_big_float.py.exp @@ -0,0 +1,9 @@ +7.3787e+19 +-3.6893e+19 +7.3787e+18 +4.4272e+19 +3.0745e+19 +4.4272e+19 +2.7105e-20 +0.125 +ZeroDivisionError diff --git a/micropython-tests/expected/float/int_divzero.py.exp b/micropython-tests/expected/float/int_divzero.py.exp new file mode 100644 index 0000000..fa59c89 --- /dev/null +++ b/micropython-tests/expected/float/int_divzero.py.exp @@ -0,0 +1,2 @@ +ZeroDivisionError +ZeroDivisionError diff --git a/micropython-tests/expected/float/int_power.py.exp b/micropython-tests/expected/float/int_power.py.exp new file mode 100644 index 0000000..6175b71 --- /dev/null +++ b/micropython-tests/expected/float/int_power.py.exp @@ -0,0 +1,2 @@ +0.25 +0.11111 diff --git a/micropython-tests/expected/float/lexer.py.exp b/micropython-tests/expected/float/lexer.py.exp new file mode 100644 index 0000000..49d5957 --- /dev/null +++ b/micropython-tests/expected/float/lexer.py.exp @@ -0,0 +1 @@ +0.1 diff --git a/micropython-tests/expected/float/list_index.py.exp b/micropython-tests/expected/float/list_index.py.exp new file mode 100644 index 0000000..3670049 --- /dev/null +++ b/micropython-tests/expected/float/list_index.py.exp @@ -0,0 +1,2 @@ +2 +TypeError diff --git a/micropython-tests/expected/float/math_domain.py.exp b/micropython-tests/expected/float/math_domain.py.exp new file mode 100644 index 0000000..f4acd67 --- /dev/null +++ b/micropython-tests/expected/float/math_domain.py.exp @@ -0,0 +1,76 @@ +inf +nan +ceil OverflowError +ceil ValueError +floor OverflowError +floor ValueError +trunc OverflowError +trunc ValueError +sqrt ValueError +0.0000 +inf +nan +inf +nan +sin ValueError +nan +cos ValueError +nan +tan ValueError +nan +asin ValueError +1.5708 +asin ValueError +asin ValueError +nan +acos ValueError +0.0000 +acos ValueError +acos ValueError +nan +1.5708 +nan +inf +nan +inf +nan +inf +nan +0.0000 +1.0000 +pow ValueError +pow ValueError +1.0000 +1.0000 +0.0000 +1.0000 +inf +nan +nan +nan +1.2000 +1.2000 +fmod ValueError +fmod ValueError +0.0000 +fmod ValueError +fmod ValueError +nan +nan +nan +0.0000 +-0.7854 +-2.3562 +2.3562 +0.0000 +1.5708 +0.7854 +nan +nan +nan +0.0000 +inf +inf +inf +nan +nan diff --git a/micropython-tests/expected/float/math_domain_special.py.exp b/micropython-tests/expected/float/math_domain_special.py.exp new file mode 100644 index 0000000..677d68f --- /dev/null +++ b/micropython-tests/expected/float/math_domain_special.py.exp @@ -0,0 +1,56 @@ +inf +0.0000 +nan +log2 ValueError +log2 ValueError +inf +log2 ValueError +nan +log10 ValueError +log10 ValueError +inf +log10 ValueError +nan +inf +-inf +nan +inf +inf +nan +1.0000 +-1.0000 +nan +inf +-inf +nan +acosh ValueError +acosh ValueError +0.0000 +inf +acosh ValueError +nan +atanh ValueError +atanh ValueError +atanh ValueError +atanh ValueError +nan +1.0000 +-1.0000 +nan +0.0000 +2.0000 +nan +gamma ValueError +gamma ValueError +gamma ValueError +1.0000 +inf +gamma ValueError +nan +lgamma ValueError +lgamma ValueError +lgamma ValueError +0.0000 +inf +inf +nan diff --git a/micropython-tests/expected/float/math_factorial_intbig.py.exp b/micropython-tests/expected/float/math_factorial_intbig.py.exp new file mode 100644 index 0000000..721bc00 --- /dev/null +++ b/micropython-tests/expected/float/math_factorial_intbig.py.exp @@ -0,0 +1,31 @@ +ValueError +1 +1 +2 +6 +24 +120 +720 +5040 +40320 +362880 +3628800 +39916800 +479001600 +6227020800 +87178291200 +1307674368000 +20922789888000 +355687428096000 +6402373705728000 +121645100408832000 +2432902008176640000 +51090942171709440000 +1124000727777607680000 +25852016738884976640000 +620448401733239439360000 +15511210043330985984000000 +403291461126605635584000000 +10888869450418352160768000000 +304888344611713860501504000000 +8841761993739701954543616000000 diff --git a/micropython-tests/expected/float/math_fun.py.exp b/micropython-tests/expected/float/math_fun.py.exp new file mode 100644 index 0000000..4497b55 --- /dev/null +++ b/micropython-tests/expected/float/math_fun.py.exp @@ -0,0 +1,195 @@ +sqrt +math domain error +math domain error +math domain error +math domain error +0 +0.70711 +1.1111 +10 +exp +4.54e-05 +0.29096 +0.36788 +0.60653 +1 +1.6487 +3.4369 +22026 +log +math domain error +math domain error +math domain error +math domain error +math domain error +-0.69315 +0.21071 +4.6052 +cos +0.86232 +0.32994 +0.5403 +0.87758 +1 +0.87758 +0.32994 +0.86232 +sin +0.50637 +-0.944 +-0.84147 +-0.47943 +0 +0.47943 +0.944 +-0.50637 +tan +0.58721 +-2.8612 +-1.5574 +-0.5463 +0 +0.5463 +2.8612 +-0.58721 +acos +3.1416 +2.4189 +2.0944 +1.8235 +1.5708 +1.3181 +1.0472 +0.72273 +0 +asin +-1.5708 +-0.84806 +-0.5236 +-0.25268 +0 +0.25268 +0.5236 +0.84806 +1.5708 +atan +-1.5608 +-0.88998 +-0.7854 +-0.46365 +0 +0.46365 +0.88998 +1.5608 +ceil +-100 +-1 +-1 +0 +0 +1 +2 +100 +fabs +100 +1.2346 +1 +0.5 +0 +0.5 +1.2346 +100 +floor +-100 +-2 +-1 +-1 +0 +0 +1 +100 +trunc +-100 +-1 +-1 +0 +0 +0 +1 +100 +radians +-1.7453 +-0.021547 +-0.017453 +-0.0087266 +0 +0.0087266 +0.021547 +1.7453 +degrees +-5729.6 +-70.735 +-57.296 +-28.648 +0 +28.648 +70.735 +5729.6 +frexp +-0.78125 7 +-0.61728 1 +-0.5 1 +-0.5 0 +0 0 +0.5 0 +0.61728 1 +0.78125 7 +modf +-0 -100 +-0.23456 -1 +-0 -1 +-0.5 -0 +0 0 +0.5 0 +0.23456 1 +0 100 +copysign +23 +23 +-23 +-23 +1 +-1 +pow +1 +0 +1.4142 +-243 +0.012346 +atan2 +1.5708 +0 +1.3258 +-0.54042 +-2.4981 +fmod +0 +0 +0 +-3 +-3 +ldexp +1 +0 +8 +0.75 +-0.1875 +log +1 +1.585 +0.86135 + + + + + diff --git a/micropython-tests/expected/float/math_fun_bool.py.exp b/micropython-tests/expected/float/math_fun_bool.py.exp new file mode 100644 index 0000000..177cb6f --- /dev/null +++ b/micropython-tests/expected/float/math_fun_bool.py.exp @@ -0,0 +1,30 @@ +True +False +False +True +False +False +True +False +False +True +False +False +True +False +False +True +False +False +False +True +False +False +False +True +False +True +False +False +False +True diff --git a/micropython-tests/expected/float/math_fun_int.py.exp b/micropython-tests/expected/float/math_fun_int.py.exp new file mode 100644 index 0000000..a64ece5 --- /dev/null +++ b/micropython-tests/expected/float/math_fun_int.py.exp @@ -0,0 +1,21 @@ +-1 +0 +0 +1 +2 + + +-2 +-1 +0 +0 +1 + + +-1 +0 +0 +0 +1 + + diff --git a/micropython-tests/expected/float/math_fun_intbig.py.exp b/micropython-tests/expected/float/math_fun_intbig.py.exp new file mode 100644 index 0000000..16a2144 --- /dev/null +++ b/micropython-tests/expected/float/math_fun_intbig.py.exp @@ -0,0 +1,6 @@ +-1e+25 +1e+25 +-1e+25 +1e+25 +-1e+25 +1e+25 diff --git a/micropython-tests/expected/float/math_fun_special.py.exp b/micropython-tests/expected/float/math_fun_special.py.exp new file mode 100644 index 0000000..3fa2989 --- /dev/null +++ b/micropython-tests/expected/float/math_fun_special.py.exp @@ -0,0 +1,111 @@ +expm1 +-0.9997 +-0.9179 +-0.6321 +-0.3935 +0 +0.6487 +11.18 +2980 +log2 +math domain error +math domain error +math domain error +math domain error +math domain error +-1 +1.322 +3 +log10 +math domain error +math domain error +math domain error +math domain error +math domain error +-0.301 +0.3979 +0.9031 +cosh +1490 +6.132 +1.543 +1.128 +1 +1.128 +6.132 +1490 +sinh +-1490 +-6.05 +-1.175 +-0.5211 +0 +0.5211 +6.05 +1490 +tanh +-1 +-1 +-1 +-0.9866 +-0.7616 +-0.4621 +0 +0.4621 +0.9866 +1 +1 +1 +acosh +0 +2.292 +0 +asinh +-2.776 +-1.647 +-0.8814 +-0.4812 +0 +0.4812 +1.647 +2.776 +atanh +-2.647 +-0.5493 +0 +0.5493 +2.647 +erf +-1 +-0.9996 +-0.8427 +-0.5205 +0 +0.5205 +0.9996 +1 +erfc +2 +2 +1.843 +1.52 +1 +0.4795 +0.000407 +1.122e-29 +gamma +999.4 +9.514 +1.772 +1 +0.8862 +3.629e+05 +lgamma +6.907 +2.253 +0.5724 +0 +-0.1208 +12.8 +144.6 +359.1 diff --git a/micropython-tests/expected/float/string_format.py.exp b/micropython-tests/expected/float/string_format.py.exp new file mode 100644 index 0000000..762292d --- /dev/null +++ b/micropython-tests/expected/float/string_format.py.exp @@ -0,0 +1,24 @@ +{:10.4} > 123.5< +{:10.4e}>1.2346e+02< +{:10.4e}>-1.2346e+02< +{:10.4f}> 123.4560< +{:10.4f}> -123.4560< +{:10.4g}> 123.5< +{:10.4g}> -123.5< +{:10.4n}> 123.5< +{:e} >1.000000e+02< +{:f} >200.000000< +{:g} >300< +{:10.4E}>1.2346E+02< +{:10.4E}>-1.2346E+02< +{:10.4F}> 123.4560< +{:10.4F}> -123.4560< +{:10.4G}> 123.5< +{:10.4G}> -123.5< +{:06e} >000inf< +{:06e} >-00inf< +{:06e} >000nan< +{:f} >0.000000< +{:f} >1.000000< +0 +ValueError diff --git a/micropython-tests/expected/float/string_format2.py.exp b/micropython-tests/expected/float/string_format2.py.exp new file mode 100644 index 0000000..f5d048f --- /dev/null +++ b/micropython-tests/expected/float/string_format2.py.exp @@ -0,0 +1,6 @@ +{:.1%} >10.0%< +{:.1%} >58.0%< +{:.1%} >99.0%< +{:.1%} >-10.0%< +{:.1%} >-58.0%< +{:.1%} >-99.0%< diff --git a/micropython-tests/expected/float/string_format_fp30.py.exp b/micropython-tests/expected/float/string_format_fp30.py.exp new file mode 100644 index 0000000..3c5484a --- /dev/null +++ b/micropython-tests/expected/float/string_format_fp30.py.exp @@ -0,0 +1,18 @@ +{:10.4} > 123.5< +{:10.4e}>1.2346e+02< +{:10.4e}>-1.2346e+02< +{:10.4g}> 123.5< +{:10.4g}> -123.5< +{:10.4n}> 123.5< +{:e} >1.000000e+02< +{:f} >200.000000< +{:g} >300< +{:10.4E}>1.2346E+02< +{:10.4E}>-1.2346E+02< +{:10.4G}> 123.5< +{:10.4G}> -123.5< +{:06e} >000inf< +{:06e} >-00inf< +{:06e} >000nan< +0 +ValueError diff --git a/micropython-tests/expected/float/string_format_modulo.py.exp b/micropython-tests/expected/float/string_format_modulo.py.exp new file mode 100644 index 0000000..f57c4a3 --- /dev/null +++ b/micropython-tests/expected/float/string_format_modulo.py.exp @@ -0,0 +1,31 @@ +1.0 +1.0 +1 +1 +1 +1.234560e+00 +1.234560E+00 +1.234560 +1.234560 +1.23456 +1.23456 +000inf +-00inf +000nan +123 ++1.230000 -1.230000 + 1.230000 -1.230000 +-1.230000 +0.000000 +0.000000 +0.000000 +0.000000 +0.000000 +0. +0. +0. +0. +0. +1 +1.0e+01 +1.0e+00 diff --git a/micropython-tests/expected/float/string_format_modulo2.py.exp b/micropython-tests/expected/float/string_format_modulo2.py.exp new file mode 100644 index 0000000..e69de29 diff --git a/micropython-tests/expected/float/string_format_modulo2_intbig.py.exp b/micropython-tests/expected/float/string_format_modulo2_intbig.py.exp new file mode 100644 index 0000000..e69de29 diff --git a/micropython-tests/expected/float/true_value.py.exp b/micropython-tests/expected/float/true_value.py.exp new file mode 100644 index 0000000..e6b3866 --- /dev/null +++ b/micropython-tests/expected/float/true_value.py.exp @@ -0,0 +1,2 @@ +float 0 +complex 0 diff --git a/micropython-tests/expected/float/types.py.exp b/micropython-tests/expected/float/types.py.exp new file mode 100644 index 0000000..37a8afc --- /dev/null +++ b/micropython-tests/expected/float/types.py.exp @@ -0,0 +1,7 @@ + + +True +True +True +True +2 diff --git a/micropython-tests/expected/import/builtin_import.py.exp b/micropython-tests/expected/import/builtin_import.py.exp new file mode 100644 index 0000000..2840b29 --- /dev/null +++ b/micropython-tests/expected/import/builtin_import.py.exp @@ -0,0 +1,3 @@ +TypeError +ValueError +ValueError diff --git a/micropython-tests/expected/import/gen_context.py.exp b/micropython-tests/expected/import/gen_context.py.exp new file mode 100644 index 0000000..14b257c --- /dev/null +++ b/micropython-tests/expected/import/gen_context.py.exp @@ -0,0 +1 @@ +GLOBAL diff --git a/micropython-tests/expected/import/gen_context2.py.exp b/micropython-tests/expected/import/gen_context2.py.exp new file mode 100644 index 0000000..e69de29 diff --git a/micropython-tests/expected/import/import1a.py.exp b/micropython-tests/expected/import/import1a.py.exp new file mode 100644 index 0000000..190a180 --- /dev/null +++ b/micropython-tests/expected/import/import1a.py.exp @@ -0,0 +1 @@ +123 diff --git a/micropython-tests/expected/import/import1b.py.exp b/micropython-tests/expected/import/import1b.py.exp new file mode 100644 index 0000000..e69de29 diff --git a/micropython-tests/expected/import/import2a.py.exp b/micropython-tests/expected/import/import2a.py.exp new file mode 100644 index 0000000..3e67fe1 --- /dev/null +++ b/micropython-tests/expected/import/import2a.py.exp @@ -0,0 +1,2 @@ +123 +123 diff --git a/micropython-tests/expected/import/import3a.py.exp b/micropython-tests/expected/import/import3a.py.exp new file mode 100644 index 0000000..190a180 --- /dev/null +++ b/micropython-tests/expected/import/import3a.py.exp @@ -0,0 +1 @@ +123 diff --git a/micropython-tests/expected/import/import_long_dyn.py.exp b/micropython-tests/expected/import/import_long_dyn.py.exp new file mode 100644 index 0000000..e69de29 diff --git a/micropython-tests/expected/import/import_long_dyn2.py.exp b/micropython-tests/expected/import/import_long_dyn2.py.exp new file mode 100644 index 0000000..e69de29 diff --git a/micropython-tests/expected/import/import_star_error.py.exp b/micropython-tests/expected/import/import_star_error.py.exp new file mode 100644 index 0000000..0edb785 --- /dev/null +++ b/micropython-tests/expected/import/import_star_error.py.exp @@ -0,0 +1,2 @@ +function SyntaxError +class SyntaxError diff --git a/micropython-tests/expected/import/rel_import_inv.py.exp b/micropython-tests/expected/import/rel_import_inv.py.exp new file mode 100644 index 0000000..0d1071c --- /dev/null +++ b/micropython-tests/expected/import/rel_import_inv.py.exp @@ -0,0 +1 @@ +Invalid relative import caught diff --git a/micropython-tests/expected/import/try_module.py.exp b/micropython-tests/expected/import/try_module.py.exp new file mode 100644 index 0000000..e1d6323 --- /dev/null +++ b/micropython-tests/expected/import/try_module.py.exp @@ -0,0 +1 @@ +func1 diff --git a/micropython-tests/expected/manifest.json b/micropython-tests/expected/manifest.json new file mode 100644 index 0000000..a330ad8 --- /dev/null +++ b/micropython-tests/expected/manifest.json @@ -0,0 +1,15 @@ +{ + "micropython": "da4b38e7562dfa451917f9d7f344a7f26de8c7bd", + "cpython": "3.8.20", + "dirs": [ + "basics", + "extmod", + "float", + "import", + "micropython", + "misc", + "stress", + "unicode" + ], + "cpythonFailed": [] +} diff --git a/micropython-tests/expected/micropython/heapalloc_iter.py.exp b/micropython-tests/expected/micropython/heapalloc_iter.py.exp new file mode 100644 index 0000000..c1fdd8c --- /dev/null +++ b/micropython-tests/expected/micropython/heapalloc_iter.py.exp @@ -0,0 +1,31 @@ +True False +True False +True False +True False +True False +1 2 3 +True +True +1 +3 +6 +49 +50 +51 +49 +50 +51 +123 +456 +1 +2 +3 +1 +2 +1 +1 +1 +100 +101 +1 +2 diff --git a/micropython-tests/expected/misc/features.py.exp b/micropython-tests/expected/misc/features.py.exp new file mode 100644 index 0000000..d9bbc1f --- /dev/null +++ b/micropython-tests/expected/misc/features.py.exp @@ -0,0 +1,49 @@ +1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 diff --git a/micropython-tests/expected/misc/print_exception.py.exp b/micropython-tests/expected/misc/print_exception.py.exp new file mode 100644 index 0000000..030123b --- /dev/null +++ b/micropython-tests/expected/misc/print_exception.py.exp @@ -0,0 +1,39 @@ +caught +Traceback (most recent call last): + File , line 38, in +Exception: msg + +caught +Traceback (most recent call last): + File , line 53, in + File , line 45, in f + File , line 49, in g +Exception: fail + +finally +caught +Traceback (most recent call last): + File , line 61, in + File , line 45, in f + File , line 49, in g +Exception: fail + +reraise +Traceback (most recent call last): + File , line 71, in + File , line 45, in f + File , line 49, in g +Exception: fail + +caught +Traceback (most recent call last): + File , line 71, in + File , line 45, in f + File , line 49, in g +Exception: fail + +Traceback (most recent call last): + File , line 88, in + File , line 83, in f +AttributeError: 'function' object has no attribute 'X' + diff --git a/micropython-tests/expected/misc/rge_sm.py.exp b/micropython-tests/expected/misc/rge_sm.py.exp new file mode 100644 index 0000000..359585e --- /dev/null +++ b/micropython-tests/expected/misc/rge_sm.py.exp @@ -0,0 +1,80 @@ +0.0000 0.3540 0.6540 1.2780 0.9830 0.1310 +0.5000 0.3550 0.6512 1.2341 0.9538 0.1191 +1.0000 0.3559 0.6485 1.1944 0.9272 0.1083 +1.5000 0.3569 0.6457 1.1584 0.9027 0.0985 +2.0000 0.3579 0.6431 1.1254 0.8803 0.0895 +2.5000 0.3589 0.6404 1.0951 0.8594 0.0813 +3.0000 0.3599 0.6378 1.0671 0.8401 0.0737 +3.5000 0.3609 0.6352 1.0411 0.8220 0.0667 +4.0000 0.3619 0.6327 1.0170 0.8050 0.0602 +4.5000 0.3630 0.6301 0.9944 0.7891 0.0542 +5.0000 0.3640 0.6276 0.9733 0.7741 0.0485 +5.5000 0.3651 0.6252 0.9535 0.7599 0.0433 +6.0000 0.3661 0.6227 0.9349 0.7464 0.0384 +6.5000 0.3672 0.6203 0.9173 0.7336 0.0337 +7.0000 0.3683 0.6180 0.9006 0.7215 0.0294 +7.5000 0.3693 0.6156 0.8849 0.7099 0.0253 +8.0000 0.3704 0.6133 0.8699 0.6988 0.0215 +8.5000 0.3715 0.6110 0.8557 0.6882 0.0179 +9.0000 0.3727 0.6087 0.8421 0.6780 0.0146 +9.5000 0.3738 0.6064 0.8292 0.6683 0.0114 +10.0000 0.3749 0.6042 0.8168 0.6589 0.0084 +10.5000 0.3761 0.6020 0.8050 0.6499 0.0055 +11.0000 0.3772 0.5998 0.7937 0.6412 0.0029 +11.5000 0.3784 0.5977 0.7828 0.6328 0.0003 +12.0000 0.3796 0.5956 0.7724 0.6247 -0.0020 +12.5000 0.3807 0.5935 0.7624 0.6169 -0.0043 +13.0000 0.3819 0.5914 0.7528 0.6093 -0.0064 +13.5000 0.3832 0.5893 0.7435 0.6020 -0.0084 +14.0000 0.3844 0.5873 0.7345 0.5949 -0.0103 +14.5000 0.3856 0.5853 0.7259 0.5880 -0.0120 +15.0000 0.3869 0.5833 0.7176 0.5814 -0.0137 +15.5000 0.3881 0.5813 0.7095 0.5749 -0.0153 +16.0000 0.3894 0.5793 0.7017 0.5686 -0.0167 +16.5000 0.3907 0.5774 0.6942 0.5624 -0.0181 +17.0000 0.3920 0.5755 0.6869 0.5565 -0.0195 +17.5000 0.3933 0.5736 0.6798 0.5507 -0.0207 +18.0000 0.3946 0.5717 0.6730 0.5450 -0.0218 +18.5000 0.3959 0.5698 0.6663 0.5395 -0.0229 +19.0000 0.3973 0.5680 0.6598 0.5341 -0.0239 +19.5000 0.3987 0.5661 0.6536 0.5288 -0.0249 +20.0000 0.4000 0.5643 0.6475 0.5237 -0.0258 +20.5000 0.4014 0.5625 0.6415 0.5186 -0.0266 +21.0000 0.4028 0.5608 0.6358 0.5137 -0.0274 +21.5000 0.4043 0.5590 0.6301 0.5089 -0.0281 +22.0000 0.4057 0.5572 0.6247 0.5042 -0.0288 +22.5000 0.4071 0.5555 0.6193 0.4996 -0.0294 +23.0000 0.4086 0.5538 0.6141 0.4951 -0.0300 +23.5000 0.4101 0.5521 0.6091 0.4907 -0.0305 +24.0000 0.4116 0.5504 0.6041 0.4864 -0.0310 +24.5000 0.4131 0.5488 0.5993 0.4822 -0.0315 +25.0000 0.4146 0.5471 0.5946 0.4780 -0.0319 +25.5000 0.4162 0.5455 0.5900 0.4740 -0.0322 +26.0000 0.4178 0.5439 0.5855 0.4700 -0.0326 +26.5000 0.4194 0.5423 0.5811 0.4660 -0.0329 +27.0000 0.4210 0.5407 0.5768 0.4622 -0.0332 +27.5000 0.4226 0.5391 0.5726 0.4584 -0.0334 +28.0000 0.4242 0.5375 0.5685 0.4547 -0.0336 +28.5000 0.4259 0.5360 0.5644 0.4510 -0.0338 +29.0000 0.4276 0.5344 0.5605 0.4474 -0.0339 +29.5000 0.4293 0.5329 0.5566 0.4439 -0.0341 +30.0000 0.4310 0.5314 0.5528 0.4404 -0.0342 +30.5000 0.4327 0.5299 0.5491 0.4370 -0.0343 +31.0000 0.4345 0.5284 0.5455 0.4337 -0.0343 +31.5000 0.4363 0.5269 0.5419 0.4303 -0.0344 +32.0000 0.4381 0.5255 0.5384 0.4271 -0.0344 +32.5000 0.4399 0.5240 0.5350 0.4239 -0.0344 +33.0000 0.4418 0.5226 0.5317 0.4207 -0.0343 +33.5000 0.4437 0.5212 0.5284 0.4176 -0.0343 +34.0000 0.4456 0.5198 0.5251 0.4145 -0.0342 +34.5000 0.4475 0.5184 0.5219 0.4115 -0.0342 +35.0000 0.4494 0.5170 0.5188 0.4085 -0.0341 +35.5000 0.4514 0.5156 0.5157 0.4056 -0.0340 +36.0000 0.4534 0.5142 0.5127 0.4027 -0.0339 +36.5000 0.4554 0.5129 0.5098 0.3998 -0.0337 +37.0000 0.4575 0.5115 0.5069 0.3970 -0.0336 +37.5000 0.4596 0.5102 0.5040 0.3942 -0.0334 +38.0000 0.4617 0.5089 0.5012 0.3915 -0.0332 +38.5000 0.4638 0.5075 0.4984 0.3887 -0.0330 +39.0000 0.4660 0.5062 0.4957 0.3861 -0.0328 +39.5000 0.4682 0.5049 0.4930 0.3834 -0.0326 diff --git a/micropython-tests/expected/misc/sys_exc_info.py.exp b/micropython-tests/expected/misc/sys_exc_info.py.exp new file mode 100644 index 0000000..d87e357 --- /dev/null +++ b/micropython-tests/expected/misc/sys_exc_info.py.exp @@ -0,0 +1,3 @@ +(, ValueError('value', 123)) +(, ValueError('value', 123)) +(None, None) diff --git a/micropython-tests/expected/misc/sys_settrace_features.py.exp b/micropython-tests/expected/misc/sys_settrace_features.py.exp new file mode 100644 index 0000000..8ea9654 --- /dev/null +++ b/micropython-tests/expected/misc/sys_settrace_features.py.exp @@ -0,0 +1,838 @@ +### trace_handler::main event: call + 0: @__main__:do_tests => sys_settrace_features.py:94 + 1: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @__main__:do_tests => sys_settrace_features.py:96 + 1: @__main__: => sys_settrace_features.py:106 +Who loves the sun? +### trace_handler::main event: line + 0: @__main__:do_tests => sys_settrace_features.py:97 + 1: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: call + 0: @__main__:factorial => sys_settrace_features.py:87 + 1: @__main__:do_tests => sys_settrace_features.py:97 + 2: @__main__: => sys_settrace_features.py:106 +### trace_handler::Alice event: line + 0: @__main__:factorial => sys_settrace_features.py:88 + 1: @__main__:do_tests => sys_settrace_features.py:97 + 2: @__main__: => sys_settrace_features.py:106 +### trace_handler::Alice event: line + 0: @__main__:factorial => sys_settrace_features.py:91 + 1: @__main__:do_tests => sys_settrace_features.py:97 + 2: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: call + 0: @__main__:factorial => sys_settrace_features.py:87 + 1: @__main__:factorial => sys_settrace_features.py:91 + 2: @__main__:do_tests => sys_settrace_features.py:97 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::Bob event: line + 0: @__main__:factorial => sys_settrace_features.py:88 + 1: @__main__:factorial => sys_settrace_features.py:91 + 2: @__main__:do_tests => sys_settrace_features.py:97 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::Bob event: line + 0: @__main__:factorial => sys_settrace_features.py:91 + 1: @__main__:factorial => sys_settrace_features.py:91 + 2: @__main__:do_tests => sys_settrace_features.py:97 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: call + 0: @__main__:factorial => sys_settrace_features.py:87 + 1: @__main__:factorial => sys_settrace_features.py:91 + 2: @__main__:factorial => sys_settrace_features.py:91 + 3: @__main__:do_tests => sys_settrace_features.py:97 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @__main__:factorial => sys_settrace_features.py:88 + 1: @__main__:factorial => sys_settrace_features.py:91 + 2: @__main__:factorial => sys_settrace_features.py:91 + 3: @__main__:do_tests => sys_settrace_features.py:97 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @__main__:factorial => sys_settrace_features.py:91 + 1: @__main__:factorial => sys_settrace_features.py:91 + 2: @__main__:factorial => sys_settrace_features.py:91 + 3: @__main__:do_tests => sys_settrace_features.py:97 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: call + 0: @__main__:factorial => sys_settrace_features.py:87 + 1: @__main__:factorial => sys_settrace_features.py:91 + 2: @__main__:factorial => sys_settrace_features.py:91 + 3: @__main__:factorial => sys_settrace_features.py:91 + 4: @__main__:do_tests => sys_settrace_features.py:97 + 5: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @__main__:factorial => sys_settrace_features.py:88 + 1: @__main__:factorial => sys_settrace_features.py:91 + 2: @__main__:factorial => sys_settrace_features.py:91 + 3: @__main__:factorial => sys_settrace_features.py:91 + 4: @__main__:do_tests => sys_settrace_features.py:97 + 5: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @__main__:factorial => sys_settrace_features.py:89 + 1: @__main__:factorial => sys_settrace_features.py:91 + 2: @__main__:factorial => sys_settrace_features.py:91 + 3: @__main__:factorial => sys_settrace_features.py:91 + 4: @__main__:do_tests => sys_settrace_features.py:97 + 5: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: return + 0: @__main__:factorial => sys_settrace_features.py:89 + 1: @__main__:factorial => sys_settrace_features.py:91 + 2: @__main__:factorial => sys_settrace_features.py:91 + 3: @__main__:factorial => sys_settrace_features.py:91 + 4: @__main__:do_tests => sys_settrace_features.py:97 + 5: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: return + 0: @__main__:factorial => sys_settrace_features.py:91 + 1: @__main__:factorial => sys_settrace_features.py:91 + 2: @__main__:factorial => sys_settrace_features.py:91 + 3: @__main__:do_tests => sys_settrace_features.py:97 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::Bob event: return + 0: @__main__:factorial => sys_settrace_features.py:91 + 1: @__main__:factorial => sys_settrace_features.py:91 + 2: @__main__:do_tests => sys_settrace_features.py:97 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::Alice event: return + 0: @__main__:factorial => sys_settrace_features.py:91 + 1: @__main__:do_tests => sys_settrace_features.py:97 + 2: @__main__: => sys_settrace_features.py:106 +Not every- 6 +### trace_handler::main event: line + 0: @__main__:do_tests => sys_settrace_features.py:99 + 1: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: call + 0: @sys_settrace_subdir.sys_settrace_generic: => sys_settrace_generic.py:1 + 1: @__main__:do_tests => sys_settrace_features.py:99 + 2: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic: => sys_settrace_generic.py:1 + 1: @__main__:do_tests => sys_settrace_features.py:99 + 2: @__main__: => sys_settrace_features.py:106 +Now comes the language constructions tests. +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic: => sys_settrace_generic.py:4 + 1: @__main__:do_tests => sys_settrace_features.py:99 + 2: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic: => sys_settrace_generic.py:12 + 1: @__main__:do_tests => sys_settrace_features.py:99 + 2: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic: => sys_settrace_generic.py:20 + 1: @__main__:do_tests => sys_settrace_features.py:99 + 2: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic: => sys_settrace_generic.py:32 + 1: @__main__:do_tests => sys_settrace_features.py:99 + 2: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic: => sys_settrace_generic.py:37 + 1: @__main__:do_tests => sys_settrace_features.py:99 + 2: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic: => sys_settrace_generic.py:43 + 1: @__main__:do_tests => sys_settrace_features.py:99 + 2: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic: => sys_settrace_generic.py:51 + 1: @__main__:do_tests => sys_settrace_features.py:99 + 2: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: call + 0: @sys_settrace_subdir.sys_settrace_generic:TLClass => sys_settrace_generic.py:51 + 1: @sys_settrace_subdir.sys_settrace_generic: => sys_settrace_generic.py:51 + 2: @__main__:do_tests => sys_settrace_features.py:99 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:TLClass => sys_settrace_generic.py:51 + 1: @sys_settrace_subdir.sys_settrace_generic: => sys_settrace_generic.py:51 + 2: @__main__:do_tests => sys_settrace_features.py:99 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:TLClass => sys_settrace_generic.py:52 + 1: @sys_settrace_subdir.sys_settrace_generic: => sys_settrace_generic.py:51 + 2: @__main__:do_tests => sys_settrace_features.py:99 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:TLClass => sys_settrace_generic.py:55 + 1: @sys_settrace_subdir.sys_settrace_generic: => sys_settrace_generic.py:51 + 2: @__main__:do_tests => sys_settrace_features.py:99 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: return + 0: @sys_settrace_subdir.sys_settrace_generic:TLClass => sys_settrace_generic.py:55 + 1: @sys_settrace_subdir.sys_settrace_generic: => sys_settrace_generic.py:51 + 2: @__main__:do_tests => sys_settrace_features.py:99 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic: => sys_settrace_generic.py:58 + 1: @__main__:do_tests => sys_settrace_features.py:99 + 2: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic: => sys_settrace_generic.py:81 + 1: @__main__:do_tests => sys_settrace_features.py:99 + 2: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic: => sys_settrace_generic.py:92 + 1: @__main__:do_tests => sys_settrace_features.py:99 + 2: @__main__: => sys_settrace_features.py:106 +And it's done! +### trace_handler::main event: return + 0: @sys_settrace_subdir.sys_settrace_generic: => sys_settrace_generic.py:92 + 1: @__main__:do_tests => sys_settrace_features.py:99 + 2: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @__main__:do_tests => sys_settrace_features.py:101 + 1: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: call + 0: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:81 + 1: @__main__:do_tests => sys_settrace_features.py:101 + 2: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:82 + 1: @__main__:do_tests => sys_settrace_features.py:101 + 2: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: call + 0: @sys_settrace_subdir.sys_settrace_generic:test_func => sys_settrace_generic.py:4 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:82 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:test_func => sys_settrace_generic.py:5 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:82 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:test_func => sys_settrace_generic.py:8 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:82 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: call + 0: @sys_settrace_subdir.sys_settrace_generic:test_sub_func => sys_settrace_generic.py:5 + 1: @sys_settrace_subdir.sys_settrace_generic:test_func => sys_settrace_generic.py:8 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:82 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:test_sub_func => sys_settrace_generic.py:6 + 1: @sys_settrace_subdir.sys_settrace_generic:test_func => sys_settrace_generic.py:8 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:82 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +test_function +### trace_handler::main event: return + 0: @sys_settrace_subdir.sys_settrace_generic:test_sub_func => sys_settrace_generic.py:6 + 1: @sys_settrace_subdir.sys_settrace_generic:test_func => sys_settrace_generic.py:8 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:82 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: return + 0: @sys_settrace_subdir.sys_settrace_generic:test_func => sys_settrace_generic.py:8 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:82 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:83 + 1: @__main__:do_tests => sys_settrace_features.py:101 + 2: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: call + 0: @sys_settrace_subdir.sys_settrace_generic:test_closure => sys_settrace_generic.py:12 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:83 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:test_closure => sys_settrace_generic.py:13 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:83 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:test_closure => sys_settrace_generic.py:16 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:83 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: return + 0: @sys_settrace_subdir.sys_settrace_generic:test_closure => sys_settrace_generic.py:16 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:83 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:84 + 1: @__main__:do_tests => sys_settrace_features.py:101 + 2: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: call + 0: @sys_settrace_subdir.sys_settrace_generic:make_closure => sys_settrace_generic.py:13 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:84 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:make_closure => sys_settrace_generic.py:14 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:84 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +test_closure +### trace_handler::main event: return + 0: @sys_settrace_subdir.sys_settrace_generic:make_closure => sys_settrace_generic.py:14 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:84 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:85 + 1: @__main__:do_tests => sys_settrace_features.py:101 + 2: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: call + 0: @sys_settrace_subdir.sys_settrace_generic:test_exception => sys_settrace_generic.py:20 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:85 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:test_exception => sys_settrace_generic.py:21 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:85 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:test_exception => sys_settrace_generic.py:22 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:85 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: exception + 0: @sys_settrace_subdir.sys_settrace_generic:test_exception => sys_settrace_generic.py:22 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:85 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:test_exception => sys_settrace_generic.py:24 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:85 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:test_exception => sys_settrace_generic.py:25 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:85 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:test_exception => sys_settrace_generic.py:28 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:85 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: return + 0: @sys_settrace_subdir.sys_settrace_generic:test_exception => sys_settrace_generic.py:28 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:85 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:86 + 1: @__main__:do_tests => sys_settrace_features.py:101 + 2: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: call + 0: @sys_settrace_subdir.sys_settrace_generic:test_listcomp => sys_settrace_generic.py:32 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:86 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:test_listcomp => sys_settrace_generic.py:33 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:86 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: call + 0: @sys_settrace_subdir.sys_settrace_generic: => sys_settrace_generic.py:33 + 1: @sys_settrace_subdir.sys_settrace_generic:test_listcomp => sys_settrace_generic.py:33 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:86 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic: => sys_settrace_generic.py:33 + 1: @sys_settrace_subdir.sys_settrace_generic:test_listcomp => sys_settrace_generic.py:33 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:86 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic: => sys_settrace_generic.py:33 + 1: @sys_settrace_subdir.sys_settrace_generic:test_listcomp => sys_settrace_generic.py:33 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:86 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic: => sys_settrace_generic.py:33 + 1: @sys_settrace_subdir.sys_settrace_generic:test_listcomp => sys_settrace_generic.py:33 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:86 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic: => sys_settrace_generic.py:33 + 1: @sys_settrace_subdir.sys_settrace_generic:test_listcomp => sys_settrace_generic.py:33 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:86 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: return + 0: @sys_settrace_subdir.sys_settrace_generic: => sys_settrace_generic.py:33 + 1: @sys_settrace_subdir.sys_settrace_generic:test_listcomp => sys_settrace_generic.py:33 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:86 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +test_listcomp [0, 1, 2] +### trace_handler::main event: return + 0: @sys_settrace_subdir.sys_settrace_generic:test_listcomp => sys_settrace_generic.py:33 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:86 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:87 + 1: @__main__:do_tests => sys_settrace_features.py:101 + 2: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: call + 0: @sys_settrace_subdir.sys_settrace_generic:test_lambda => sys_settrace_generic.py:37 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:87 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:test_lambda => sys_settrace_generic.py:38 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:87 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:test_lambda => sys_settrace_generic.py:39 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:87 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: call + 0: @sys_settrace_subdir.sys_settrace_generic: => sys_settrace_generic.py:38 + 1: @sys_settrace_subdir.sys_settrace_generic:test_lambda => sys_settrace_generic.py:39 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:87 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic: => sys_settrace_generic.py:38 + 1: @sys_settrace_subdir.sys_settrace_generic:test_lambda => sys_settrace_generic.py:39 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:87 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: return + 0: @sys_settrace_subdir.sys_settrace_generic: => sys_settrace_generic.py:38 + 1: @sys_settrace_subdir.sys_settrace_generic:test_lambda => sys_settrace_generic.py:39 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:87 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +30 +### trace_handler::main event: return + 0: @sys_settrace_subdir.sys_settrace_generic:test_lambda => sys_settrace_generic.py:39 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:87 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:88 + 1: @__main__:do_tests => sys_settrace_features.py:101 + 2: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: call + 0: @sys_settrace_subdir.sys_settrace_generic:test_class => sys_settrace_generic.py:58 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:88 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:test_class => sys_settrace_generic.py:59 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:88 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: call + 0: @sys_settrace_subdir.sys_settrace_generic:TestClass => sys_settrace_generic.py:59 + 1: @sys_settrace_subdir.sys_settrace_generic:test_class => sys_settrace_generic.py:59 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:88 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:TestClass => sys_settrace_generic.py:59 + 1: @sys_settrace_subdir.sys_settrace_generic:test_class => sys_settrace_generic.py:59 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:88 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:TestClass => sys_settrace_generic.py:60 + 1: @sys_settrace_subdir.sys_settrace_generic:test_class => sys_settrace_generic.py:59 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:88 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:TestClass => sys_settrace_generic.py:62 + 1: @sys_settrace_subdir.sys_settrace_generic:test_class => sys_settrace_generic.py:59 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:88 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:TestClass => sys_settrace_generic.py:66 + 1: @sys_settrace_subdir.sys_settrace_generic:test_class => sys_settrace_generic.py:59 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:88 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:TestClass => sys_settrace_generic.py:69 + 1: @sys_settrace_subdir.sys_settrace_generic:test_class => sys_settrace_generic.py:59 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:88 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:TestClass => sys_settrace_generic.py:72 + 1: @sys_settrace_subdir.sys_settrace_generic:test_class => sys_settrace_generic.py:59 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:88 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: return + 0: @sys_settrace_subdir.sys_settrace_generic:TestClass => sys_settrace_generic.py:72 + 1: @sys_settrace_subdir.sys_settrace_generic:test_class => sys_settrace_generic.py:59 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:88 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:test_class => sys_settrace_generic.py:74 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:88 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:test_class => sys_settrace_generic.py:75 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:88 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: call + 0: @sys_settrace_subdir.sys_settrace_generic:method => sys_settrace_generic.py:62 + 1: @sys_settrace_subdir.sys_settrace_generic:test_class => sys_settrace_generic.py:75 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:88 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:method => sys_settrace_generic.py:63 + 1: @sys_settrace_subdir.sys_settrace_generic:test_class => sys_settrace_generic.py:75 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:88 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +test_class_method +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:method => sys_settrace_generic.py:64 + 1: @sys_settrace_subdir.sys_settrace_generic:test_class => sys_settrace_generic.py:75 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:88 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: return + 0: @sys_settrace_subdir.sys_settrace_generic:method => sys_settrace_generic.py:64 + 1: @sys_settrace_subdir.sys_settrace_generic:test_class => sys_settrace_generic.py:75 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:88 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:test_class => sys_settrace_generic.py:76 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:88 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: call + 0: @sys_settrace_subdir.sys_settrace_generic:prprty_getter => sys_settrace_generic.py:66 + 1: @sys_settrace_subdir.sys_settrace_generic:test_class => sys_settrace_generic.py:76 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:88 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:prprty_getter => sys_settrace_generic.py:67 + 1: @sys_settrace_subdir.sys_settrace_generic:test_class => sys_settrace_generic.py:76 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:88 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: return + 0: @sys_settrace_subdir.sys_settrace_generic:prprty_getter => sys_settrace_generic.py:67 + 1: @sys_settrace_subdir.sys_settrace_generic:test_class => sys_settrace_generic.py:76 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:88 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +test_class_property -8 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:test_class => sys_settrace_generic.py:77 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:88 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: call + 0: @sys_settrace_subdir.sys_settrace_generic:prprty_setter => sys_settrace_generic.py:69 + 1: @sys_settrace_subdir.sys_settrace_generic:test_class => sys_settrace_generic.py:77 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:88 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:prprty_setter => sys_settrace_generic.py:70 + 1: @sys_settrace_subdir.sys_settrace_generic:test_class => sys_settrace_generic.py:77 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:88 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: return + 0: @sys_settrace_subdir.sys_settrace_generic:prprty_setter => sys_settrace_generic.py:70 + 1: @sys_settrace_subdir.sys_settrace_generic:test_class => sys_settrace_generic.py:77 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:88 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:test_class => sys_settrace_generic.py:78 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:88 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: call + 0: @sys_settrace_subdir.sys_settrace_generic:prprty_getter => sys_settrace_generic.py:66 + 1: @sys_settrace_subdir.sys_settrace_generic:test_class => sys_settrace_generic.py:78 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:88 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:prprty_getter => sys_settrace_generic.py:67 + 1: @sys_settrace_subdir.sys_settrace_generic:test_class => sys_settrace_generic.py:78 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:88 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: return + 0: @sys_settrace_subdir.sys_settrace_generic:prprty_getter => sys_settrace_generic.py:67 + 1: @sys_settrace_subdir.sys_settrace_generic:test_class => sys_settrace_generic.py:78 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:88 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +test_class_property 12 +### trace_handler::main event: return + 0: @sys_settrace_subdir.sys_settrace_generic:test_class => sys_settrace_generic.py:78 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:88 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 1: @__main__:do_tests => sys_settrace_features.py:101 + 2: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: call + 0: @sys_settrace_subdir.sys_settrace_generic:test_import => sys_settrace_generic.py:43 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:test_import => sys_settrace_generic.py:44 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: call + 0: @sys_settrace_subdir.sys_settrace_importme: => sys_settrace_importme.py:1 + 1: @sys_settrace_subdir.sys_settrace_generic:test_import => sys_settrace_generic.py:44 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_importme: => sys_settrace_importme.py:1 + 1: @sys_settrace_subdir.sys_settrace_generic:test_import => sys_settrace_generic.py:44 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +Yep, I got imported. +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_importme: => sys_settrace_importme.py:3 + 1: @sys_settrace_subdir.sys_settrace_generic:test_import => sys_settrace_generic.py:44 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_importme: => sys_settrace_importme.py:4 + 1: @sys_settrace_subdir.sys_settrace_generic:test_import => sys_settrace_generic.py:44 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: exception + 0: @sys_settrace_subdir.sys_settrace_importme: => sys_settrace_importme.py:4 + 1: @sys_settrace_subdir.sys_settrace_generic:test_import => sys_settrace_generic.py:44 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_importme: => sys_settrace_importme.py:5 + 1: @sys_settrace_subdir.sys_settrace_generic:test_import => sys_settrace_generic.py:44 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_importme: => sys_settrace_importme.py:6 + 1: @sys_settrace_subdir.sys_settrace_generic:test_import => sys_settrace_generic.py:44 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +const not defined +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_importme: => sys_settrace_importme.py:8 + 1: @sys_settrace_subdir.sys_settrace_generic:test_import => sys_settrace_generic.py:44 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_importme: => sys_settrace_importme.py:10 + 1: @sys_settrace_subdir.sys_settrace_generic:test_import => sys_settrace_generic.py:44 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_importme: => sys_settrace_importme.py:11 + 1: @sys_settrace_subdir.sys_settrace_generic:test_import => sys_settrace_generic.py:44 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: call + 0: @sys_settrace_subdir.sys_settrace_importme: => sys_settrace_importme.py:8 + 1: @sys_settrace_subdir.sys_settrace_importme: => sys_settrace_importme.py:11 + 2: @sys_settrace_subdir.sys_settrace_generic:test_import => sys_settrace_generic.py:44 + 3: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 4: @__main__:do_tests => sys_settrace_features.py:101 + 5: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_importme: => sys_settrace_importme.py:8 + 1: @sys_settrace_subdir.sys_settrace_importme: => sys_settrace_importme.py:11 + 2: @sys_settrace_subdir.sys_settrace_generic:test_import => sys_settrace_generic.py:44 + 3: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 4: @__main__:do_tests => sys_settrace_features.py:101 + 5: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: return + 0: @sys_settrace_subdir.sys_settrace_importme: => sys_settrace_importme.py:8 + 1: @sys_settrace_subdir.sys_settrace_importme: => sys_settrace_importme.py:11 + 2: @sys_settrace_subdir.sys_settrace_generic:test_import => sys_settrace_generic.py:44 + 3: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 4: @__main__:do_tests => sys_settrace_features.py:101 + 5: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_importme: => sys_settrace_importme.py:12 + 1: @sys_settrace_subdir.sys_settrace_generic:test_import => sys_settrace_generic.py:44 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: call + 0: @sys_settrace_subdir.sys_settrace_importme: => sys_settrace_importme.py:8 + 1: @sys_settrace_subdir.sys_settrace_importme: => sys_settrace_importme.py:12 + 2: @sys_settrace_subdir.sys_settrace_generic:test_import => sys_settrace_generic.py:44 + 3: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 4: @__main__:do_tests => sys_settrace_features.py:101 + 5: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_importme: => sys_settrace_importme.py:8 + 1: @sys_settrace_subdir.sys_settrace_importme: => sys_settrace_importme.py:12 + 2: @sys_settrace_subdir.sys_settrace_generic:test_import => sys_settrace_generic.py:44 + 3: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 4: @__main__:do_tests => sys_settrace_features.py:101 + 5: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: return + 0: @sys_settrace_subdir.sys_settrace_importme: => sys_settrace_importme.py:8 + 1: @sys_settrace_subdir.sys_settrace_importme: => sys_settrace_importme.py:12 + 2: @sys_settrace_subdir.sys_settrace_generic:test_import => sys_settrace_generic.py:44 + 3: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 4: @__main__:do_tests => sys_settrace_features.py:101 + 5: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_importme: => sys_settrace_importme.py:13 + 1: @sys_settrace_subdir.sys_settrace_generic:test_import => sys_settrace_generic.py:44 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: call + 0: @sys_settrace_subdir.sys_settrace_importme: => sys_settrace_importme.py:8 + 1: @sys_settrace_subdir.sys_settrace_importme: => sys_settrace_importme.py:13 + 2: @sys_settrace_subdir.sys_settrace_generic:test_import => sys_settrace_generic.py:44 + 3: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 4: @__main__:do_tests => sys_settrace_features.py:101 + 5: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_importme: => sys_settrace_importme.py:8 + 1: @sys_settrace_subdir.sys_settrace_importme: => sys_settrace_importme.py:13 + 2: @sys_settrace_subdir.sys_settrace_generic:test_import => sys_settrace_generic.py:44 + 3: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 4: @__main__:do_tests => sys_settrace_features.py:101 + 5: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: return + 0: @sys_settrace_subdir.sys_settrace_importme: => sys_settrace_importme.py:8 + 1: @sys_settrace_subdir.sys_settrace_importme: => sys_settrace_importme.py:13 + 2: @sys_settrace_subdir.sys_settrace_generic:test_import => sys_settrace_generic.py:44 + 3: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 4: @__main__:do_tests => sys_settrace_features.py:101 + 5: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_importme: => sys_settrace_importme.py:16 + 1: @sys_settrace_subdir.sys_settrace_generic:test_import => sys_settrace_generic.py:44 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_importme: => sys_settrace_importme.py:20 + 1: @sys_settrace_subdir.sys_settrace_generic:test_import => sys_settrace_generic.py:44 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_importme: => sys_settrace_importme.py:24 + 1: @sys_settrace_subdir.sys_settrace_generic:test_import => sys_settrace_generic.py:44 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_importme: => sys_settrace_importme.py:28 + 1: @sys_settrace_subdir.sys_settrace_generic:test_import => sys_settrace_generic.py:44 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +Yep, got here +### trace_handler::main event: return + 0: @sys_settrace_subdir.sys_settrace_importme: => sys_settrace_importme.py:28 + 1: @sys_settrace_subdir.sys_settrace_generic:test_import => sys_settrace_generic.py:44 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:test_import => sys_settrace_generic.py:46 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: call + 0: @sys_settrace_subdir.sys_settrace_importme:dummy => sys_settrace_importme.py:16 + 1: @sys_settrace_subdir.sys_settrace_generic:test_import => sys_settrace_generic.py:46 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_importme:dummy => sys_settrace_importme.py:17 + 1: @sys_settrace_subdir.sys_settrace_generic:test_import => sys_settrace_generic.py:46 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: return + 0: @sys_settrace_subdir.sys_settrace_importme:dummy => sys_settrace_importme.py:17 + 1: @sys_settrace_subdir.sys_settrace_generic:test_import => sys_settrace_generic.py:46 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_generic:test_import => sys_settrace_generic.py:47 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: call + 0: @sys_settrace_subdir.sys_settrace_importme:saysomething => sys_settrace_importme.py:20 + 1: @sys_settrace_subdir.sys_settrace_generic:test_import => sys_settrace_generic.py:47 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @sys_settrace_subdir.sys_settrace_importme:saysomething => sys_settrace_importme.py:21 + 1: @sys_settrace_subdir.sys_settrace_generic:test_import => sys_settrace_generic.py:47 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +There, I said it. +### trace_handler::main event: return + 0: @sys_settrace_subdir.sys_settrace_importme:saysomething => sys_settrace_importme.py:21 + 1: @sys_settrace_subdir.sys_settrace_generic:test_import => sys_settrace_generic.py:47 + 2: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 3: @__main__:do_tests => sys_settrace_features.py:101 + 4: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: return + 0: @sys_settrace_subdir.sys_settrace_generic:test_import => sys_settrace_generic.py:47 + 1: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 2: @__main__:do_tests => sys_settrace_features.py:101 + 3: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: return + 0: @sys_settrace_subdir.sys_settrace_generic:run_tests => sys_settrace_generic.py:89 + 1: @__main__:do_tests => sys_settrace_features.py:101 + 2: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: line + 0: @__main__:do_tests => sys_settrace_features.py:102 + 1: @__main__: => sys_settrace_features.py:106 +### trace_handler::main event: return + 0: @__main__:do_tests => sys_settrace_features.py:102 + 1: @__main__: => sys_settrace_features.py:106 + +------------------ script exited ------------------ +Total traces executed: 155 diff --git a/micropython-tests/expected/stress/dict_copy.py.exp b/micropython-tests/expected/stress/dict_copy.py.exp new file mode 100644 index 0000000..0b7d9cf --- /dev/null +++ b/micropython-tests/expected/stress/dict_copy.py.exp @@ -0,0 +1,1001 @@ +0 0 +1 2 +2 4 +3 6 +4 8 +5 10 +6 12 +7 14 +8 16 +9 18 +10 20 +11 22 +12 24 +13 26 +14 28 +15 30 +16 32 +17 34 +18 36 +19 38 +20 40 +21 42 +22 44 +23 46 +24 48 +25 50 +26 52 +27 54 +28 56 +29 58 +30 60 +31 62 +32 64 +33 66 +34 68 +35 70 +36 72 +37 74 +38 76 +39 78 +40 80 +41 82 +42 84 +43 86 +44 88 +45 90 +46 92 +47 94 +48 96 +49 98 +50 100 +51 102 +52 104 +53 106 +54 108 +55 110 +56 112 +57 114 +58 116 +59 118 +60 120 +61 122 +62 124 +63 126 +64 128 +65 130 +66 132 +67 134 +68 136 +69 138 +70 140 +71 142 +72 144 +73 146 +74 148 +75 150 +76 152 +77 154 +78 156 +79 158 +80 160 +81 162 +82 164 +83 166 +84 168 +85 170 +86 172 +87 174 +88 176 +89 178 +90 180 +91 182 +92 184 +93 186 +94 188 +95 190 +96 192 +97 194 +98 196 +99 198 +100 200 +101 202 +102 204 +103 206 +104 208 +105 210 +106 212 +107 214 +108 216 +109 218 +110 220 +111 222 +112 224 +113 226 +114 228 +115 230 +116 232 +117 234 +118 236 +119 238 +120 240 +121 242 +122 244 +123 246 +124 248 +125 250 +126 252 +127 254 +128 256 +129 258 +130 260 +131 262 +132 264 +133 266 +134 268 +135 270 +136 272 +137 274 +138 276 +139 278 +140 280 +141 282 +142 284 +143 286 +144 288 +145 290 +146 292 +147 294 +148 296 +149 298 +150 300 +151 302 +152 304 +153 306 +154 308 +155 310 +156 312 +157 314 +158 316 +159 318 +160 320 +161 322 +162 324 +163 326 +164 328 +165 330 +166 332 +167 334 +168 336 +169 338 +170 340 +171 342 +172 344 +173 346 +174 348 +175 350 +176 352 +177 354 +178 356 +179 358 +180 360 +181 362 +182 364 +183 366 +184 368 +185 370 +186 372 +187 374 +188 376 +189 378 +190 380 +191 382 +192 384 +193 386 +194 388 +195 390 +196 392 +197 394 +198 396 +199 398 +200 400 +201 402 +202 404 +203 406 +204 408 +205 410 +206 412 +207 414 +208 416 +209 418 +210 420 +211 422 +212 424 +213 426 +214 428 +215 430 +216 432 +217 434 +218 436 +219 438 +220 440 +221 442 +222 444 +223 446 +224 448 +225 450 +226 452 +227 454 +228 456 +229 458 +230 460 +231 462 +232 464 +233 466 +234 468 +235 470 +236 472 +237 474 +238 476 +239 478 +240 480 +241 482 +242 484 +243 486 +244 488 +245 490 +246 492 +247 494 +248 496 +249 498 +250 500 +251 502 +252 504 +253 506 +254 508 +255 510 +256 512 +257 514 +258 516 +259 518 +260 520 +261 522 +262 524 +263 526 +264 528 +265 530 +266 532 +267 534 +268 536 +269 538 +270 540 +271 542 +272 544 +273 546 +274 548 +275 550 +276 552 +277 554 +278 556 +279 558 +280 560 +281 562 +282 564 +283 566 +284 568 +285 570 +286 572 +287 574 +288 576 +289 578 +290 580 +291 582 +292 584 +293 586 +294 588 +295 590 +296 592 +297 594 +298 596 +299 598 +300 600 +301 602 +302 604 +303 606 +304 608 +305 610 +306 612 +307 614 +308 616 +309 618 +310 620 +311 622 +312 624 +313 626 +314 628 +315 630 +316 632 +317 634 +318 636 +319 638 +320 640 +321 642 +322 644 +323 646 +324 648 +325 650 +326 652 +327 654 +328 656 +329 658 +330 660 +331 662 +332 664 +333 666 +334 668 +335 670 +336 672 +337 674 +338 676 +339 678 +340 680 +341 682 +342 684 +343 686 +344 688 +345 690 +346 692 +347 694 +348 696 +349 698 +350 700 +351 702 +352 704 +353 706 +354 708 +355 710 +356 712 +357 714 +358 716 +359 718 +360 720 +361 722 +362 724 +363 726 +364 728 +365 730 +366 732 +367 734 +368 736 +369 738 +370 740 +371 742 +372 744 +373 746 +374 748 +375 750 +376 752 +377 754 +378 756 +379 758 +380 760 +381 762 +382 764 +383 766 +384 768 +385 770 +386 772 +387 774 +388 776 +389 778 +390 780 +391 782 +392 784 +393 786 +394 788 +395 790 +396 792 +397 794 +398 796 +399 798 +400 800 +401 802 +402 804 +403 806 +404 808 +405 810 +406 812 +407 814 +408 816 +409 818 +410 820 +411 822 +412 824 +413 826 +414 828 +415 830 +416 832 +417 834 +418 836 +419 838 +420 840 +421 842 +422 844 +423 846 +424 848 +425 850 +426 852 +427 854 +428 856 +429 858 +430 860 +431 862 +432 864 +433 866 +434 868 +435 870 +436 872 +437 874 +438 876 +439 878 +440 880 +441 882 +442 884 +443 886 +444 888 +445 890 +446 892 +447 894 +448 896 +449 898 +450 900 +451 902 +452 904 +453 906 +454 908 +455 910 +456 912 +457 914 +458 916 +459 918 +460 920 +461 922 +462 924 +463 926 +464 928 +465 930 +466 932 +467 934 +468 936 +469 938 +470 940 +471 942 +472 944 +473 946 +474 948 +475 950 +476 952 +477 954 +478 956 +479 958 +480 960 +481 962 +482 964 +483 966 +484 968 +485 970 +486 972 +487 974 +488 976 +489 978 +490 980 +491 982 +492 984 +493 986 +494 988 +495 990 +496 992 +497 994 +498 996 +499 998 +500 1000 +501 1002 +502 1004 +503 1006 +504 1008 +505 1010 +506 1012 +507 1014 +508 1016 +509 1018 +510 1020 +511 1022 +512 1024 +513 1026 +514 1028 +515 1030 +516 1032 +517 1034 +518 1036 +519 1038 +520 1040 +521 1042 +522 1044 +523 1046 +524 1048 +525 1050 +526 1052 +527 1054 +528 1056 +529 1058 +530 1060 +531 1062 +532 1064 +533 1066 +534 1068 +535 1070 +536 1072 +537 1074 +538 1076 +539 1078 +540 1080 +541 1082 +542 1084 +543 1086 +544 1088 +545 1090 +546 1092 +547 1094 +548 1096 +549 1098 +550 1100 +551 1102 +552 1104 +553 1106 +554 1108 +555 1110 +556 1112 +557 1114 +558 1116 +559 1118 +560 1120 +561 1122 +562 1124 +563 1126 +564 1128 +565 1130 +566 1132 +567 1134 +568 1136 +569 1138 +570 1140 +571 1142 +572 1144 +573 1146 +574 1148 +575 1150 +576 1152 +577 1154 +578 1156 +579 1158 +580 1160 +581 1162 +582 1164 +583 1166 +584 1168 +585 1170 +586 1172 +587 1174 +588 1176 +589 1178 +590 1180 +591 1182 +592 1184 +593 1186 +594 1188 +595 1190 +596 1192 +597 1194 +598 1196 +599 1198 +600 1200 +601 1202 +602 1204 +603 1206 +604 1208 +605 1210 +606 1212 +607 1214 +608 1216 +609 1218 +610 1220 +611 1222 +612 1224 +613 1226 +614 1228 +615 1230 +616 1232 +617 1234 +618 1236 +619 1238 +620 1240 +621 1242 +622 1244 +623 1246 +624 1248 +625 1250 +626 1252 +627 1254 +628 1256 +629 1258 +630 1260 +631 1262 +632 1264 +633 1266 +634 1268 +635 1270 +636 1272 +637 1274 +638 1276 +639 1278 +640 1280 +641 1282 +642 1284 +643 1286 +644 1288 +645 1290 +646 1292 +647 1294 +648 1296 +649 1298 +650 1300 +651 1302 +652 1304 +653 1306 +654 1308 +655 1310 +656 1312 +657 1314 +658 1316 +659 1318 +660 1320 +661 1322 +662 1324 +663 1326 +664 1328 +665 1330 +666 1332 +667 1334 +668 1336 +669 1338 +670 1340 +671 1342 +672 1344 +673 1346 +674 1348 +675 1350 +676 1352 +677 1354 +678 1356 +679 1358 +680 1360 +681 1362 +682 1364 +683 1366 +684 1368 +685 1370 +686 1372 +687 1374 +688 1376 +689 1378 +690 1380 +691 1382 +692 1384 +693 1386 +694 1388 +695 1390 +696 1392 +697 1394 +698 1396 +699 1398 +700 1400 +701 1402 +702 1404 +703 1406 +704 1408 +705 1410 +706 1412 +707 1414 +708 1416 +709 1418 +710 1420 +711 1422 +712 1424 +713 1426 +714 1428 +715 1430 +716 1432 +717 1434 +718 1436 +719 1438 +720 1440 +721 1442 +722 1444 +723 1446 +724 1448 +725 1450 +726 1452 +727 1454 +728 1456 +729 1458 +730 1460 +731 1462 +732 1464 +733 1466 +734 1468 +735 1470 +736 1472 +737 1474 +738 1476 +739 1478 +740 1480 +741 1482 +742 1484 +743 1486 +744 1488 +745 1490 +746 1492 +747 1494 +748 1496 +749 1498 +750 1500 +751 1502 +752 1504 +753 1506 +754 1508 +755 1510 +756 1512 +757 1514 +758 1516 +759 1518 +760 1520 +761 1522 +762 1524 +763 1526 +764 1528 +765 1530 +766 1532 +767 1534 +768 1536 +769 1538 +770 1540 +771 1542 +772 1544 +773 1546 +774 1548 +775 1550 +776 1552 +777 1554 +778 1556 +779 1558 +780 1560 +781 1562 +782 1564 +783 1566 +784 1568 +785 1570 +786 1572 +787 1574 +788 1576 +789 1578 +790 1580 +791 1582 +792 1584 +793 1586 +794 1588 +795 1590 +796 1592 +797 1594 +798 1596 +799 1598 +800 1600 +801 1602 +802 1604 +803 1606 +804 1608 +805 1610 +806 1612 +807 1614 +808 1616 +809 1618 +810 1620 +811 1622 +812 1624 +813 1626 +814 1628 +815 1630 +816 1632 +817 1634 +818 1636 +819 1638 +820 1640 +821 1642 +822 1644 +823 1646 +824 1648 +825 1650 +826 1652 +827 1654 +828 1656 +829 1658 +830 1660 +831 1662 +832 1664 +833 1666 +834 1668 +835 1670 +836 1672 +837 1674 +838 1676 +839 1678 +840 1680 +841 1682 +842 1684 +843 1686 +844 1688 +845 1690 +846 1692 +847 1694 +848 1696 +849 1698 +850 1700 +851 1702 +852 1704 +853 1706 +854 1708 +855 1710 +856 1712 +857 1714 +858 1716 +859 1718 +860 1720 +861 1722 +862 1724 +863 1726 +864 1728 +865 1730 +866 1732 +867 1734 +868 1736 +869 1738 +870 1740 +871 1742 +872 1744 +873 1746 +874 1748 +875 1750 +876 1752 +877 1754 +878 1756 +879 1758 +880 1760 +881 1762 +882 1764 +883 1766 +884 1768 +885 1770 +886 1772 +887 1774 +888 1776 +889 1778 +890 1780 +891 1782 +892 1784 +893 1786 +894 1788 +895 1790 +896 1792 +897 1794 +898 1796 +899 1798 +900 1800 +901 1802 +902 1804 +903 1806 +904 1808 +905 1810 +906 1812 +907 1814 +908 1816 +909 1818 +910 1820 +911 1822 +912 1824 +913 1826 +914 1828 +915 1830 +916 1832 +917 1834 +918 1836 +919 1838 +920 1840 +921 1842 +922 1844 +923 1846 +924 1848 +925 1850 +926 1852 +927 1854 +928 1856 +929 1858 +930 1860 +931 1862 +932 1864 +933 1866 +934 1868 +935 1870 +936 1872 +937 1874 +938 1876 +939 1878 +940 1880 +941 1882 +942 1884 +943 1886 +944 1888 +945 1890 +946 1892 +947 1894 +948 1896 +949 1898 +950 1900 +951 1902 +952 1904 +953 1906 +954 1908 +955 1910 +956 1912 +957 1914 +958 1916 +959 1918 +960 1920 +961 1922 +962 1924 +963 1926 +964 1928 +965 1930 +966 1932 +967 1934 +968 1936 +969 1938 +970 1940 +971 1942 +972 1944 +973 1946 +974 1948 +975 1950 +976 1952 +977 1954 +978 1956 +979 1958 +980 1960 +981 1962 +982 1964 +983 1966 +984 1968 +985 1970 +986 1972 +987 1974 +988 1976 +989 1978 +990 1980 +991 1982 +992 1984 +993 1986 +994 1988 +995 1990 +996 1992 +997 1994 +998 1996 +999 1998 +1000 diff --git a/micropython-tests/expected/stress/dict_create.py.exp b/micropython-tests/expected/stress/dict_create.py.exp new file mode 100644 index 0000000..1b79f38 --- /dev/null +++ b/micropython-tests/expected/stress/dict_create.py.exp @@ -0,0 +1 @@ +500 diff --git a/micropython-tests/expected/stress/dict_create_max.py.exp b/micropython-tests/expected/stress/dict_create_max.py.exp new file mode 100644 index 0000000..573541a --- /dev/null +++ b/micropython-tests/expected/stress/dict_create_max.py.exp @@ -0,0 +1 @@ +0 diff --git a/micropython-tests/expected/stress/gc_trace.py.exp b/micropython-tests/expected/stress/gc_trace.py.exp new file mode 100644 index 0000000..6fcf4cc --- /dev/null +++ b/micropython-tests/expected/stress/gc_trace.py.exp @@ -0,0 +1,2 @@ +[[0], [1], [2], [3], [4], [5], [6], [7], [8], [9], [10], [11], [12], [13], [14], [15], [16], [17], [18], [19], [20], [21], [22], [23], [24], [25], [26], [27], [28], [29], [30], [31], [32], [33], [34], [35], [36], [37], [38], [39], [40], [41], [42], [43], [44], [45], [46], [47], [48], [49], [50], [51], [52], [53], [54], [55], [56], [57], [58], [59], [60], [61], [62], [63], [64], [65], [66], [67], [68], [69], [70], [71], [72], [73], [74], [75], [76], [77], [78], [79], [80], [81], [82], [83], [84], [85], [86], [87], [88], [89], [90], [91], [92], [93], [94], [95], [96], [97], [98], [99], [100], [101], [102], [103], [104], [105], [106], [107], [108], [109], [110], [111], [112], [113], [114], [115], [116], [117], [118], [119], [120], [121], [122], [123], [124], [125], [126], [127], [128], [129], [130], [131], [132], [133], [134], [135], [136], [137], [138], [139], [140], [141], [142], [143], [144], [145], [146], [147], [148], [149], [150], [151], [152], [153], [154], [155], [156], [157], [158], [159], [160], [161], [162], [163], [164], [165], [166], [167], [168], [169], [170], [171], [172], [173], [174], [175], [176], [177], [178], [179], [180], [181], [182], [183], [184], [185], [186], [187], [188], [189], [190], [191], [192], [193], [194], [195], [196], [197], [198], [199]] +[[[[[(0, 0, 0, 0)], [(1, 0, 0, 0)], [(2, 0, 0, 0)]], [[(0, 1, 0, 0)], [(1, 1, 0, 0)], [(2, 1, 0, 0)]], [[(0, 2, 0, 0)], [(1, 2, 0, 0)], [(2, 2, 0, 0)]]], [[[(0, 0, 1, 0)], [(1, 0, 1, 0)], [(2, 0, 1, 0)]], [[(0, 1, 1, 0)], [(1, 1, 1, 0)], [(2, 1, 1, 0)]], [[(0, 2, 1, 0)], [(1, 2, 1, 0)], [(2, 2, 1, 0)]]], [[[(0, 0, 2, 0)], [(1, 0, 2, 0)], [(2, 0, 2, 0)]], [[(0, 1, 2, 0)], [(1, 1, 2, 0)], [(2, 1, 2, 0)]], [[(0, 2, 2, 0)], [(1, 2, 2, 0)], [(2, 2, 2, 0)]]]], [[[[(0, 0, 0, 1)], [(1, 0, 0, 1)], [(2, 0, 0, 1)]], [[(0, 1, 0, 1)], [(1, 1, 0, 1)], [(2, 1, 0, 1)]], [[(0, 2, 0, 1)], [(1, 2, 0, 1)], [(2, 2, 0, 1)]]], [[[(0, 0, 1, 1)], [(1, 0, 1, 1)], [(2, 0, 1, 1)]], [[(0, 1, 1, 1)], [(1, 1, 1, 1)], [(2, 1, 1, 1)]], [[(0, 2, 1, 1)], [(1, 2, 1, 1)], [(2, 2, 1, 1)]]], [[[(0, 0, 2, 1)], [(1, 0, 2, 1)], [(2, 0, 2, 1)]], [[(0, 1, 2, 1)], [(1, 1, 2, 1)], [(2, 1, 2, 1)]], [[(0, 2, 2, 1)], [(1, 2, 2, 1)], [(2, 2, 2, 1)]]]], [[[[(0, 0, 0, 2)], [(1, 0, 0, 2)], [(2, 0, 0, 2)]], [[(0, 1, 0, 2)], [(1, 1, 0, 2)], [(2, 1, 0, 2)]], [[(0, 2, 0, 2)], [(1, 2, 0, 2)], [(2, 2, 0, 2)]]], [[[(0, 0, 1, 2)], [(1, 0, 1, 2)], [(2, 0, 1, 2)]], [[(0, 1, 1, 2)], [(1, 1, 1, 2)], [(2, 1, 1, 2)]], [[(0, 2, 1, 2)], [(1, 2, 1, 2)], [(2, 2, 1, 2)]]], [[[(0, 0, 2, 2)], [(1, 0, 2, 2)], [(2, 0, 2, 2)]], [[(0, 1, 2, 2)], [(1, 1, 2, 2)], [(2, 1, 2, 2)]], [[(0, 2, 2, 2)], [(1, 2, 2, 2)], [(2, 2, 2, 2)]]]]] diff --git a/micropython-tests/expected/stress/list_sort.py.exp b/micropython-tests/expected/stress/list_sort.py.exp new file mode 100644 index 0000000..3072097 --- /dev/null +++ b/micropython-tests/expected/stress/list_sort.py.exp @@ -0,0 +1,2 @@ +0 1999 +1999 0 diff --git a/micropython-tests/expected/stress/recursion.py.exp b/micropython-tests/expected/stress/recursion.py.exp new file mode 100644 index 0000000..8a2b9bf --- /dev/null +++ b/micropython-tests/expected/stress/recursion.py.exp @@ -0,0 +1 @@ +RuntimeError diff --git a/micropython-tests/expected/stress/recursive_gen.py.exp b/micropython-tests/expected/stress/recursive_gen.py.exp new file mode 100644 index 0000000..ef25bed --- /dev/null +++ b/micropython-tests/expected/stress/recursive_gen.py.exp @@ -0,0 +1,2 @@ +RuntimeError +RuntimeError diff --git a/micropython-tests/expected/unicode/unicode.py.exp b/micropython-tests/expected/unicode/unicode.py.exp new file mode 100644 index 0000000..7bdf001 --- /dev/null +++ b/micropython-tests/expected/unicode/unicode.py.exp @@ -0,0 +1,165 @@ +s[0]: a 61 +s[1]: s 73 +s[2]: d 64 +s[3]: f 66 +s[4]: © A9 +s[5]: q 71 +s[6]: w 77 +s[7]: e 65 +s[8]: r 72 +s[-7]: a 61 +s[:-7]: 0 chars, '' +s[-7:-7]: 0 chars, '' +s[-7:-6]: 1 chars, 'a' +s[-7:-5]: 2 chars, 'a©' +s[-7:-4]: 3 chars, 'a©ÿ' +s[-7:-3]: 4 chars, 'a©ÿģ' +s[-7:-2]: 5 chars, 'a©ÿģࠀ' +s[-7:-1]: 6 chars, 'a©ÿģࠀ○' +s[-7:0]: 0 chars, '' +s[-7:1]: 1 chars, 'a' +s[-7:2]: 2 chars, 'a©' +s[-7:3]: 3 chars, 'a©ÿ' +s[-7:4]: 4 chars, 'a©ÿģ' +s[-7:5]: 5 chars, 'a©ÿģࠀ' +s[-7:6]: 6 chars, 'a©ÿģࠀ○' +s[-7:]: 7 chars, 'a©ÿģࠀ○👌' +s[-6]: © A9 +s[:-6]: 1 chars, 'a' +s[-6:-6]: 0 chars, '' +s[-6:-5]: 1 chars, '©' +s[-6:-4]: 2 chars, '©ÿ' +s[-6:-3]: 3 chars, '©ÿģ' +s[-6:-2]: 4 chars, '©ÿģࠀ' +s[-6:-1]: 5 chars, '©ÿģࠀ○' +s[-6:0]: 0 chars, '' +s[-6:1]: 0 chars, '' +s[-6:2]: 1 chars, '©' +s[-6:3]: 2 chars, '©ÿ' +s[-6:4]: 3 chars, '©ÿģ' +s[-6:5]: 4 chars, '©ÿģࠀ' +s[-6:6]: 5 chars, '©ÿģࠀ○' +s[-6:]: 6 chars, '©ÿģࠀ○👌' +s[-5]: ÿ FF +s[:-5]: 2 chars, 'a©' +s[-5:-5]: 0 chars, '' +s[-5:-4]: 1 chars, 'ÿ' +s[-5:-3]: 2 chars, 'ÿģ' +s[-5:-2]: 3 chars, 'ÿģࠀ' +s[-5:-1]: 4 chars, 'ÿģࠀ○' +s[-5:0]: 0 chars, '' +s[-5:1]: 0 chars, '' +s[-5:2]: 0 chars, '' +s[-5:3]: 1 chars, 'ÿ' +s[-5:4]: 2 chars, 'ÿģ' +s[-5:5]: 3 chars, 'ÿģࠀ' +s[-5:6]: 4 chars, 'ÿģࠀ○' +s[-5:]: 5 chars, 'ÿģࠀ○👌' +s[-4]: ģ 123 +s[:-4]: 3 chars, 'a©ÿ' +s[-4:-4]: 0 chars, '' +s[-4:-3]: 1 chars, 'ģ' +s[-4:-2]: 2 chars, 'ģࠀ' +s[-4:-1]: 3 chars, 'ģࠀ○' +s[-4:0]: 0 chars, '' +s[-4:1]: 0 chars, '' +s[-4:2]: 0 chars, '' +s[-4:3]: 0 chars, '' +s[-4:4]: 1 chars, 'ģ' +s[-4:5]: 2 chars, 'ģࠀ' +s[-4:6]: 3 chars, 'ģࠀ○' +s[-4:]: 4 chars, 'ģࠀ○👌' +s[-3]: ࠀ 800 +s[:-3]: 4 chars, 'a©ÿģ' +s[-3:-3]: 0 chars, '' +s[-3:-2]: 1 chars, 'ࠀ' +s[-3:-1]: 2 chars, 'ࠀ○' +s[-3:0]: 0 chars, '' +s[-3:1]: 0 chars, '' +s[-3:2]: 0 chars, '' +s[-3:3]: 0 chars, '' +s[-3:4]: 0 chars, '' +s[-3:5]: 1 chars, 'ࠀ' +s[-3:6]: 2 chars, 'ࠀ○' +s[-3:]: 3 chars, 'ࠀ○👌' +s[-2]: ○ FFEE +s[:-2]: 5 chars, 'a©ÿģࠀ' +s[-2:-2]: 0 chars, '' +s[-2:-1]: 1 chars, '○' +s[-2:0]: 0 chars, '' +s[-2:1]: 0 chars, '' +s[-2:2]: 0 chars, '' +s[-2:3]: 0 chars, '' +s[-2:4]: 0 chars, '' +s[-2:5]: 0 chars, '' +s[-2:6]: 1 chars, '○' +s[-2:]: 2 chars, '○👌' +s[-1]: 👌 1F44C +s[:-1]: 6 chars, 'a©ÿģࠀ○' +s[-1:-1]: 0 chars, '' +s[-1:0]: 0 chars, '' +s[-1:1]: 0 chars, '' +s[-1:2]: 0 chars, '' +s[-1:3]: 0 chars, '' +s[-1:4]: 0 chars, '' +s[-1:5]: 0 chars, '' +s[-1:6]: 0 chars, '' +s[-1:]: 1 chars, '👌' +s[0]: a 61 +s[:0]: 0 chars, '' +s[0:0]: 0 chars, '' +s[0:1]: 1 chars, 'a' +s[0:2]: 2 chars, 'a©' +s[0:3]: 3 chars, 'a©ÿ' +s[0:4]: 4 chars, 'a©ÿģ' +s[0:5]: 5 chars, 'a©ÿģࠀ' +s[0:6]: 6 chars, 'a©ÿģࠀ○' +s[0:]: 7 chars, 'a©ÿģࠀ○👌' +s[1]: © A9 +s[:1]: 1 chars, 'a' +s[1:1]: 0 chars, '' +s[1:2]: 1 chars, '©' +s[1:3]: 2 chars, '©ÿ' +s[1:4]: 3 chars, '©ÿģ' +s[1:5]: 4 chars, '©ÿģࠀ' +s[1:6]: 5 chars, '©ÿģࠀ○' +s[1:]: 6 chars, '©ÿģࠀ○👌' +s[2]: ÿ FF +s[:2]: 2 chars, 'a©' +s[2:2]: 0 chars, '' +s[2:3]: 1 chars, 'ÿ' +s[2:4]: 2 chars, 'ÿģ' +s[2:5]: 3 chars, 'ÿģࠀ' +s[2:6]: 4 chars, 'ÿģࠀ○' +s[2:]: 5 chars, 'ÿģࠀ○👌' +s[3]: ģ 123 +s[:3]: 3 chars, 'a©ÿ' +s[3:3]: 0 chars, '' +s[3:4]: 1 chars, 'ģ' +s[3:5]: 2 chars, 'ģࠀ' +s[3:6]: 3 chars, 'ģࠀ○' +s[3:]: 4 chars, 'ģࠀ○👌' +s[4]: ࠀ 800 +s[:4]: 4 chars, 'a©ÿģ' +s[4:4]: 0 chars, '' +s[4:5]: 1 chars, 'ࠀ' +s[4:6]: 2 chars, 'ࠀ○' +s[4:]: 3 chars, 'ࠀ○👌' +s[5]: ○ FFEE +s[:5]: 5 chars, 'a©ÿģࠀ' +s[5:5]: 0 chars, '' +s[5:6]: 1 chars, '○' +s[5:]: 2 chars, '○👌' +s[6]: 👌 1F44C +s[:6]: 6 chars, 'a©ÿģࠀ○' +s[6:6]: 0 chars, '' +s[6:]: 1 chars, '👌' +b'a\xc2\xa9\xc3\xbf\xc4\xa3\xe0\xa0\x80\xef\xbf\xae\xf0\x9f\x91\x8c' True +'a\uffff' +'a\U0001ffff' +SyntaxError +ValueError +UnicodeError +UnicodeError +UnicodeError +UnicodeError diff --git a/micropython-tests/expected/unicode/unicode_chr.py.exp b/micropython-tests/expected/unicode/unicode_chr.py.exp new file mode 100644 index 0000000..2f7da04 --- /dev/null +++ b/micropython-tests/expected/unicode/unicode_chr.py.exp @@ -0,0 +1,3 @@ +α +ࠀ +𐀀 diff --git a/micropython-tests/expected/unicode/unicode_id.py.exp b/micropython-tests/expected/unicode/unicode_id.py.exp new file mode 100644 index 0000000..977c434 --- /dev/null +++ b/micropython-tests/expected/unicode/unicode_id.py.exp @@ -0,0 +1,3 @@ +1 2 3 4 +1 2 3 +123 diff --git a/micropython-tests/expected/unicode/unicode_index.py.exp b/micropython-tests/expected/unicode/unicode_index.py.exp new file mode 100644 index 0000000..d5a3796 --- /dev/null +++ b/micropython-tests/expected/unicode/unicode_index.py.exp @@ -0,0 +1,6 @@ +5 +0 +5 +0 +5 +0 diff --git a/micropython-tests/expected/unicode/unicode_iter.py.exp b/micropython-tests/expected/unicode/unicode_iter.py.exp new file mode 100644 index 0000000..faf575d --- /dev/null +++ b/micropython-tests/expected/unicode/unicode_iter.py.exp @@ -0,0 +1,11 @@ +H +e +l +l +o +П +р +и +в +е +т diff --git a/micropython-tests/expected/unicode/unicode_ord.py.exp b/micropython-tests/expected/unicode/unicode_ord.py.exp new file mode 100644 index 0000000..2ebd3a0 --- /dev/null +++ b/micropython-tests/expected/unicode/unicode_ord.py.exp @@ -0,0 +1 @@ +945 diff --git a/micropython-tests/expected/unicode/unicode_pos.py.exp b/micropython-tests/expected/unicode/unicode_pos.py.exp new file mode 100644 index 0000000..889c4dc --- /dev/null +++ b/micropython-tests/expected/unicode/unicode_pos.py.exp @@ -0,0 +1,4 @@ +True +True +4 +-1 diff --git a/micropython-tests/expected/unicode/unicode_slice.py.exp b/micropython-tests/expected/unicode/unicode_slice.py.exp new file mode 100644 index 0000000..7974a0b --- /dev/null +++ b/micropython-tests/expected/unicode/unicode_slice.py.exp @@ -0,0 +1,8 @@ +Привет +ивет +Приве +иве +иве +ивет +вет +ивет diff --git a/micropython-tests/expected/unicode/unicode_str_format.py.exp b/micropython-tests/expected/unicode/unicode_str_format.py.exp new file mode 100644 index 0000000..4739740 --- /dev/null +++ b/micropython-tests/expected/unicode/unicode_str_format.py.exp @@ -0,0 +1,2 @@ +α +1 diff --git a/micropython-tests/expected/unicode/unicode_str_modulo.py.exp b/micropython-tests/expected/unicode/unicode_str_modulo.py.exp new file mode 100644 index 0000000..b2b8a88 --- /dev/null +++ b/micropython-tests/expected/unicode/unicode_str_modulo.py.exp @@ -0,0 +1 @@ +α diff --git a/micropython-tests/expected/unicode/unicode_subscr.py.exp b/micropython-tests/expected/unicode/unicode_subscr.py.exp new file mode 100644 index 0000000..1a44546 --- /dev/null +++ b/micropython-tests/expected/unicode/unicode_subscr.py.exp @@ -0,0 +1,13 @@ +¢ ¢ +п п +р р +IndexError + +р +п п +¢ ¢ +IndexError + +¢п +пр +р diff --git a/micropython-tests/micropython.spec.ts b/micropython-tests/micropython.spec.ts new file mode 100644 index 0000000..ec69e03 --- /dev/null +++ b/micropython-tests/micropython.spec.ts @@ -0,0 +1,189 @@ +/** + * Runs MicroPython's own tests in the simulator. + * + * As with MicroPython's tests/run-tests.py, a test passes if its output + * matches its .exp file or, when it has none, what CPython prints. The CPython + * output is checked in under expected/ so that runs don't depend on the local + * Python. See update-expected.py. + */ +import * as fs from "node:fs"; +import * as path from "node:path"; +import { test as base } from "@playwright/test"; +import { createSimulator, expect, Simulator } from "../e2e/fixtures"; + +const micropythonDir = path.join( + __dirname, + "../lib/micropython-microbit-v2/lib/micropython", +); +const testsDir = path.join(micropythonDir, "tests"); +const expectedDir = path.join(__dirname, "expected"); +// Tests that don't apply to this port, with the reason. Tests that print SKIP +// because a feature is missing skip themselves and aren't listed. +const skip: Record = JSON.parse( + fs.readFileSync(path.join(__dirname, "skip.json"), "utf-8"), +); +const manifest: { micropython: string; dirs: string[] } = JSON.parse( + fs.readFileSync(path.join(expectedDir, "manifest.json"), "utf-8"), +); + +// Loading the simulator takes longer than most of these tests, so each worker +// keeps one and flashes it for each test. A test that fails closes it so that +// the next starts clean. +interface SharedSimulator { + get(): Promise; + close(): Promise; +} + +const test = base.extend({ + shared: [ + async ({ browser }, use, workerInfo) => { + let simulator: Simulator | undefined; + const shared: SharedSimulator = { + get: async () => { + if (!simulator) { + const page = await browser.newPage({ + baseURL: workerInfo.project.use.baseURL, + }); + simulator = await createSimulator(page, []); + } + return simulator; + }, + close: async () => { + await simulator?.page.close(); + simulator = undefined; + }, + }; + await use(shared); + await shared.close(); + }, + { scope: "worker" }, + ], +}); + +const importsSiblings = new Set(["import"]); + +// What the REPL prints once main.py has finished. +const banner = /MicroPython [^\n]* on [^\n]*\nType "help\(\)"[^\n]*\n>>> $/; + +const expectedOutput = (name: string): string | undefined => { + const candidates = [ + path.join(testsDir, `${name}.exp`), + path.join(expectedDir, `${name}.exp`), + ]; + const file = candidates.find((f) => fs.existsSync(f)); + return file === undefined ? undefined : fs.readFileSync(file, "utf-8"); +}; + +// Read from the files as CI runs the tests in a container where git rejects +// the checkout's ownership. +const submoduleCommit = (dir: string): string => { + const gitFile = fs.readFileSync(path.join(dir, ".git"), "utf-8"); + const gitDir = path.resolve(dir, gitFile.replace(/^gitdir: /, "").trim()); + const head = fs.readFileSync(path.join(gitDir, "HEAD"), "utf-8").trim(); + return head.startsWith("ref: ") + ? fs.readFileSync(path.join(gitDir, head.slice(5)), "utf-8").trim() + : head; +}; + +test("expected output is for the MicroPython version in use", () => { + expect( + manifest.micropython, + "MicroPython has changed: run micropython-tests/update-expected.py", + ).toBe(submoduleCommit(micropythonDir)); +}); + +test("skipped tests exist", () => { + const missing = Object.keys(skip).filter( + (name) => !fs.existsSync(path.join(testsDir, name)), + ); + expect(missing).toEqual([]); +}); + +for (const dir of manifest.dirs) { + const files = fs + .readdirSync(path.join(testsDir, dir)) + .filter((f) => f.endsWith(".py")) + .sort(); + test.describe(dir, () => { + for (const file of files) { + const name = `${dir}/${file}`; + test(file, async ({ shared }) => { + test.skip(name in skip, skip[name]); + const expected = expectedOutput(name); + expect( + expected, + "No expected output: run micropython-tests/update-expected.py", + ).toBeDefined(); + + const simulator = await shared.get(); + let actual: string; + try { + actual = await run(simulator, dir, file, files); + } catch (e) { + await shared.close(); + throw e; + } + // The convention for tests that need a feature the port lacks. + test.skip(actual === "SKIP\n", "Skipped itself"); + expect(actual).toBe(expected); + }); + } + }); +} + +/** Runs a test to completion and returns what it printed. */ +async function run( + simulator: Simulator, + dir: string, + file: string, + files: string[], +): Promise { + // Tests in these directories import the files alongside them. + const siblings = importsSiblings.has(dir) + ? Object.fromEntries( + files + .filter((f) => f !== file) + .map((f) => [ + f, + fs.readFileSync(path.join(testsDir, dir, f), "utf-8"), + ]), + ) + : {}; + await simulator.run( + fs.readFileSync(path.join(testsDir, dir, file), "utf-8"), + siblings, + ); + let serial = ""; + let changedAt = Date.now(); + await expect + .poll( + async () => { + const previous = serial; + serial = await simulator.serial(); + if (serial !== previous) { + changedAt = Date.now(); + } + // An uncaught exception scrolls on the display before the REPL + // starts. Skip that once the output has gone quiet, so as not to + // interrupt a test that prints a traceback and carries on. + if ( + Date.now() - changedAt > 500 && + serial.includes("Traceback") && + !banner.test(serial) + ) { + await simulator.skipErrorScroll(); + changedAt = Date.now(); + } + return ( + banner.test(serial) || (await simulator.unexpectedErrors()).length > 0 + ); + }, + { timeout: 30_000, intervals: [20, 50, 100, 250] }, + ) + .toBe(true); + expect( + await simulator.unexpectedErrors(), + "Unexpected errors from the simulator", + ).toEqual([]); + return serial.replace(banner, ""); +} diff --git a/micropython-tests/skip.json b/micropython-tests/skip.json new file mode 100644 index 0000000..8b871b3 --- /dev/null +++ b/micropython-tests/skip.json @@ -0,0 +1,76 @@ +{ + "basics/builtin_help.py": "help() prints micro:bit specific text", + "basics/bytes_compare3.py": "Expects a warning, and warnings are not enabled", + "basics/class_reverse_op.py": "Reverse operator methods are not enabled", + "basics/exception_chain.py": "Expects a warning, and warnings are not enabled", + "basics/io_buffered_writer.py": "No io module", + "basics/io_bytesio_cow.py": "No io module", + "basics/io_bytesio_ext.py": "No io module", + "basics/io_bytesio_ext2.py": "No io module", + "basics/io_iobase.py": "No io module", + "basics/io_stringio1.py": "No io module", + "basics/io_stringio_with.py": "No io module", + "basics/io_write_ext.py": "No io module", + "basics/string_fstring.py": "f-strings are not enabled", + "basics/string_fstring_debug.py": "f-strings are not enabled", + "extmod/machine1.py": "The simulator doesn't support writing memory via machine.mem", + "float/complex_reverse_op.py": "Reverse operator methods are not enabled", + "float/float2int_doubleprec_intbig.py": "Needs double precision floats", + "float/float_divmod.py": "Needs double precision floats", + "float/float_parse_doubleprec.py": "Needs double precision floats", + "import/import_file.py": "Modules have no __file__", + "import/import_pkg1.py": "The filesystem has no directories, so no packages", + "import/import_pkg2.py": "The filesystem has no directories, so no packages", + "import/import_pkg3.py": "The filesystem has no directories, so no packages", + "import/import_pkg4.py": "The filesystem has no directories, so no packages", + "import/import_pkg5.py": "The filesystem has no directories, so no packages", + "import/import_pkg6.py": "The filesystem has no directories, so no packages", + "import/import_pkg7.py": "The filesystem has no directories, so no packages", + "import/import_pkg8.py": "The filesystem has no directories, so no packages", + "micropython/heapalloc_exc_compressed_emg_exc.py": "No emergency exception buffer", + "micropython/heapalloc_fail_bytearray.py": "Assigning to a bytearray slice is not enabled", + "micropython/meminfo.py": "mem_info() prints a different format", + "micropython/native_closure.py": "The native code emitters are not enabled", + "micropython/native_const.py": "The native code emitters are not enabled", + "micropython/native_const_intbig.py": "The native code emitters are not enabled", + "micropython/native_for.py": "The native code emitters are not enabled", + "micropython/native_gen.py": "The native code emitters are not enabled", + "micropython/native_misc.py": "The native code emitters are not enabled", + "micropython/native_try.py": "The native code emitters are not enabled", + "micropython/native_try_deep.py": "The native code emitters are not enabled", + "micropython/native_with.py": "The native code emitters are not enabled", + "micropython/viper_addr.py": "The native code emitters are not enabled", + "micropython/viper_args.py": "The native code emitters are not enabled", + "micropython/viper_binop_arith.py": "The native code emitters are not enabled", + "micropython/viper_binop_arith_uint.py": "The native code emitters are not enabled", + "micropython/viper_binop_bitwise_uint.py": "The native code emitters are not enabled", + "micropython/viper_binop_comp.py": "The native code emitters are not enabled", + "micropython/viper_binop_comp_imm.py": "The native code emitters are not enabled", + "micropython/viper_binop_comp_uint.py": "The native code emitters are not enabled", + "micropython/viper_binop_divmod.py": "The native code emitters are not enabled", + "micropython/viper_binop_multi_comp.py": "The native code emitters are not enabled", + "micropython/viper_cond.py": "The native code emitters are not enabled", + "micropython/viper_const.py": "The native code emitters are not enabled", + "micropython/viper_const_intbig.py": "The native code emitters are not enabled", + "micropython/viper_error.py": "The native code emitters are not enabled", + "micropython/viper_globals.py": "The native code emitters are not enabled", + "micropython/viper_import.py": "The native code emitters are not enabled", + "micropython/viper_misc.py": "The native code emitters are not enabled", + "micropython/viper_misc2.py": "The native code emitters are not enabled", + "micropython/viper_misc_intbig.py": "The native code emitters are not enabled", + "micropython/viper_ptr16_load.py": "The native code emitters are not enabled", + "micropython/viper_ptr16_store.py": "The native code emitters are not enabled", + "micropython/viper_ptr32_load.py": "The native code emitters are not enabled", + "micropython/viper_ptr32_store.py": "The native code emitters are not enabled", + "micropython/viper_ptr8_load.py": "The native code emitters are not enabled", + "micropython/viper_ptr8_store.py": "The native code emitters are not enabled", + "micropython/viper_subscr.py": "The native code emitters are not enabled", + "micropython/viper_subscr_multi.py": "The native code emitters are not enabled", + "micropython/viper_try.py": "The native code emitters are not enabled", + "micropython/viper_types.py": "The native code emitters are not enabled", + "micropython/viper_with.py": "The native code emitters are not enabled", + "misc/non_compliant.py": "Assigning to a bytearray slice is not enabled", + "stress/recursive_iternext.py": "Runs out of heap before reaching the recursion limit", + "unicode/file1.py": "Reads data files from MicroPython's tests directory", + "unicode/file2.py": "Reads data files from MicroPython's tests directory" +} diff --git a/micropython-tests/update-expected.py b/micropython-tests/update-expected.py new file mode 100644 index 0000000..ee142b0 --- /dev/null +++ b/micropython-tests/update-expected.py @@ -0,0 +1,94 @@ +#!/usr/bin/env python3 +""" +Regenerates the expected output for MicroPython's tests by running them under +CPython, as MicroPython's own tests/run-tests.py does. + +Run this after updating MicroPython, with the CPython version below: + + python3.8 micropython-tests/update-expected.py + +Tests that ship their own .exp file use that and get no generated output. +""" + +import json +import os +import shutil +import subprocess +import sys + +# The CPython that the MicroPython version in use was tested against, so +# its tests don't trip over later changes to CPython's output. MicroPython +# v1.18's CI used Ubuntu 20.04's python3 and pinned this version on macOS. +# Review it when updating MicroPython. +REFERENCE_PYTHON = (3, 8) + +# Directories under MicroPython's tests/ to run. +TEST_DIRS = [ + "basics", + "extmod", + "float", + "import", + "micropython", + "misc", + "stress", + "unicode", +] + +HERE = os.path.dirname(os.path.abspath(__file__)) +MICROPYTHON = os.path.join( + HERE, "..", "lib", "micropython-microbit-v2", "lib", "micropython" +) +TESTS = os.path.join(MICROPYTHON, "tests") +EXPECTED = os.path.join(HERE, "expected") + + +def main(): + if sys.version_info[:2] != REFERENCE_PYTHON: + sys.exit( + "Run this with Python %d.%d, not %d.%d." + % (REFERENCE_PYTHON + sys.version_info[:2]) + ) + + with open(os.path.join(HERE, "skip.json")) as f: + skip = json.load(f) + + shutil.rmtree(EXPECTED, ignore_errors=True) + failed = [] + for test_dir in TEST_DIRS: + os.makedirs(os.path.join(EXPECTED, test_dir)) + for name in sorted(os.listdir(os.path.join(TESTS, test_dir))): + if not name.endswith(".py"): + continue + test = test_dir + "/" + name + if test in skip or os.path.exists(os.path.join(TESTS, test + ".exp")): + continue + # Flags and working directory as in run-tests.py. + result = subprocess.run( + [sys.executable, "-BS", test], + cwd=TESTS, + stdout=subprocess.PIPE, + stderr=subprocess.DEVNULL, + ) + if result.returncode != 0: + failed.append(test) + continue + with open(os.path.join(EXPECTED, test + ".exp"), "wb") as f: + f.write(result.stdout) + + commit = subprocess.check_output( + ["git", "rev-parse", "HEAD"], cwd=MICROPYTHON, universal_newlines=True + ).strip() + manifest = { + "micropython": commit, + "cpython": "%d.%d.%d" % sys.version_info[:3], + "dirs": TEST_DIRS, + # These need an entry in skip.json. + "cpythonFailed": failed, + } + with open(os.path.join(EXPECTED, "manifest.json"), "w") as f: + json.dump(manifest, f, indent=2) + f.write("\n") + + +if __name__ == "__main__": + main() diff --git a/playwright.config.ts b/playwright.config.ts index e90b32e..7920922 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -8,7 +8,7 @@ export default defineConfig({ fullyParallel: true, forbidOnly: !!process.env.CI, retries: process.env.CI ? 2 : 0, - workers: process.env.CI ? 1 : undefined, + workers: process.env.CI ? 2 : undefined, reporter: process.env.CI ? [["list"], ["html", { open: "never" }]] : "html", use: { baseURL: `http://localhost:${port}`, @@ -19,6 +19,11 @@ export default defineConfig({ name: "chromium", use: { ...devices["Desktop Chrome"] }, }, + { + name: "micropython-tests", + testDir: "./micropython-tests", + use: { ...devices["Desktop Chrome"] }, + }, { // Emscripten assertions catch errors that the release firmware hides, // e.g. calling an export with the wrong number of arguments. diff --git a/src/Makefile b/src/Makefile index be875de..544d23c 100644 --- a/src/Makefile +++ b/src/Makefile @@ -72,7 +72,7 @@ JSFLAGS += -O3 # MicroPython's C recursion (printing nested containers, the compiler) uses # this stack; Emscripten's 64 KB default is too small. MICROPY_STACK_CHECK -# keeps us within it, see main.c. +# stops it well short of this size, see main.c. JSFLAGS += -s STACK_SIZE=1MB JSFLAGS += -s ASYNCIFY diff --git a/src/board/audio/index.ts b/src/board/audio/index.ts index b59003c..a0a7541 100644 --- a/src/board/audio/index.ts +++ b/src/board/audio/index.ts @@ -63,6 +63,7 @@ export class Audio { this.currentSoundExpressionCallback(); } }, + soundExpressionLookaheadSeconds, ); } @@ -79,9 +80,12 @@ export class Audio { } playSoundExpression(expr: string) { + // Replaces anything still playing. + this.soundExpression!.stop(); const soundEffects = parseSoundEffects(replaceBuiltinSound(expr)); const onDone = () => { - this.stopSoundExpression(); + // The synth has generated everything. What's scheduled plays out. + this.currentSoundExpressionCallback = undefined; }; const synth = new SoundEmojiSynthesizer(0, onDone); synth.play(soundEffects); @@ -109,10 +113,14 @@ export class Audio { stopSoundExpression(): void { this.currentSoundExpressionCallback = undefined; + this.soundExpression?.stop(); } isSoundExpressionActive(): boolean { - return !!this.currentSoundExpressionCallback; + return ( + !!this.currentSoundExpressionCallback || + !!this.soundExpression?.isPlaying() + ); } mute() { @@ -170,14 +178,27 @@ export class Audio { } } +/** + * The sound expression synth is asked for this much audio ahead of what is + * playing. Each buffer is under 12 ms and the next is requested from the main + * thread, so without a margin any brief stall there is heard as a click. + */ +const soundExpressionLookaheadSeconds = 0.1; + class BufferedAudio { nextStartTime: number = -1; private sampleRate: number = -1; + private scheduled = new Set(); + /** + * @param lookaheadSeconds Keep at least this much audio scheduled by calling + * back for more straight away. Only for callbacks that write synchronously. + */ constructor( private context: AudioContext, private destination: AudioNode, private callback: () => void, + private lookaheadSeconds: number = 0, ) {} init(sampleRate: number) { @@ -194,22 +215,43 @@ class BufferedAudio { // Use createBufferSource instead of new AudioBufferSourceNode to support Safari 14.0. const source = this.context.createBufferSource(); source.buffer = buffer; - source.onended = () => this.callback(); + source.onended = () => { + this.scheduled.delete(source); + this.callback(); + }; source.connect(this.destination); const currentTime = this.context.currentTime; const first = this.nextStartTime < currentTime; const startTime = first ? currentTime : this.nextStartTime; this.nextStartTime = startTime + buffer.length / buffer.sampleRate; + source.start(startTime); + this.scheduled.add(source); // For audio frames, we're frequently out of data. Speech is smooth. - if (first) { - // We're just getting started so buffer another frame. + if (first || this.nextStartTime - currentTime < this.lookaheadSeconds) { + // We're just getting started, or short of the lookahead, so buffer + // another frame. this.callback(); } - source.start(startTime); + } + + /** Whether anything written is still to finish playing. */ + isPlaying(): boolean { + return this.nextStartTime > this.context.currentTime; + } + + /** Silences what has been written but not yet played. */ + stop() { + for (const source of this.scheduled) { + source.onended = null; + source.stop(); + } + this.scheduled.clear(); + this.nextStartTime = -1; } dispose() { // Prevent calls into WASM when the buffer nodes finish. this.callback = () => {}; + this.stop(); } } diff --git a/src/jshal.js b/src/jshal.js index 19a9836..2bc2e94 100644 --- a/src/jshal.js +++ b/src/jshal.js @@ -52,7 +52,8 @@ mergeInto(LibraryManager.library, { /** @type {number} */ ptr, /** @type {number} */ len, ) { - Module.board.writeSerialOutput(UTF8ToString(ptr, len)); + // Python strings can contain NUL, which would otherwise end the output. + Module.board.writeSerialOutput(UTF8ToString(ptr, len, true)); }, mp_js_hal_stdout_tx_busy: function () { diff --git a/src/main.c b/src/main.c index 5fbfae0..6a39311 100644 --- a/src/main.c +++ b/src/main.c @@ -67,11 +67,14 @@ void mp_js_main(int heap_size) { microbit_system_init(); microbit_display_init(); - // Check against Emscripten's stack in linear memory (STACK_SIZE). This - // is where MP_STACK_CHECK measures, not the browser's native stack. - // The margin covers unchecked C frames below the last check. + // MP_STACK_CHECK measures Emscripten's stack in linear memory + // (STACK_SIZE), but C recursion also consumes the browser's own call + // stack, which is not ours to size and runs out first: Chrome throws + // a RangeError with about 128 KB of the linear stack used by + // recursive generators in the debug firmware. Limit well below that + // so deep recursion is a RuntimeError, as on the device. mp_stack_set_top((void *)emscripten_stack_get_base()); - mp_stack_set_limit(emscripten_stack_get_base() - emscripten_stack_get_end() - 8 * 1024); + mp_stack_set_limit(64 * 1024); #if MICROPY_ENABLE_GC char *heap = (char *)malloc(heap_size * sizeof(char)); @@ -167,11 +170,17 @@ void microbit_pyexec_file(const char *filename) { // Execute the code. mp_hal_set_interrupt_char(CHAR_CTRL_C); // allow ctrl-C to interrupt us mp_call_function_0(module_fun); + MP_STATE_THREAD(gc_lock_depth) = 0; mp_hal_set_interrupt_char(-1); // disable interrupt mp_handle_pending(true); // handle any pending exceptions (and any callbacks) nlr_pop(); } else { // Handle uncaught exception. + + // The program may have ended with the heap locked via + // micropython.heap_lock(), which would leave reporting the exception + // and then the REPL unable to allocate. + MP_STATE_THREAD(gc_lock_depth) = 0; mp_hal_set_interrupt_char(-1); // disable interrupt mp_handle_pending(false); // clear any pending exceptions (and run any callbacks)