Skip to content

Commit

Permalink
Test Date32 range
Browse files Browse the repository at this point in the history
  • Loading branch information
xzkostyan committed Apr 23, 2024
1 parent 2b35f97 commit cc8ef82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/columns/test_date.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,12 @@ def test_boundaries_1900(self):

def test_boundaries(self):
with self.create_table('a Date32'):
data = [(date(1925, 1, 1), ), (date(2283, 11, 11), )]
data = [(date(1925, 1, 1), ), (date(2299, 12, 31), )]
self.client.execute('INSERT INTO test (a) VALUES', data)

query = 'SELECT * FROM test'
inserted = self.emit_cli(query)
self.assertEqual(inserted, '1925-01-01\n2283-11-11\n')
self.assertEqual(inserted, '1925-01-01\n2299-12-31\n')

inserted = self.client.execute(query)
self.assertEqual(inserted, data)

0 comments on commit cc8ef82

Please sign in to comment.