Skip to content

Commit

Permalink
test: add tests for NewNodeIDFromExpandedNodeID for NewExpandedNodeID
Browse files Browse the repository at this point in the history
this proves that the mask will be correct
  • Loading branch information
sruehl committed Aug 29, 2023
1 parent 64de80d commit 731d545
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ua/node_id_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,13 @@ func TestNewNodeIDFromExpandedNodeID(t *testing.T) {
args args
want *NodeID
}{
{
name: "NewExpandedNodeID",
args: args{
id: NewExpandedNodeID(NewTwoByteNodeID(42), "someUri", 42),
},
want: NewTwoByteNodeID(42),
},
{
name: "NewTwoByteExpandedNodeID",
args: args{
Expand Down

0 comments on commit 731d545

Please sign in to comment.