Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
51413c8c
Commit
51413c8c
authored
Apr 01, 2014
by
Paul Sokolovsky
Browse files
tests: Add test for implicit float to int conversion (not allowed!)
parent
e09320ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/basics/list1.py
View file @
51413c8c
...
...
@@ -20,3 +20,8 @@ print(x)
print
(
x
[
1
:])
print
(
x
[:
-
1
])
print
(
x
[
2
:
3
])
try
:
print
(
x
[
1.0
])
except
TypeError
:
print
(
"TypeError"
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment