Skip to content

Commit

Permalink
test cases added
Browse files Browse the repository at this point in the history
  • Loading branch information
pratikmota committed Mar 10, 2024
1 parent 40712d5 commit ead5990
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/misc.rye
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,13 @@ section "Functions that change values in-place"

group "append!"
mold\nowrap ?append!
{ { word } { object } }
{ { word } { object } { list } }
{
equal { b: { 1 2 3 } , append! 4 'b , b } { 1 2 3 4 }
equal { b: { 1 2 3 } , append! { 4 5 } 'b , b } { 1 2 3 { 4 5 } }
equal { b: list { 3 4 } , append! list { 1 2 } 'b , b } list { 3 4 1 2 }
equal { append! "ab" "cd" } "cdab"
equal { append! { 3 4 } { 1 2 } } { 1 2 3 4 }
}

group "change\ nth!"
Expand Down

0 comments on commit ead5990

Please sign in to comment.