We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7744f7f commit 1dca2b9Copy full SHA for 1dca2b9
test/ber/test_ber.rb
@@ -29,18 +29,20 @@ def test_false
29
128 => "\x02\x02\x00\x80",
30
255 => "\x02\x02\x00\xFF",
31
256 => "\x02\x02\x01\x00",
32
- 65535 => "\x02\x02\xFF\xFF",
+ 65535 => "\x02\x03\x00\xFF\xFF",
33
65536 => "\x02\x03\x01\x00\x00",
34
- 16_777_215 => "\x02\x03\xFF\xFF\xFF",
+ 8388607 => "\x02\x03\x7F\xFF\xFF",
35
+ 8388608 => "\x02\x04\x00\x80\x00\x00",
36
+ 16_777_215 => "\x02\x04\x00\xFF\xFF\xFF",
37
0x01000000 => "\x02\x04\x01\x00\x00\x00",
38
0x3FFFFFFF => "\x02\x04\x3F\xFF\xFF\xFF",
39
0x4FFFFFFF => "\x02\x04\x4F\xFF\xFF\xFF",
40
41
# Some odd samples...
- 5 => "\002\001\005",
- 500 => "\002\002\001\364",
42
- 50_000 => "\x02\x02\xC3P",
43
- 5_000_000_000 => "\002\005\001*\005\362\000",
+ 5 => "\x02\x01\x05",
+ 500 => "\x02\x02\x01\xf4",
44
+ 50_000 => "\x02\x03\x00\xC3\x50",
45
+ 5_000_000_000 => "\x02\x05\x01\x2a\x05\xF2\x00",
46
47
# negatives
48
# -1 => "\x02\x01\xFF",
0 commit comments