Adding upstream version 6.0.4.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
d01130b3f1
commit
527597d2af
122 changed files with 23162 additions and 0 deletions
tests
14
tests/test_time.py
Normal file
14
tests/test_time.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
import unittest
|
||||
|
||||
from sqlglot.time import format_time
|
||||
|
||||
|
||||
class TestTime(unittest.TestCase):
|
||||
def test_format_time(self):
|
||||
self.assertEqual(format_time("", {}), "")
|
||||
self.assertEqual(format_time(" ", {}), " ")
|
||||
mapping = {"a": "b", "aa": "c"}
|
||||
self.assertEqual(format_time("a", mapping), "b")
|
||||
self.assertEqual(format_time("aa", mapping), "c")
|
||||
self.assertEqual(format_time("aaada", mapping), "cbdb")
|
||||
self.assertEqual(format_time("da", mapping), "db")
|
Loading…
Add table
Add a link
Reference in a new issue