Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
VB256 committed Mar 6, 2021
1 parent 738ce38 commit 106be03
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions test/TranslateTest.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"cell_type": "code",
"execution_count": 2,
"id": "thousand-layer",
"id": "legendary-cyprus",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -13,8 +13,8 @@
},
{
"cell_type": "code",
"execution_count": 3,
"id": "heated-viking",
"execution_count": 15,
"id": "invalid-banks",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -111,7 +111,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "31c3b1fd61914814bee2e5b5e90586e6",
"model_id": "fea9cdb438cd449284a7a42f94771d9b",
"version_major": 2,
"version_minor": 0
},
Expand Down Expand Up @@ -219,15 +219,15 @@
" circle(100, 100, 100)\n",
" fill_style(\"red\")\n",
" \n",
" # move by 0 units on the x-axis and 0 units on the y-axis --- should not change anything\n",
" translate(0, 0)\n",
" # move canvas 50 units right, and 75 units down\n",
" translate(50, 75)\n",
" circle(100, 100, 100)"
]
},
{
"cell_type": "code",
"execution_count": 13,
"id": "failing-brooks",
"execution_count": 3,
"id": "brown-shadow",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -324,7 +324,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "a5aa3bbeb47f406caa87f80e858cb20a",
"model_id": "31c3b1fd61914814bee2e5b5e90586e6",
"version_major": 2,
"version_minor": 0
},
Expand Down Expand Up @@ -432,15 +432,15 @@
" circle(100, 100, 100)\n",
" fill_style(\"red\")\n",
" \n",
" # move canvas 125 units left, and 10 units up\n",
" translate(-25, -10)\n",
" # move by 0 units on the x-axis and 0 units on the y-axis --- red circle should overlap with black circle\n",
" translate(0, 0)\n",
" circle(100, 100, 100)"
]
},
{
"cell_type": "code",
"execution_count": 14,
"id": "blind-issue",
"execution_count": 13,
"id": "quarterly-discretion",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -537,7 +537,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "e56d236f558345eba65586f98b4452ff",
"model_id": "a5aa3bbeb47f406caa87f80e858cb20a",
"version_major": 2,
"version_minor": 0
},
Expand Down Expand Up @@ -645,15 +645,15 @@
" circle(100, 100, 100)\n",
" fill_style(\"red\")\n",
" \n",
" # move canvas 30 units right, and 60 units up\n",
" translate(30, -60)\n",
" # move canvas 25 units left, and 10 units up\n",
" translate(-25, -10)\n",
" circle(100, 100, 100)"
]
},
{
"cell_type": "code",
"execution_count": 15,
"id": "previous-oklahoma",
"execution_count": 14,
"id": "african-orbit",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -750,7 +750,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "fea9cdb438cd449284a7a42f94771d9b",
"model_id": "e56d236f558345eba65586f98b4452ff",
"version_major": 2,
"version_minor": 0
},
Expand Down Expand Up @@ -858,15 +858,15 @@
" circle(100, 100, 100)\n",
" fill_style(\"red\")\n",
" \n",
" # move canvas 50 units right, and 75 units down\n",
" translate(50, 75)\n",
" # move canvas 30 units right, and 60 units up\n",
" translate(30, -60)\n",
" circle(100, 100, 100)"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "international-congress",
"id": "thick-dance",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -1079,7 +1079,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "architectural-diploma",
"id": "encouraging-bones",
"metadata": {},
"outputs": [],
"source": []
Expand Down

0 comments on commit 106be03

Please sign in to comment.