Skip to content

Commit

Permalink
Merge branch 'remove-redeclared-keys' into demo
Browse files Browse the repository at this point in the history
  • Loading branch information
jiwonz committed Sep 27, 2024
2 parents 8d90e57 + f02bbe7 commit 0fe5349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/rule_tests/remove_redeclared_keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test_rule!(
redeclared_value_and_index("local a = {1,[1]='A'}") => "local a = {'A'}",
redeclared_field_and_index("local a = {x=1,['x']=2}") => "local a = {['x']=2}",
redeclared_string_indexes("local a = {['x']=1,['x']=2}") => "local a = {['x']=2}",
redeclared_string_fields("local a = {x=1,x=2}") => "local a = {x=2}",
redeclared_string_fields("local a = {x=1,x=2}") => "local a = {x=2}",
redeclared_numeric_indexes("local a = {[1]='A',[1]='B'}") => "local a = {'B'}",
redeclared_values_and_indexes_special("local a = {1,2,3,[3]='A',[4]='B',[6]='C',[7]='D'}")
=> "local a = {1,2,'A','B',[6]='C',[7]='D'}",
Expand Down

0 comments on commit 0fe5349

Please sign in to comment.