Skip to content

Commit

Permalink
Add validation test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenklar committed Jul 22, 2024
1 parent aebc842 commit 6706c04
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions rdmo/projects/tests/test_validator_value_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
('boolean', 't'),
('boolean', 'TrUe'), # spellchecker:disable-line
('boolean', 'FaLsE'), # spellchecker:disable-line
('boolean', 'true'),
('boolean', 'false'),
('date', '01.02.2024'),
('date', '1.2.2024'),
('date', '13.01.1337'),
Expand All @@ -42,6 +44,8 @@
('email', '[email protected]'),
('email', '[email protected]'),
('email', '[email protected]'),
('email', '[email protected]'),
('email', '[email protected]'),
('phone', '123456'),
('phone', '123 456'),
('phone', '362 123456'),
Expand All @@ -63,6 +67,8 @@
('boolean', '2'),
('boolean', '-1'),
('boolean', 'tr'),
('boolean', 'truee'),
('boolean', 'falze'),
('date', 'wrong'),
('date', '001.02.2024'),
('date', '01.02.20240'),
Expand All @@ -75,10 +81,14 @@
('datetime', '2024-13-02'),
('datetime', '2024-13-02Y10:00:00'),
('datetime', '2024-01-02T10:00:00ZZ+02:00'),
('datetime', '2024-01-02T25:00'),
('datetime', '2024-01-02T10:60:00'),
('email', 'wrong'),
('email', 'example.com'),
('email', [email protected]'),
('email', 'user@[email protected]'),
('email', 'user@com'),
('email', '[email protected]'),
('phone', 'wrong'),
('phone', '123456a'),
('phone', '123 456 a'),
Expand Down

0 comments on commit 6706c04

Please sign in to comment.