Skip to content

Commit

Permalink
[stdlib] Add test for Hash(Eachable1)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyash-b committed Mar 9, 2024
1 parent 896d1d1 commit 98cef6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/stdlib.ngs
Original file line number Diff line number Diff line change
Expand Up @@ -3695,6 +3695,7 @@ F Hash(e:Eachable1) {
}

TEST Hash([{"Name": "n1", "Value": "v1"},{"Name": "n2", "Value": "v2"}]) == {"n1": "v1", "n2": "v2"}
TEST { Hash([{"XName": "n1", "Value": "v1"},{"Name": "n2", "Value": "v2"}]) }.assert(InvalidArgument)


doc Convert Hash into JSON compatible data structure - object
Expand Down

0 comments on commit 98cef6d

Please sign in to comment.