types: remove ECCurve
This commit is contained in:
parent
752cf4b6c1
commit
b252924517
2 changed files with 8 additions and 6 deletions
test
|
@ -4,11 +4,15 @@ var assert = require('assert')
|
|||
var types = require('../src/types')
|
||||
|
||||
describe('types', function () {
|
||||
describe('ECCurve/ECPoint/BigInt', function () {
|
||||
describe('BigInt/ECPoint', function () {
|
||||
it('return true for duck types', function () {
|
||||
assert(types.quacksLike('BigInteger', function BigInteger () {}))
|
||||
assert(types.quacksLike('Curve', function Curve () {}))
|
||||
assert(types.quacksLike('Point', function Point () {}))
|
||||
assert(types.BigInt(new function BigInteger () {}))
|
||||
assert(types.ECPoint(new function Point () {}))
|
||||
})
|
||||
|
||||
it('return false for bad types', function () {
|
||||
assert(!types.BigInt(new function NotABigInteger () {}))
|
||||
assert(!types.ECPoint(new function NotAPoint () {}))
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue