/* global it */
'use strict'

var assert = require('assert')
var fs = require('fs')
var ttf2eot = require('.')

it('bin compare - OS/2 version 0', function () {
  var src = new Uint8Array(fs.readFileSync('./fixtures/test_v0.ttf'))
  var dst = new Uint8Array(fs.readFileSync('./fixtures/test_v0.eot'))

  assert.deepEqual(ttf2eot(src), dst)
})

it('bin compare', function () {
  var src = new Uint8Array(fs.readFileSync('./fixtures/test.ttf'))
  var dst = new Uint8Array(fs.readFileSync('./fixtures/test.eot'))

  assert.deepEqual(ttf2eot(src), dst)
})
