Skip to content

Commit 316d186

Browse files
author
Pedro Pablo Bustamante Barrera
committed
chore: add tests and update README.md
1 parent 8e6cf09 commit 316d186

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Currently, this package supports the following formats:
1919
- CURP (Clave Única de Registro de Población, Mexican personal ID.)
2020
- DNI (Documento Nacional de Identidad, Argentinian national identity number).
2121
- EAN (International Article Number).
22+
- ISBN (International Standard Book Number).
2223
- NIT (Número De Identificación Tributaria, Colombian identity code).
2324
- RFC (Registro Federal de Contribuyentes, Mexican tax number).
2425
- RIF (Registro de Identificación Fiscal, Venezuelan VAT number).

src/test/scala/CurpSuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ class CURPSuite extends munit.FunSuite {
1717
}
1818

1919
test("validate invalid CURP") {
20-
val validCurp = CURP.validate("BOXW310820HNERXN08")
21-
assert(validCurp.isLeft)
20+
val invalidCurp = CURP.validate("BOXW310820HNERXN08")
21+
assert(invalidCurp.isLeft)
2222
}
2323

2424
test("isValid valid CURP") {

src/test/scala/RfcSuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ class RFCSuite extends munit.FunSuite {
2121
}
2222

2323
test("validate invalid RFC") {
24-
val validRfc = RFC.validate("VACE-460910-SX6")
25-
assert(validRfc.isLeft)
24+
val invalidRfc = RFC.validate("VACE-460910-SX6")
25+
assert(invalidRfc.isLeft)
2626
}
2727

2828
test("isValid valid RFC") {

src/test/scala/RutSuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ class RUTSuite extends munit.FunSuite {
1717
}
1818

1919
test("validate invalid RUT") {
20-
val validRut = RUT.validate("30.866.497-5")
21-
assert(validRut.isLeft)
20+
val invalidRut = RUT.validate("30.866.497-5")
21+
assert(invalidRut.isLeft)
2222
}
2323

2424
test("isValid valid RUT") {

0 commit comments

Comments
 (0)