Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hamelsmu committed Oct 5, 2024
1 parent d00b8e5 commit 48b54c6
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions nbs/00_core.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -906,12 +906,12 @@
]
},
{
"cell_type": "code",
"execution_count": null,
"cell_type": "raw",
"metadata": {},
"outputs": [],
"source": [
"#|hide\n",
"test_eq(get_typ(int), int)\n",
"test_eq(get_typ(Union[int, None]), int)\n",
"assert get_typ(_Test) != str\n",
"test_eq(get_typ(_Test2), str)\n",
"test_eq(get_typ(Union[_Test2, None]), str)\n",
Expand Down Expand Up @@ -1000,8 +1000,7 @@
"CREATE TABLE [cat] (\n",
" [id] INTEGER PRIMARY KEY,\n",
" [name] TEXT,\n",
" [age] INTEGER,\n",
" [city] TEXT\n",
" [weight] FLOAT\n",
")\n"
]
}
Expand All @@ -1018,7 +1017,7 @@
{
"data": {
"text/plain": [
"<Table cat (id, name, age, city)>"
"<Table cat (id, name, weight)>"
]
},
"execution_count": null,
Expand All @@ -1045,7 +1044,7 @@
{
"data": {
"text/plain": [
"<Table cat (id, name, age, city)>"
"<Table cat (id, name, weight)>"
]
},
"execution_count": null,
Expand Down Expand Up @@ -1091,8 +1090,7 @@
"CREATE TABLE [cat] (\n",
" [id] INTEGER PRIMARY KEY,\n",
" [name] TEXT,\n",
" [age] INTEGER,\n",
" [city] TEXT\n",
" [weight] FLOAT\n",
")\n"
]
}
Expand Down

0 comments on commit 48b54c6

Please sign in to comment.