Generating valid CPF

43 views
Skip to first unread message

Otávio Garcia

unread,
Dec 12, 2013, 2:01:49 PM12/12/13
to fixture...@googlegroups.com
Hi all. It's possible (easy) generate valid CPF using fixture-factory? I see that we can use regex, but I need valid numbers to test with validation.

Best regards

Arthur Hirata

unread,
Dec 12, 2013, 8:29:26 PM12/12/13
to fixture...@googlegroups.com
Hi Otavio,

You can use the CpfFunction:

add("cpf", new CpfFunction());

I hope that helps. Cheers!


Em Quinta-feira, 12 de Dezembro de 2013 17:01, Otávio Garcia <ota...@otavio.com.br> escreveu:
Hi all. It's possible (easy) generate valid CPF using fixture-factory? I see that we can use regex, but I need valid numbers to test with validation.

Best regards
--
Você está recebendo esta mensagem porque se inscreveu no grupo "fixture-factory" dos Grupos do Google.
Para cancelar a inscrição neste grupo e parar de receber seus e-mails, envie um e-mail para fixture-facto...@googlegroups.com.
Para obter mais opções, acesse https://groups.google.com/groups/opt_out.


Otávio Garcia

unread,
Dec 13, 2013, 12:14:16 PM12/13/13
to fixture...@googlegroups.com, Arthur Hirata
Oh, my bad. Thank you Hirata.

Regards
Reply all
Reply to author
Forward
0 new messages