Skip to content

Commit dd3391f

Browse files
committed
🧪 test(common): normalize key quotes for tombi v1.2.0
1 parent a3f1881 commit dd3391f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎common/src/tests/table_tests.rs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1913,7 +1913,7 @@ fn test_collapse_sub_table_with_literal_quoted_key() {
19131913
insta::assert_snapshot!(result, @r#"
19141914
[project]
19151915
name = "test"
1916-
scripts.'literal-key' = "value"
1916+
scripts."literal-key" = "value"
19171917
"#);
19181918
}
19191919

@@ -2111,7 +2111,7 @@ fn test_reorder_table_keys_mixed_quote_styles() {
21112111
assert_eq!(res1, res2, "formatting should be idempotent");
21122112
insta::assert_snapshot!(res1, @r#"
21132113
[tool.ruff]
2114-
lint.per-file-ignores.'tests/*' = [ "T20" ]
2114+
lint.per-file-ignores."tests/*" = [ "T20" ]
21152115
lint.per-file-ignores."flexget/*" = [ "PTH" ]
21162116
"#);
21172117
}
@@ -2143,7 +2143,7 @@ fn test_reorder_table_keys_mixed_quote_styles_reverse() {
21432143
insta::assert_snapshot!(res1, @r#"
21442144
[tool.ruff]
21452145
lint.per-file-ignores."flexget/*" = [ "PTH" ]
2146-
lint.per-file-ignores.'tests/*' = [ "T20" ]
2146+
lint.per-file-ignores."tests/*" = [ "T20" ]
21472147
"#);
21482148
}
21492149

0 commit comments

Comments
 (0)