Skip to content

Commit 714e56f

Browse files
author
James William Pye
committed
Exercise the new inet/cidr/macaddr type I/O with a few arrays.
1 parent a80e2a8 commit 714e56f

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

postgresql/test/test_driver.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,23 @@
304304
'::/0',
305305
],
306306
),
307+
('inet[]', [
308+
['127.0.0.1', '::1'],
309+
['10.0.0.1', 'fe80::1'],
310+
],
311+
),
312+
('cidr[]', [
313+
['127.0.0.0/8', '::/0'],
314+
['10.0.0.0/16', 'fe80::/64'],
315+
['10.102.0.0/16', 'fe80::/64'],
316+
],
317+
),
318+
('macaddr[]', [
319+
['00:00:00:00:00:00', 'ff:ff:ff:ff:ff:ff'],
320+
['00:00:00:00:00:01', '00:00:00:00:00:00', 'ff:ff:ff:ff:ff:ff'],
321+
['00:00:00:00:00:01', '00:00:00:00:00:00', 'ff:ff:ff:ff:ff:ff', '10:00:00:00:00:00'],
322+
],
323+
),
307324
]
308325

309326
class test_driver(unittest.TestCase):

0 commit comments

Comments
 (0)