Skip to content

Commit

Permalink
per: adjust changed VisibleString encoding outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicceboy committed Aug 21, 2023
1 parent ceba49d commit 2bfe5fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/per/enc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1374,7 +1374,7 @@ mod tests {
assert_encode(
EncoderOptions::unaligned(),
VisibleString::try_from("John").unwrap(),
&[4, 0x95, 0xBF, 0x46, 0xE0],
&[4, 0x55, 0x3E, 0x44, 0xE0],
);
assert_encode(
EncoderOptions::aligned(),
Expand Down
6 changes: 3 additions & 3 deletions src/uper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ mod tests {
)]),
"HejHoppHappHippAbcde".try_into().unwrap(),
&[
0x03, 0x23, 0x2e, 0xa9, 0x1b, 0xf8, 0x70, 0x91, 0x87, 0x87, 0x09, 0x1a, 0x78, 0x70,
0x83, 0x8b, 0x1e, 0x4c, 0xa0
0x02, 0xa2, 0x2c, 0xa5, 0x13, 0xe8, 0x50, 0x51, 0x06, 0x85, 0x05, 0x12, 0x68, 0x50,
0x43, 0x0a, 0x1c, 0x48, 0xa0
]
);

Expand All @@ -161,7 +161,7 @@ mod tests {
VisibleString,
Constraints::new(&[Constraint::Size(Size::new(Bounded::Single(5)).into())]),
"Hejaa".try_into().unwrap(),
&[0x91, 0x97, 0x56, 0x1c, 0x20]
&[0x51, 0x16, 0x54, 0x18, 0x20]
);

const ALPHABET: &[u32] = &{
Expand Down

0 comments on commit 2bfe5fa

Please sign in to comment.