New upstream version 1.1.1

This commit is contained in:
Sébastien Delafond
2017-11-02 08:56:43 +01:00
parent c926f2bf05
commit ee9fb8dfec
356 changed files with 656439 additions and 643115 deletions
+27
View File
@@ -0,0 +1,27 @@
package pgp
import (
"testing"
. "gopkg.in/check.v1"
)
// Launch gocheck tests
func Test(t *testing.T) {
TestingT(t)
}
type PGPSuite struct{}
var _ = Suite(&PGPSuite{})
func (s *PGPSuite) TestKeyMatch(c *C) {
c.Check(Key("EC4B033C70096AD1").Matches(Key("EC4B033C70096AD1")), Equals, true)
c.Check(Key("37E1C17570096AD1").Matches(Key("EC4B033C70096AD1")), Equals, false)
c.Check(Key("70096AD1").Matches(Key("70096AD1")), Equals, true)
c.Check(Key("70096AD1").Matches(Key("EC4B033C")), Equals, false)
c.Check(Key("37E1C17570096AD1").Matches(Key("70096AD1")), Equals, true)
c.Check(Key("70096AD1").Matches(Key("EC4B033C70096AD1")), Equals, true)
}