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.

11 lines
351 B

4 years ago
  1. 'use strict'
  2. var assert = require('assert')
  3. var dnsEqual = require('./')
  4. assert.strictEqual(dnsEqual('Foo', 'foo'), true)
  5. assert.strictEqual(dnsEqual('FooÆØÅ', 'fooÆØÅ'), true)
  6. assert.strictEqual(dnsEqual('foo', 'bar'), false)
  7. assert.strictEqual(dnsEqual('FooÆØÅ', 'fooæøå'), false)
  8. assert.strictEqual(dnsEqual('café', 'cafe'), false)