diff --git a/compiler/scripts/e2e_snapshot_windows.json b/compiler/scripts/e2e_snapshot_windows.json index 9e613e73..c9063b9d 100644 --- a/compiler/scripts/e2e_snapshot_windows.json +++ b/compiler/scripts/e2e_snapshot_windows.json @@ -3,6 +3,7 @@ "test_data/bad_inputs/arrput_map.yaka": "arrput_map.yaka:5:16 at \")\" --> arrput() does not work with maps\n\nreturn := 4294967295", "test_data/bad_inputs/bad_input_sort_with_wrong_args.yaka": "bad_input_sort_with_wrong_args.yaka:32:21 at \")\" --> Comparison must match with Function[In[Const[AnyPtrToConst],Const[AnyPtrToConst]],Out[int]]\n\nreturn := 4294967295", "test_data/bug_fixes/comment_break_indent.yaka": "3\n\nreturn := 0", + "test_data/bug_fixes/struct_str_return.yaka": "hello world\nhello world\nhello world\n\nreturn := 0", "test_data/byol/lisp.yaka": "error: FileNotFound\n\nreturn := 4294967295", "test_data/compiler_tests/all_integers.yaka": "\n\nreturn := 0", "test_data/compiler_tests/array_test.yaka": "Printing [a]\n1\n2\n3\n4\n5\n6\n7\nPrinting [b]\nHello\nWorld\nHaha\n\nreturn := 0", @@ -29,13 +30,13 @@ "test_data/compiler_tests/global_constants.yaka": "1\n\nreturn := 0", "test_data/compiler_tests/iif_test.yaka": "Hello World\n[Hello]\n\nreturn := 0", "test_data/compiler_tests/io_module_test/io.yaka": "Critical !! main() function must be present\n\nreturn := 4294967295", - "test_data/compiler_tests/io_module_test/main.yaka": "----->>> this is my code <<<<------\ntest.c is empty or not foundruntime_features := none!\n\nreturn := 0", + "test_data/compiler_tests/io_module_test/main.yaka": "----->>> this is my code <<<<------\ntest.c is empty or not found\n\nreturn := 0", "test_data/compiler_tests/io_module_test/strings.yaka": "Critical !! main() function must be present\n\nreturn := 4294967295", "test_data/compiler_tests/loops_and_logic.yaka": "2\nHello\n4\n3\nHello\n7\n4\nHello\n10\n5\nHello\n13\n6\nHello\n16\n7\nHello\n19\n8\nHello\n22\n9\nHello\n25\n11\nHello\n29\n12\nHello\n32\n13\nHello\n35\n14\nHello\n38\n15\nHello\n41\n16\nHello\n44\n17\nHello\n47\n18\nHello\n50\n19\nHello\n53\n21\nHello\n\nreturn := 0", "test_data/compiler_tests/native_constants.yaka": "3\n\nreturn := 0", "test_data/compiler_tests/native_func_sort.yaka": "before x1:\nlen=8\n1 2 3 3 2 1 5 4\nafter x1:\nlen=8\n1 1 2 2 3 3 4 5\nbefore x2:\nlen=8\n1 2 3 3 2 1 5 4\nafter x2:\nlen=8\n5 4 3 3 2 2 1 1\nbefore x3:\nlen=8\n1 2 3 3 2 1 5 4\nafter x3:\nlen=8\n1 1 2 2 3 3 4 5\nbefore x4:\nlen=8\n1 2 3 3 2 1 5 4\nafter x4:\nlen=8\n1 1 2 2 3 3 4 5\n\nreturn := 0", "test_data/compiler_tests/native_function_type_tests.yaka": "hello world\n\nreturn := 0", - "test_data/compiler_tests/nativefunc.yaka": "----->>> this is my code <<<<------\ntest.c is empty or not foundruntime_features := none!\n\nreturn := 0", + "test_data/compiler_tests/nativefunc.yaka": "----->>> this is my code <<<<------\ntest.c is empty or not found\n\nreturn := 0", "test_data/compiler_tests/none_comparison.yaka": "True\nFalse\nFalse\nFalse\n\nreturn := 0", "test_data/compiler_tests/normal_hash_map.yaka": "1 = 42\nlength of this map is = 2\n1 is located at = 0\n30 is located at = -1\nbye!\n\nreturn := 0", "test_data/compiler_tests/on_stack_test.yaka": "7\n\nreturn := 0", @@ -82,15 +83,16 @@ "test_data/macro_tests/i_import_stuff.yaka": "1\n3\n5\n\nreturn := 0", "test_data/macro_tests/imported_dsl_macro_use.yaka": "2\n4\n6\n\nreturn := 0", "test_data/macro_tests/m_args.yaka": "3\n5\n\nreturn := 0", - "test_data/sample1.yaka": "sample1.yaka:12:1 at \"print\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample1.yaka:13:1 at \"print\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample1.yaka:14:1 at \"print\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample1.yaka:15:1 at \"print\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample1.yaka:16:1 at \"print\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample1.yaka:17:1 at \"print\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample1.yaka:18:1 at \"print\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample1.yaka:19:1 at \"print\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample1.yaka:20:1 at \"print\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample1.yaka:21:1 at \"a\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample1.yaka:22:1 at \"b\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample1.yaka:23:1 at \"print\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample1.yaka:24:1 at \"print\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample1.yaka:25:1 at \"a\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample1.yaka:26:1 at \"print\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample1.yaka:27:1 at \"if\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nCritical !! main() function must be present\n\nreturn := 4294967295", - "test_data/sample2.yaka": "sample2.yaka:2:1 at \"a\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample2.yaka:3:1 at \"while\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nCritical !! main() function must be present\n\nreturn := 4294967295", - "test_data/sample3.yaka": "sample3.yaka:2:1 at \"a\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample3.yaka:3:1 at \"b\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample3.yaka:4:1 at \"print\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample3.yaka:5:1 at \"print\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample3.yaka:6:1 at \"pass\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample3.yaka:7:1 at \"print\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample3.yaka:8:1 at \"print\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample3.yaka:9:1 at \"print\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample3.yaka:10:1 at \"print\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample3.yaka:11:1 at \"pass\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nCritical !! main() function must be present\n\nreturn := 4294967295", - "test_data/sample4.yaka": "sample4.yaka:2:1 at \"pass\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nCritical !! main() function must be present\n\nreturn := 4294967295", - "test_data/sample5.yaka": "sample5.yaka:2:1 at \"a\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample5.yaka:3:1 at \"while\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nCritical !! main() function must be present\n\nreturn := 4294967295", - "test_data/sample6.yaka": "sample6.yaka:2:1 at \"a\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample6.yaka:3:1 at \"while\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nCritical !! main() function must be present\n\nreturn := 4294967295", + "test_data/sample1.yaka": "sample1.yaka:12:1 at \"print\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample1.yaka:13:1 at \"print\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample1.yaka:14:1 at \"print\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample1.yaka:15:1 at \"print\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample1.yaka:16:1 at \"print\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample1.yaka:17:1 at \"print\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample1.yaka:18:1 at \"print\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample1.yaka:19:1 at \"print\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample1.yaka:20:1 at \"print\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample1.yaka:21:1 at \"a\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample1.yaka:22:1 at \"b\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample1.yaka:23:1 at \"print\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample1.yaka:24:1 at \"print\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample1.yaka:25:1 at \"a\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample1.yaka:26:1 at \"print\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample1.yaka:27:1 at \"if\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nreturn := 4294967295", + "test_data/sample2.yaka": "sample2.yaka:2:1 at \"a\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample2.yaka:3:1 at \"while\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nreturn := 4294967295", + "test_data/sample3.yaka": "sample3.yaka:2:1 at \"a\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample3.yaka:3:1 at \"b\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample3.yaka:4:1 at \"print\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample3.yaka:5:1 at \"print\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample3.yaka:6:1 at \"pass\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample3.yaka:7:1 at \"print\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample3.yaka:8:1 at \"print\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample3.yaka:9:1 at \"print\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample3.yaka:10:1 at \"print\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample3.yaka:11:1 at \"pass\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nreturn := 4294967295", + "test_data/sample4.yaka": "sample4.yaka:2:1 at \"pass\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nreturn := 4294967295", + "test_data/sample5.yaka": "sample5.yaka:2:1 at \"a\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample5.yaka:3:1 at \"while\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nreturn := 4294967295", + "test_data/sample6.yaka": "sample6.yaka:2:1 at \"a\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nsample6.yaka:3:1 at \"while\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nreturn := 4294967295", "test_data/sample_hello_threads.yaka": "File not found or unable to read:cpu.yaka\n\nFailed to initialize parsing:sample_hello_threads.yaka\n\nreturn := 4294967295", - "test_data/sample_negative_numbers.yaka": "sample_negative_numbers.yaka:1:1 at \"a\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nCritical !! main() function must be present\n\nreturn := 4294967295", + "test_data/sample_negative_numbers.yaka": "sample_negative_numbers.yaka:1:1 at \"a\" --> Invalid statement detected. Only def, class, import, runtimefeature or constant statements are supported at module level.\n\nreturn := 4294967295", "test_data/simple_programs/defer_test.yaka": "1\n2\n3\n4\n\nreturn := 0", "test_data/test_compiler.yaka": "3628800\n362880\n40320\n5040\n720\n120\n24\n6\n2\n1\naaaaaaaaaab\n2 From defer --> Program Completed\n1 From defer --> Program Completed\n\nreturn := 0", + "test_data/yaksha_lib_tests/use_str_buf.yaka": "str: Hello,World\nsr: Hello,World\n\nreturn := 0", "test_libs/tests.yaka": "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\u2566 \u2566\u2554\u2550\u2557\u2566\u2554\u2550\u250c\u2500\u2510\u252c \u252c\u2554\u2550\u2557\n\u255a\u2566\u255d\u2560\u2550\u2563\u2560\u2569\u2557\u2514\u2500\u2510\u251c\u2500\u2524\u2560\u2550\u2563\n \u2569 \u2569 \u2569\u2569 \u2569\u2514\u2500\u2518\u2534 \u2534\u2569 \u2569\n \u2554\u2566\u2557\u2554\u2550\u2557\u2554\u2550\u2557\u2554\u2566\u2557\u2554\u2550\u2557\n \u2551 \u2551\u2563 \u255a\u2550\u2557 \u2551 \u255a\u2550\u2557\n \u2569 \u255a\u2550\u255d\u255a\u2550\u255d \u2569 \u255a\u2550\u255d\n\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\nTEST - assumptions\n success <- char is 1 byte\n success <- int is 4 byte\nTEST - libs.strings.contains\n success <- strings.contains(\"\", \"\")\n success <- strings.contains(\"a\", \"a\")\n success <- strings.contains(\"ab\", \"a\")\n success <- strings.contains(\"a\", \"ab\")\nTEST - libs.strings.startswith\n success <- strings.startswith(\"\", \"\")\n success <- strings.startswith(\"a\", \"a\")\n success <- strings.startswith(\"ab\", \"a\")\n\nreturn := 0" } \ No newline at end of file