emboss/krypt-core-jruby — Issue #9: Integer spec failures for Bignum handling
Author: nahi
Created: 2012-01-25 04:25:38+00:00
State: open

17) Krypt::ASN1::Integer#to_der value positive Bignum
Failure/Error: it { should == "\x02\x82\x06\x08\x02" + "\x00" * 1543 }
expected: "\u0002\u0082\u0006\b\u0002\u0000...\u0000"
got: "\u0002\u0082\u0006\u000E\u0004\b+\u0002\u0004\u0003\u0000...\u0000\u0002" (using ==)
# /home/nahi/git/krypt/spec/krypt-core/asn1/asn1_integer_spec.rb:140:in `(root)'

18) Krypt::ASN1::Integer#to_der value negative Bignum
Failure/Error: it { should == "\x02\x82\x06\x08\xFE" + "\x00" * 1543 }
expected: "\u0002\u0082\u0006\b\u00FE\u0000...\u0000"
got: "\u0002\u0082\u0006\u000E\u0004\b-\u0002\u0004\u0003\u0000,,,\u0000\u0002" (using ==)
# /home/nahi/git/krypt/spec/krypt-core/asn1/asn1_integer_spec.rb:145:in `(root)'