Skip to content

Commit c66a5c4

Browse files
committed
Add year parsing test
1 parent ae624bc commit c66a5c4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

singlestoredb/tests/test_basics.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -987,6 +987,11 @@ def test_double_string(self):
987987
self.cur.execute(f"SELECT 1.2 :> DOUBLE, '{string}'")
988988
self.assertEqual((1.2, string), self.cur.fetchone())
989989

990+
def test_year_string(self):
991+
string = 'a' * 49
992+
self.cur.execute(f"SELECT 1999 :> YEAR, '{string}'")
993+
self.assertEqual((1999, string), self.cur.fetchone())
994+
990995

991996
if __name__ == '__main__':
992997
import nose2

0 commit comments

Comments
 (0)