Skip to content

Commit

Permalink
🔖 version 0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
RF-Tar-Railt committed Sep 17, 2023
1 parent 0a58b9c commit 98a409c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "tarina"
version = "0.3.3"
version = "0.4.0"
description = "A collection of common utils for Arclet"
authors = [
{name = "RF-Tar-Railt", email = "rf_tar_railt@qq.com"},
Expand Down
8 changes: 8 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,11 @@ def add_user(user: User):
return user

assert add_user("test", age=1) == User("test", 1)


def test_date_parser():
from tarina import DateParser
from datetime import datetime

assert DateParser.parse("2021-01-01") == datetime(2021, 1, 1)
assert DateParser.parse("2021-01-01 12:34:56") == datetime(2021, 1, 1, 12, 34, 56)

0 comments on commit 98a409c

Please sign in to comment.