File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -103,8 +103,8 @@ o = Dummy()
103103
104104# o.inexistent
105105assert _(o).inexistent is undefined
106- assert _(o).inexistent == None # Same to all below
107- assert not _(o).inexistent # Same to all below
106+ assert _(o).inexistent == None # undefined == None
107+ assert not _(o).inexistent # bool(undefined) == False
108108
109109# o.inexistent?.nested
110110assert _(o).inexistent.nested is undefined
@@ -125,8 +125,8 @@ o = Dummy() # dict works too !
125125
126126# o.inexistent
127127assert _(o)[" inexistent" ] is undefined
128- assert _(o)[" inexistent" ] == None # Same to all below
129- assert not _(o)[" inexistent" ] # Same to all below
128+ assert _(o)[" inexistent" ] == None # undefined == None
129+ assert not _(o)[" inexistent" ] # bool(undefined) == False
130130
131131# o.inexistent?.nested
132132assert _(o)[" inexistent" ][" nested" ] is undefined
@@ -150,8 +150,8 @@ o.nay = None
150150
151151# o.nay?.inexistent
152152assert _(o.nay).inexistent is undefined
153- assert _(o.nay).inexistent == None # Same to all below
154- assert not _(o.nay).inexistent # Same to all below
153+ assert _(o.nay).inexistent == None # undefined == None
154+ assert not _(o.nay).inexistent # bool(undefined) == False
155155
156156# o.nay?.inexistent.nested
157157assert _(o.nay).inexistent.nested is undefined
You can’t perform that action at this time.
0 commit comments