File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,7 @@ module Net::BER::Extensions::TrueClass
5
5
##
6
6
# Converts +true+ to the BER wireline representation of +true+.
7
7
def to_ber
8
- # 20100319 AZ: Note that this may not be the completely correct value,
9
- # per some test documentation. We need to determine the truth of this.
10
- "\001 \001 \001 "
8
+ # http://tools.ietf.org/html/rfc4511#section-5.1
9
+ "\001 \001 \xFF "
11
10
end
12
11
end
Original file line number Diff line number Diff line change @@ -12,8 +12,9 @@ def test_array
12
12
assert_equal ary , encoded_ary . read_ber
13
13
end
14
14
15
+ # http://tools.ietf.org/html/rfc4511#section-5.1
15
16
def test_true
16
- assert_equal "\x01 \x01 \x01 " , true . to_ber
17
+ assert_equal "\x01 \x01 \xFF " , true . to_ber
17
18
end
18
19
19
20
def test_false
You can’t perform that action at this time.
0 commit comments