You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
440 B
14 lines
440 B
/* global describe, it */
|
|
|
|
var assert = require('assert')
|
|
var types = require('../src/types')
|
|
|
|
describe('types', function () {
|
|
describe('ECCurve/ECPoint/BigInt', 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 () {}))
|
|
})
|
|
})
|
|
})
|
|
|