test/test_ber.rb in snmp-1.1.0 vs test/test_ber.rb in snmp-1.1.1

- old
+ new

@@ -1,5 +1,7 @@ +# encoding: ascii-8bit + require 'test/unit' require 'snmp/varbind' require 'snmp/ber' class ASN1_Test < Test::Unit::TestCase @@ -116,18 +118,18 @@ } end # Decode ASN.1 octet string def test_decode_octet_string - s, data = decode_octet_string("\004\202\000\005hello") + s, _ = decode_octet_string("\004\202\000\005hello") assert_equal("hello",s) assert_raise(InvalidTag) { decode_octet_string("\005\202\000\005hello") } end def test_decode_ip_address - ip, data = decode_ip_address("@\004\001\002\003\004") + ip, _ = decode_ip_address("@\004\001\002\003\004") assert_equal(ip, "\001\002\003\004") assert_raise(InvalidTag) { decode_ip_address("\004\004\001\002\003\004") } assert_raise(InvalidLength) {