add more test cases

This commit is contained in:
Chris Cromer 2019-01-16 12:22:24 -03:00
parent a0d1af51c4
commit 74953429da
Signed by: cromer
GPG Key ID: 39CC813FF3C8708A

View File

@ -8,7 +8,12 @@ void add_rut_tests () {
assert (rut.get_rut () == "18.166.316-2"); assert (rut.get_rut () == "18.166.316-2");
assert (rut.type () == Rut.Type.RUN); assert (rut.type () == Rut.Type.RUN);
rut = new Rut ("20380508-k"); rut = new Rut ("181663162");
assert (rut.get_clean_rut () == "181663162");
assert (rut.get_rut () == "18.166.316-2");
assert (rut.type () == Rut.Type.RUN);
rut = new Rut ("20.380.508-k");
assert (rut.get_clean_rut () == "20380508K"); assert (rut.get_clean_rut () == "20380508K");
assert (rut.get_rut () == "20.380.508-K"); assert (rut.get_rut () == "20.380.508-K");
assert (rut.type () == Rut.Type.RUN); assert (rut.type () == Rut.Type.RUN);