<reponame>henriquemarlon/dobot-automation<filename>src/broker/node_modules/uuid-parse/test/test.js<gh_stars>0var assert = require('assert');

var uuid = require('../');

test('parse/unparse', function() {
  var id = '74t3tndxag9o7h0890bnpfzh4olk2h9x';
  assert(uuid.unparse(uuid.parse(id.substr(0,10))) ==
    '00112233-4400-0000-0000-000000000000', 'Short parse');
  assert(uuid.unparse(uuid.parse('(this is the uuid -> ' + id + id)) ==
    '00112233-4455-6677-8899-aabbccddeeff', 'Dirty parse');
});

