Skip to content

Commit

Permalink
test: move snpashots to test dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Glyphack committed Jun 9, 2024
1 parent 2bb3755 commit 6060d9d
Show file tree
Hide file tree
Showing 332 changed files with 27 additions and 15,783 deletions.
28 changes: 27 additions & 1 deletion parser/src/parser/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3292,6 +3292,7 @@ mod tests {

insta::with_settings!({
description => test_case.to_string(), // the template source code
snapshot_path => "../../test_data/output/",
omit_expression => true // do not include the default expression
}, {
assert_debug_snapshot!(program);
Expand All @@ -3307,6 +3308,7 @@ mod tests {

insta::with_settings!({
description => test_case.to_string(), // the template source code
snapshot_path => "../../test_data/output/",
omit_expression => true // do not include the default expression
}, {
assert_debug_snapshot!(program);
Expand All @@ -3322,6 +3324,7 @@ mod tests {

insta::with_settings!({
description => test_case.to_string(), // the template source code
snapshot_path => "../../test_data/output/",
omit_expression => true // do not include the default expression
}, {
assert_debug_snapshot!(program);
Expand All @@ -3337,6 +3340,7 @@ mod tests {

insta::with_settings!({
description => test_case.to_string(), // the template source code
snapshot_path => "../../test_data/output/",
omit_expression => true // do not include the default expression
}, {
assert_debug_snapshot!(program);
Expand All @@ -3352,6 +3356,7 @@ mod tests {

insta::with_settings!({
description => test_case.to_string(), // the template source code
snapshot_path => "../../test_data/output/",
omit_expression => true // do not include the default expression
}, {
assert_debug_snapshot!(program);
Expand All @@ -3367,6 +3372,7 @@ mod tests {

insta::with_settings!({
description => test_case.to_string(), // the template source code
snapshot_path => "../../test_data/output/",
omit_expression => true // do not include the default expression
}, {
assert_debug_snapshot!(program);
Expand All @@ -3382,6 +3388,7 @@ mod tests {

insta::with_settings!({
description => test_case.to_string(), // the template source code
snapshot_path => "../../test_data/output/",
omit_expression => true // do not include the default expression
}, {
assert_debug_snapshot!(program);
Expand All @@ -3397,6 +3404,7 @@ mod tests {

insta::with_settings!({
description => test_case.to_string(), // the template source code
snapshot_path => "../../test_data/output/",
omit_expression => true // do not include the default expression
}, {
assert_debug_snapshot!(program);
Expand All @@ -3412,6 +3420,7 @@ mod tests {

insta::with_settings!({
description => test_case.to_string(), // the template source code
snapshot_path => "../../test_data/output/",
omit_expression => true // do not include the default expression
}, {
assert_debug_snapshot!(program);
Expand All @@ -3428,6 +3437,7 @@ mod tests {

insta::with_settings!({
description => test_case.to_string(), // the template source code
snapshot_path => "../../test_data/output/",
omit_expression => true // do not include the default expression
}, {
assert_debug_snapshot!(program);
Expand Down Expand Up @@ -3455,6 +3465,7 @@ mod tests {

insta::with_settings!({
description => test_case.to_string(), // the template source code
snapshot_path => "../../test_data/output/",
omit_expression => true // do not include the default expression
}, {
assert_debug_snapshot!(program);
Expand All @@ -3470,6 +3481,7 @@ mod tests {

insta::with_settings!({
description => test_case.to_string(), // the template source code
snapshot_path => "../../test_data/output/",
omit_expression => true // do not include the default expression
}, {
assert_debug_snapshot!(program);
Expand All @@ -3486,6 +3498,7 @@ mod tests {

insta::with_settings!({
description => test_case.to_string(), // the template source code
snapshot_path => "../../test_data/output/",
omit_expression => true // do not include the default expression
}, {
assert_debug_snapshot!(program);
Expand All @@ -3502,6 +3515,7 @@ mod tests {

insta::with_settings!({
description => test_case.to_string(), // the template source code
snapshot_path => "../../test_data/output/",
omit_expression => true // do not include the default expression
}, {
assert_debug_snapshot!(program);
Expand All @@ -3517,6 +3531,7 @@ mod tests {

insta::with_settings!({
description => test_case.to_string(), // the template source code
snapshot_path => "../../test_data/output/",
omit_expression => true // do not include the default expression
}, {
assert_debug_snapshot!(program);
Expand All @@ -3541,6 +3556,7 @@ mod tests {

insta::with_settings!({
description => test_case.to_string(), // the template source code
snapshot_path => "../../test_data/output/",
omit_expression => true // do not include the default expression
}, {
assert_debug_snapshot!(program);
Expand All @@ -3566,6 +3582,7 @@ mod tests {

insta::with_settings!({
description => test_case.to_string(), // the template source code
snapshot_path => "../../test_data/output/",
omit_expression => true // do not include the default expression
}, {
assert_debug_snapshot!(program);
Expand All @@ -3582,6 +3599,7 @@ mod tests {

insta::with_settings!({
description => test_case.to_string(), // the template source code
snapshot_path => "../../test_data/output/",
omit_expression => true // do not include the default expression
}, {
assert_debug_snapshot!(program);
Expand Down Expand Up @@ -3615,6 +3633,7 @@ mod tests {

insta::with_settings!({
description => test_case.to_string(), // the template source code
snapshot_path => "../../test_data/output/",
omit_expression => true // do not include the default expression
}, {
assert_debug_snapshot!(program);
Expand All @@ -3637,6 +3656,7 @@ mod tests {

insta::with_settings!({
description => test_case.to_string(), // the template source code
snapshot_path => "../../test_data/output/",
omit_expression => true // do not include the default expression
}, {
assert_debug_snapshot!(program);
Expand Down Expand Up @@ -3664,6 +3684,7 @@ mod tests {

insta::with_settings!({
description => test_case.to_string(), // the template source code
snapshot_path => "../../test_data/output/",
omit_expression => true // do not include the default expression
}, {
assert_debug_snapshot!(program);
Expand All @@ -3688,6 +3709,7 @@ else:

insta::with_settings!({
description => test_case.to_string(), // the template source code
snapshot_path => "../../test_data/output/",
omit_expression => true // do not include the default expression
}, {
assert_debug_snapshot!(program);
Expand Down Expand Up @@ -3735,6 +3757,7 @@ except *Exception as e:

insta::with_settings!({
description => test_case.to_string(), // the template source code
snapshot_path => "../../test_data/output/",
omit_expression => true // do not include the default expression
}, {
assert_debug_snapshot!(program);
Expand All @@ -3756,6 +3779,7 @@ except *Exception as e:

insta::with_settings!({
description => test_case.to_string(), // the template source code
snapshot_path => "../../test_data/output/",
omit_expression => true // do not include the default expression
}, {
assert_debug_snapshot!(program);
Expand All @@ -3774,9 +3798,11 @@ except *Exception as e:
);
let program = parser.parse().expect("parsing failed");
let snapshot = format!("{program:#?}");

insta::with_settings!({
description => test_case.clone(),
omit_expression => true
omit_expression => true,
snapshot_path => "../../test_data/output/"
}, {
assert_snapshot!(snapshot);
});
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 6060d9d

Please sign in to comment.