Tinytest.add('Autolinker - phone', function(test) {
test.equal(Autolinker.link('12345678'), '12345678');
test.equal(Autolinker.link('1692089-4635'), '1692089-4635');
test.equal(Autolinker.link('16920894635'), '16920894635');
test.equal(Autolinker.link('(16)99202-4635'), '(16)99202-4635');
test.equal(Autolinker.link('(16) 92089-4635'), '(16) 92089-4635');
test.equal(Autolinker.link('(15) 4343-4343'), '(15) 4343-4343');
test.equal(Autolinker.link('+55 15 3702-7523'), '+55 15 3702-7523');
test.equal(Autolinker.link('(+55) 15 3702-7523'), '(+55) 15 3702-7523');
test.equal(Autolinker.link('(+55)1537027523'), '(+55)1537027523');
test.equal(Autolinker.link('(+55)(15)3702-7523'), '(+55)(15)3702-7523');
test.equal(Autolinker.link('(+55) 15 3702-7523'), '(+55) 15 3702-7523');
test.equal(Autolinker.link('(+55) 15 99202-7523'), '(+55) 15 99202-7523');
test.equal(Autolinker.link('9202-4635'), '9202-4635');
test.equal(Autolinker.link('(16) 9208-4635'), '(16) 9208-4635');
test.equal(Autolinker.link('51-12345678'), '51-12345678');
test.equal(Autolinker.link('51-1234-5678'), '51-1234-5678');
test.equal(Autolinker.link('texto 12345678'), 'texto 12345678');
test.equal(Autolinker.link('texto 1692089-4635'), 'texto 1692089-4635');
test.equal(Autolinker.link('texto 16920894635'), 'texto 16920894635');
test.equal(Autolinker.link('texto (16)99202-4635'), 'texto (16)99202-4635');
test.equal(Autolinker.link('texto (16) 92089-4635'), 'texto (16) 92089-4635');
test.equal(Autolinker.link('texto (15) 4343-4343'), 'texto (15) 4343-4343');
test.equal(Autolinker.link('texto +55 15 3702-7523'), 'texto +55 15 3702-7523');
test.equal(Autolinker.link('texto (+55) 15 3702-7523'), 'texto (+55) 15 3702-7523');
test.equal(Autolinker.link('texto (+55)1537027523'), 'texto (+55)1537027523');
test.equal(Autolinker.link('texto (+55)(15)3702-7523'), 'texto (+55)(15)3702-7523');
test.equal(Autolinker.link('texto (+55) 15 3702-7523'), 'texto (+55) 15 3702-7523');
test.equal(Autolinker.link('texto (+55) 15 99202-7523'), 'texto (+55) 15 99202-7523');
test.equal(Autolinker.link('texto 9202-4635'), 'texto 9202-4635');
test.equal(Autolinker.link('texto (16) 9208-4635'), 'texto (16) 9208-4635');
test.equal(Autolinker.link('texto 51-12345678'), 'texto 51-12345678');
test.equal(Autolinker.link('texto 51-1234-5678'), 'texto 51-1234-5678');
test.equal(Autolinker.link('12345678 texto'), '12345678 texto');
test.equal(Autolinker.link('1692089-4635 texto'), '1692089-4635 texto');
test.equal(Autolinker.link('16920894635 texto'), '16920894635 texto');
test.equal(Autolinker.link('(16)99202-4635 texto'), '(16)99202-4635 texto');
test.equal(Autolinker.link('(16) 92089-4635 texto'), '(16) 92089-4635 texto');
test.equal(Autolinker.link('(15) 4343-4343 texto'), '(15) 4343-4343 texto');
test.equal(Autolinker.link('+55 15 3702-7523 texto'), '+55 15 3702-7523 texto');
test.equal(Autolinker.link('(+55) 15 3702-7523 texto'), '(+55) 15 3702-7523 texto');
test.equal(Autolinker.link('(+55)1537027523 texto'), '(+55)1537027523 texto');
test.equal(Autolinker.link('(+55)(15)3702-7523 texto'), '(+55)(15)3702-7523 texto');
test.equal(Autolinker.link('(+55) 15 3702-7523 texto'), '(+55) 15 3702-7523 texto');
test.equal(Autolinker.link('(+55) 15 99202-7523 texto'), '(+55) 15 99202-7523 texto');
test.equal(Autolinker.link('9202-4635 texto'), '9202-4635 texto');
test.equal(Autolinker.link('(16) 9208-4635 texto'), '(16) 9208-4635 texto');
test.equal(Autolinker.link('51-12345678 texto'), '51-12345678 texto');
test.equal(Autolinker.link('51-1234-5678 texto'), '51-1234-5678 texto');
test.equal(Autolinker.link('texto 12345678 texto'), 'texto 12345678 texto');
test.equal(Autolinker.link('texto 1692089-4635 texto'), 'texto 1692089-4635 texto');
test.equal(Autolinker.link('texto 16920894635 texto'), 'texto 16920894635 texto');
test.equal(Autolinker.link('texto (16)99202-4635 texto'), 'texto (16)99202-4635 texto');
test.equal(Autolinker.link('texto (16) 92089-4635 texto'), 'texto (16) 92089-4635 texto');
test.equal(Autolinker.link('texto (15) 4343-4343 texto'), 'texto (15) 4343-4343 texto');
test.equal(Autolinker.link('texto +55 15 3702-7523 texto'), 'texto +55 15 3702-7523 texto');
test.equal(Autolinker.link('texto (+55) 15 3702-7523 texto'), 'texto (+55) 15 3702-7523 texto');
test.equal(Autolinker.link('texto (+55)1537027523 texto'), 'texto (+55)1537027523 texto');
test.equal(Autolinker.link('texto (+55)(15)3702-7523 texto'), 'texto (+55)(15)3702-7523 texto');
test.equal(Autolinker.link('texto (+55) 15 3702-7523 texto'), 'texto (+55) 15 3702-7523 texto');
test.equal(Autolinker.link('texto (+55) 15 99202-7523 texto'), 'texto (+55) 15 99202-7523 texto');
test.equal(Autolinker.link('texto 9202-4635 texto'), 'texto 9202-4635 texto');
test.equal(Autolinker.link('texto (16) 9208-4635 texto'), 'texto (16) 9208-4635 texto');
test.equal(Autolinker.link('texto 51-12345678 texto'), 'texto 51-12345678 texto');
test.equal(Autolinker.link('texto 51-1234-5678 texto'), 'texto 51-1234-5678 texto');
});