Skip to content

Commit

Permalink
Added clarification on Pretty CBOR
Browse files Browse the repository at this point in the history
Signed-off-by: Yogesh Deshpande <[email protected]>
  • Loading branch information
yogeshbdeshpande committed Feb 20, 2024
1 parent 437bb89 commit 61e4d1e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions comid/integrityregisters_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ func TestIntegrityRegisters_AddDigests_NOK(t *testing.T) {

func TestIntegrityRegisters_MarshalCBOR_UIntIndex_OK(t *testing.T) {
reg, err := prepareRegister(t, "uint")
// Below is the partial CBOR Pretty notation to highlight index as uint: unsigned(0) (at line 70)

// A5 # map(5)
// 00 # unsigned(0)
// 81 # array(1)
Expand Down Expand Up @@ -136,6 +138,8 @@ func TestIntegrityRegisters_MarshalJSON_UIntIndex_OK(t *testing.T) {

func TestIntegrityRegisters_MarshalCBOR_TextIndex_OK(t *testing.T) {
reg, err := prepareRegister(t, "text")
// Below is the partial CBOR Pretty notation to highlight index as text: "0" (at line 143)

// A5 # map(5)
// 61 # text(1)
// 30 # "0"
Expand Down

0 comments on commit 61e4d1e

Please sign in to comment.