add more test cases
This commit is contained in:
parent
a0d1af51c4
commit
74953429da
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user