Skip to content

Commit

Permalink
Fix \prop_set_eq:NN for twice the same linked prop
Browse files Browse the repository at this point in the history
  • Loading branch information
blefloch authored and josephwright committed Feb 13, 2024
1 parent c512f5b commit 9f18c70
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion l3kernel/l3prop.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,7 @@
\cs_generate_variant:Nn \prop_gset_eq:NN { Nc , cN , cc }
\cs_new_protected:Npn \@@_set_eq:NNNN #1#2#3#4
{
\cs_if_eq:NNF #1#2
\cs_if_eq:NNF #3#4
{
\@@_if_flat:NTF #3
{
Expand Down
7 changes: 7 additions & 0 deletions l3kernel/testfiles/m3prop007.lvt
Original file line number Diff line number Diff line change
Expand Up @@ -561,5 +561,12 @@
}
}

\TEST { prop_set_eq~same~prop }
{
\prop_set_from_keyval:Nn \l_a_prop { a = b , c = d }
\prop_set_eq:NN \l_a_prop \l_a_prop
\prop_show:N \l_a_prop
}

\END

9 changes: 9 additions & 0 deletions l3kernel/testfiles/m3prop007.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -645,3 +645,12 @@ TEST 28: prop to keyval in halign
0
1
============================================================
============================================================
TEST 29: prop_set_eq same prop
============================================================
The linked property list \l_a_prop contains the pairs (without outer braces):
> {a} => {b}
> {c} => {d}.
<recently read> }
l. ... }
============================================================

0 comments on commit 9f18c70

Please sign in to comment.