(t *testing.T)
| 135 | } |
| 136 | |
| 137 | func TestByteStringIsDeterministic(t *testing.T) { |
| 138 | testBytes := []byte{toCborHeader(TypeBytes, 3), 0x1A, 0x2B, 0x3C} |
| 139 | testBytesAsCborSequence := multiappend(testBytes, testBytes) |
| 140 | |
| 141 | for _, testCase := range [][]byte{testBytes, testBytesAsCborSequence} { |
| 142 | if err := Deterministic(testCase); err != nil { |
| 143 | t.Error("Deterministically encoded byte string should not return false for deterministicy.") |
| 144 | } |
| 145 | } |
| 146 | } |
| 147 | |
| 148 | func TestLongTextAndByteStringIsDeterministic(t *testing.T) { |
| 149 | longStr := "olipakerrankilpikonnajakissajotkajuoksivatkilpaajakilpikonnavoitti" |
nothing calls this directly
no test coverage detected