From 36e4028f5bf4307b8deabcc3768af2708728cede Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 3 Nov 2021 17:39:48 +0800 Subject: [PATCH] fix and run parser tests --- flake.nix | 2 +- ...er__fstring__tests__fstring_parse_selfdocumenting_base.snap} | 0 ...string__tests__fstring_parse_selfdocumenting_base_more.snap} | 0 ...__fstring__tests__fstring_parse_selfdocumenting_format.snap} | 0 ...nap => nac3parser__fstring__tests__parse_empty_fstring.snap} | 0 ...ring.snap => nac3parser__fstring__tests__parse_fstring.snap} | 0 ...ap => nac3parser__fstring__tests__parse_fstring_equals.snap} | 0 ... nac3parser__fstring__tests__parse_fstring_nested_spec.snap} | 0 ...> nac3parser__fstring__tests__parse_fstring_not_equals.snap} | 0 ...3parser__fstring__tests__parse_fstring_not_nested_spec.snap} | 0 ...rser__fstring__tests__parse_fstring_selfdoc_prec_space.snap} | 0 ...__fstring__tests__parse_fstring_selfdoc_trailing_space.snap} | 0 ...> nac3parser__fstring__tests__parse_fstring_yield_expr.snap} | 0 ...e_class.snap => nac3parser__parser__tests__parse_class.snap} | 0 ...=> nac3parser__parser__tests__parse_dict_comprehension.snap} | 0 ...parser__parser__tests__parse_double_list_comprehension.snap} | 0 ...e_empty.snap => nac3parser__parser__tests__parse_empty.snap} | 0 ....snap => nac3parser__parser__tests__parse_if_elif_else.snap} | 0 ...kwargs.snap => nac3parser__parser__tests__parse_kwargs.snap} | 0 ...lambda.snap => nac3parser__parser__tests__parse_lambda.snap} | 0 ...=> nac3parser__parser__tests__parse_list_comprehension.snap} | 0 ...int_2.snap => nac3parser__parser__tests__parse_print_2.snap} | 0 ...o.snap => nac3parser__parser__tests__parse_print_hello.snap} | 0 ...tuples.snap => nac3parser__parser__tests__parse_tuples.snap} | 0 24 files changed, 1 insertion(+), 1 deletion(-) rename nac3parser/src/snapshots/{rustpython_parser__fstring__tests__fstring_parse_selfdocumenting_base.snap => nac3parser__fstring__tests__fstring_parse_selfdocumenting_base.snap} (100%) rename nac3parser/src/snapshots/{rustpython_parser__fstring__tests__fstring_parse_selfdocumenting_base_more.snap => nac3parser__fstring__tests__fstring_parse_selfdocumenting_base_more.snap} (100%) rename nac3parser/src/snapshots/{rustpython_parser__fstring__tests__fstring_parse_selfdocumenting_format.snap => nac3parser__fstring__tests__fstring_parse_selfdocumenting_format.snap} (100%) rename nac3parser/src/snapshots/{rustpython_parser__fstring__tests__parse_empty_fstring.snap => nac3parser__fstring__tests__parse_empty_fstring.snap} (100%) rename nac3parser/src/snapshots/{rustpython_parser__fstring__tests__parse_fstring.snap => nac3parser__fstring__tests__parse_fstring.snap} (100%) rename nac3parser/src/snapshots/{rustpython_parser__fstring__tests__parse_fstring_equals.snap => nac3parser__fstring__tests__parse_fstring_equals.snap} (100%) rename nac3parser/src/snapshots/{rustpython_parser__fstring__tests__parse_fstring_nested_spec.snap => nac3parser__fstring__tests__parse_fstring_nested_spec.snap} (100%) rename nac3parser/src/snapshots/{rustpython_parser__fstring__tests__parse_fstring_not_equals.snap => nac3parser__fstring__tests__parse_fstring_not_equals.snap} (100%) rename nac3parser/src/snapshots/{rustpython_parser__fstring__tests__parse_fstring_not_nested_spec.snap => nac3parser__fstring__tests__parse_fstring_not_nested_spec.snap} (100%) rename nac3parser/src/snapshots/{rustpython_parser__fstring__tests__parse_fstring_selfdoc_prec_space.snap => nac3parser__fstring__tests__parse_fstring_selfdoc_prec_space.snap} (100%) rename nac3parser/src/snapshots/{rustpython_parser__fstring__tests__parse_fstring_selfdoc_trailing_space.snap => nac3parser__fstring__tests__parse_fstring_selfdoc_trailing_space.snap} (100%) rename nac3parser/src/snapshots/{rustpython_parser__fstring__tests__parse_fstring_yield_expr.snap => nac3parser__fstring__tests__parse_fstring_yield_expr.snap} (100%) rename nac3parser/src/snapshots/{rustpython_parser__parser__tests__parse_class.snap => nac3parser__parser__tests__parse_class.snap} (100%) rename nac3parser/src/snapshots/{rustpython_parser__parser__tests__parse_dict_comprehension.snap => nac3parser__parser__tests__parse_dict_comprehension.snap} (100%) rename nac3parser/src/snapshots/{rustpython_parser__parser__tests__parse_double_list_comprehension.snap => nac3parser__parser__tests__parse_double_list_comprehension.snap} (100%) rename nac3parser/src/snapshots/{rustpython_parser__parser__tests__parse_empty.snap => nac3parser__parser__tests__parse_empty.snap} (100%) rename nac3parser/src/snapshots/{rustpython_parser__parser__tests__parse_if_elif_else.snap => nac3parser__parser__tests__parse_if_elif_else.snap} (100%) rename nac3parser/src/snapshots/{rustpython_parser__parser__tests__parse_kwargs.snap => nac3parser__parser__tests__parse_kwargs.snap} (100%) rename nac3parser/src/snapshots/{rustpython_parser__parser__tests__parse_lambda.snap => nac3parser__parser__tests__parse_lambda.snap} (100%) rename nac3parser/src/snapshots/{rustpython_parser__parser__tests__parse_list_comprehension.snap => nac3parser__parser__tests__parse_list_comprehension.snap} (100%) rename nac3parser/src/snapshots/{rustpython_parser__parser__tests__parse_print_2.snap => nac3parser__parser__tests__parse_print_2.snap} (100%) rename nac3parser/src/snapshots/{rustpython_parser__parser__tests__parse_print_hello.snap => nac3parser__parser__tests__parse_print_hello.snap} (100%) rename nac3parser/src/snapshots/{rustpython_parser__parser__tests__parse_tuples.snap => nac3parser__parser__tests__parse_tuples.snap} (100%) diff --git a/flake.nix b/flake.nix index cb5f0b5..cc75463 100644 --- a/flake.nix +++ b/flake.nix @@ -16,7 +16,7 @@ nativeBuildInputs = [ pkgs.python3 pkgs.llvm_12 ]; buildInputs = [ pkgs.python3 pkgs.libffi pkgs.libxml2 pkgs.llvm_12 ]; cargoBuildFlags = [ "--package" "nac3artiq" ]; - cargoTestFlags = [ "--package" "nac3core" "--package" "nac3artiq" ]; + cargoTestFlags = [ "--package" "nac3ast" "--package" "nac3parser" "--package" "nac3core" "--package" "nac3artiq" ]; installPhase = '' TARGET_DIR=$out/${pkgs.python3Packages.python.sitePackages} diff --git a/nac3parser/src/snapshots/rustpython_parser__fstring__tests__fstring_parse_selfdocumenting_base.snap b/nac3parser/src/snapshots/nac3parser__fstring__tests__fstring_parse_selfdocumenting_base.snap similarity index 100% rename from nac3parser/src/snapshots/rustpython_parser__fstring__tests__fstring_parse_selfdocumenting_base.snap rename to nac3parser/src/snapshots/nac3parser__fstring__tests__fstring_parse_selfdocumenting_base.snap diff --git a/nac3parser/src/snapshots/rustpython_parser__fstring__tests__fstring_parse_selfdocumenting_base_more.snap b/nac3parser/src/snapshots/nac3parser__fstring__tests__fstring_parse_selfdocumenting_base_more.snap similarity index 100% rename from nac3parser/src/snapshots/rustpython_parser__fstring__tests__fstring_parse_selfdocumenting_base_more.snap rename to nac3parser/src/snapshots/nac3parser__fstring__tests__fstring_parse_selfdocumenting_base_more.snap diff --git a/nac3parser/src/snapshots/rustpython_parser__fstring__tests__fstring_parse_selfdocumenting_format.snap b/nac3parser/src/snapshots/nac3parser__fstring__tests__fstring_parse_selfdocumenting_format.snap similarity index 100% rename from nac3parser/src/snapshots/rustpython_parser__fstring__tests__fstring_parse_selfdocumenting_format.snap rename to nac3parser/src/snapshots/nac3parser__fstring__tests__fstring_parse_selfdocumenting_format.snap diff --git a/nac3parser/src/snapshots/rustpython_parser__fstring__tests__parse_empty_fstring.snap b/nac3parser/src/snapshots/nac3parser__fstring__tests__parse_empty_fstring.snap similarity index 100% rename from nac3parser/src/snapshots/rustpython_parser__fstring__tests__parse_empty_fstring.snap rename to nac3parser/src/snapshots/nac3parser__fstring__tests__parse_empty_fstring.snap diff --git a/nac3parser/src/snapshots/rustpython_parser__fstring__tests__parse_fstring.snap b/nac3parser/src/snapshots/nac3parser__fstring__tests__parse_fstring.snap similarity index 100% rename from nac3parser/src/snapshots/rustpython_parser__fstring__tests__parse_fstring.snap rename to nac3parser/src/snapshots/nac3parser__fstring__tests__parse_fstring.snap diff --git a/nac3parser/src/snapshots/rustpython_parser__fstring__tests__parse_fstring_equals.snap b/nac3parser/src/snapshots/nac3parser__fstring__tests__parse_fstring_equals.snap similarity index 100% rename from nac3parser/src/snapshots/rustpython_parser__fstring__tests__parse_fstring_equals.snap rename to nac3parser/src/snapshots/nac3parser__fstring__tests__parse_fstring_equals.snap diff --git a/nac3parser/src/snapshots/rustpython_parser__fstring__tests__parse_fstring_nested_spec.snap b/nac3parser/src/snapshots/nac3parser__fstring__tests__parse_fstring_nested_spec.snap similarity index 100% rename from nac3parser/src/snapshots/rustpython_parser__fstring__tests__parse_fstring_nested_spec.snap rename to nac3parser/src/snapshots/nac3parser__fstring__tests__parse_fstring_nested_spec.snap diff --git a/nac3parser/src/snapshots/rustpython_parser__fstring__tests__parse_fstring_not_equals.snap b/nac3parser/src/snapshots/nac3parser__fstring__tests__parse_fstring_not_equals.snap similarity index 100% rename from nac3parser/src/snapshots/rustpython_parser__fstring__tests__parse_fstring_not_equals.snap rename to nac3parser/src/snapshots/nac3parser__fstring__tests__parse_fstring_not_equals.snap diff --git a/nac3parser/src/snapshots/rustpython_parser__fstring__tests__parse_fstring_not_nested_spec.snap b/nac3parser/src/snapshots/nac3parser__fstring__tests__parse_fstring_not_nested_spec.snap similarity index 100% rename from nac3parser/src/snapshots/rustpython_parser__fstring__tests__parse_fstring_not_nested_spec.snap rename to nac3parser/src/snapshots/nac3parser__fstring__tests__parse_fstring_not_nested_spec.snap diff --git a/nac3parser/src/snapshots/rustpython_parser__fstring__tests__parse_fstring_selfdoc_prec_space.snap b/nac3parser/src/snapshots/nac3parser__fstring__tests__parse_fstring_selfdoc_prec_space.snap similarity index 100% rename from nac3parser/src/snapshots/rustpython_parser__fstring__tests__parse_fstring_selfdoc_prec_space.snap rename to nac3parser/src/snapshots/nac3parser__fstring__tests__parse_fstring_selfdoc_prec_space.snap diff --git a/nac3parser/src/snapshots/rustpython_parser__fstring__tests__parse_fstring_selfdoc_trailing_space.snap b/nac3parser/src/snapshots/nac3parser__fstring__tests__parse_fstring_selfdoc_trailing_space.snap similarity index 100% rename from nac3parser/src/snapshots/rustpython_parser__fstring__tests__parse_fstring_selfdoc_trailing_space.snap rename to nac3parser/src/snapshots/nac3parser__fstring__tests__parse_fstring_selfdoc_trailing_space.snap diff --git a/nac3parser/src/snapshots/rustpython_parser__fstring__tests__parse_fstring_yield_expr.snap b/nac3parser/src/snapshots/nac3parser__fstring__tests__parse_fstring_yield_expr.snap similarity index 100% rename from nac3parser/src/snapshots/rustpython_parser__fstring__tests__parse_fstring_yield_expr.snap rename to nac3parser/src/snapshots/nac3parser__fstring__tests__parse_fstring_yield_expr.snap diff --git a/nac3parser/src/snapshots/rustpython_parser__parser__tests__parse_class.snap b/nac3parser/src/snapshots/nac3parser__parser__tests__parse_class.snap similarity index 100% rename from nac3parser/src/snapshots/rustpython_parser__parser__tests__parse_class.snap rename to nac3parser/src/snapshots/nac3parser__parser__tests__parse_class.snap diff --git a/nac3parser/src/snapshots/rustpython_parser__parser__tests__parse_dict_comprehension.snap b/nac3parser/src/snapshots/nac3parser__parser__tests__parse_dict_comprehension.snap similarity index 100% rename from nac3parser/src/snapshots/rustpython_parser__parser__tests__parse_dict_comprehension.snap rename to nac3parser/src/snapshots/nac3parser__parser__tests__parse_dict_comprehension.snap diff --git a/nac3parser/src/snapshots/rustpython_parser__parser__tests__parse_double_list_comprehension.snap b/nac3parser/src/snapshots/nac3parser__parser__tests__parse_double_list_comprehension.snap similarity index 100% rename from nac3parser/src/snapshots/rustpython_parser__parser__tests__parse_double_list_comprehension.snap rename to nac3parser/src/snapshots/nac3parser__parser__tests__parse_double_list_comprehension.snap diff --git a/nac3parser/src/snapshots/rustpython_parser__parser__tests__parse_empty.snap b/nac3parser/src/snapshots/nac3parser__parser__tests__parse_empty.snap similarity index 100% rename from nac3parser/src/snapshots/rustpython_parser__parser__tests__parse_empty.snap rename to nac3parser/src/snapshots/nac3parser__parser__tests__parse_empty.snap diff --git a/nac3parser/src/snapshots/rustpython_parser__parser__tests__parse_if_elif_else.snap b/nac3parser/src/snapshots/nac3parser__parser__tests__parse_if_elif_else.snap similarity index 100% rename from nac3parser/src/snapshots/rustpython_parser__parser__tests__parse_if_elif_else.snap rename to nac3parser/src/snapshots/nac3parser__parser__tests__parse_if_elif_else.snap diff --git a/nac3parser/src/snapshots/rustpython_parser__parser__tests__parse_kwargs.snap b/nac3parser/src/snapshots/nac3parser__parser__tests__parse_kwargs.snap similarity index 100% rename from nac3parser/src/snapshots/rustpython_parser__parser__tests__parse_kwargs.snap rename to nac3parser/src/snapshots/nac3parser__parser__tests__parse_kwargs.snap diff --git a/nac3parser/src/snapshots/rustpython_parser__parser__tests__parse_lambda.snap b/nac3parser/src/snapshots/nac3parser__parser__tests__parse_lambda.snap similarity index 100% rename from nac3parser/src/snapshots/rustpython_parser__parser__tests__parse_lambda.snap rename to nac3parser/src/snapshots/nac3parser__parser__tests__parse_lambda.snap diff --git a/nac3parser/src/snapshots/rustpython_parser__parser__tests__parse_list_comprehension.snap b/nac3parser/src/snapshots/nac3parser__parser__tests__parse_list_comprehension.snap similarity index 100% rename from nac3parser/src/snapshots/rustpython_parser__parser__tests__parse_list_comprehension.snap rename to nac3parser/src/snapshots/nac3parser__parser__tests__parse_list_comprehension.snap diff --git a/nac3parser/src/snapshots/rustpython_parser__parser__tests__parse_print_2.snap b/nac3parser/src/snapshots/nac3parser__parser__tests__parse_print_2.snap similarity index 100% rename from nac3parser/src/snapshots/rustpython_parser__parser__tests__parse_print_2.snap rename to nac3parser/src/snapshots/nac3parser__parser__tests__parse_print_2.snap diff --git a/nac3parser/src/snapshots/rustpython_parser__parser__tests__parse_print_hello.snap b/nac3parser/src/snapshots/nac3parser__parser__tests__parse_print_hello.snap similarity index 100% rename from nac3parser/src/snapshots/rustpython_parser__parser__tests__parse_print_hello.snap rename to nac3parser/src/snapshots/nac3parser__parser__tests__parse_print_hello.snap diff --git a/nac3parser/src/snapshots/rustpython_parser__parser__tests__parse_tuples.snap b/nac3parser/src/snapshots/nac3parser__parser__tests__parse_tuples.snap similarity index 100% rename from nac3parser/src/snapshots/rustpython_parser__parser__tests__parse_tuples.snap rename to nac3parser/src/snapshots/nac3parser__parser__tests__parse_tuples.snap