| ... | @@ -61,6 +61,7 @@ test AllTypes { | ... | @@ -61,6 +61,7 @@ test AllTypes { |
| 61 | .g = .{ .inner = .{ .a = 4, .b = 5 }, .sum = 9 }, | 61 | .g = .{ .inner = .{ .a = 4, .b = 5 }, .sum = 9 }, |
| 62 | .h = .{ .tag = Tag.init(.string_ia5, false, .universal), .bytes = "asdf" }, | 62 | .h = .{ .tag = Tag.init(.string_ia5, false, .universal), .bytes = "asdf" }, |
| 63 | }; | 63 | }; |
| | 64 | // https://lapo.it/asn1js/#MC-gAwIBAqEFAwMABKCCAyoDBAwEYXNkZgQEZmRzYQICAQGjBgIBBAIBBRYEYXNkZg |
| 64 | const path = "./der/testdata/all_types.der"; | 65 | const path = "./der/testdata/all_types.der"; |
| 65 | const encoded = @embedFile(path); | 66 | const encoded = @embedFile(path); |
| 66 | const actual = try asn1.der.decode(AllTypes, encoded); | 67 | const actual = try asn1.der.decode(AllTypes, encoded); |