Umlaute werden jetzt unterstützt (https://www.python-forum.de/viewtopic.php?t=5095) und Tests hinzugefügt
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
# -*- coding: iso-8859-15 -*
|
||||||
|
|
||||||
class Vector(object):
|
class Vector(object):
|
||||||
def __init__(self, coordinates):
|
def __init__(self, coordinates):
|
||||||
try:
|
try:
|
||||||
@@ -19,3 +21,8 @@ class Vector(object):
|
|||||||
|
|
||||||
def __eq__(self, v):
|
def __eq__(self, v):
|
||||||
return self.coordinates == v.coordinates
|
return self.coordinates == v.coordinates
|
||||||
|
|
||||||
|
# Tests
|
||||||
|
|
||||||
|
vektor_1 = Vector([1,2,3])
|
||||||
|
print vektor_1
|
||||||
Reference in New Issue
Block a user