Skip to content

Commit f26c961

Browse files
committed
Add roundtrip encoding/decoding tests for samples
1 parent 1dca2b9 commit f26c961

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/ber/test_ber.rb

+4
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ def test_false
5252
define_method "test_encode_#{number}" do
5353
assert_equal expected_encoding.b, number.to_ber
5454
end
55+
56+
define_method "test_decode_encoded_#{number}" do
57+
assert_equal number, expected_encoding.b.read_ber
58+
end
5559
end
5660

5761
# Round-trip encoding: This is mostly to be sure to cover Bignums well.

0 commit comments

Comments
 (0)