File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -163,6 +163,10 @@ def _str(tp):
163163 import pixie .vm .string as string
164164 return string .rt .wrap (u"<type " + tp ._name + u">" )
165165
166+ @extend (_repr , Type )
167+ def _repr (tp ):
168+ import pixie .vm .string as string
169+ return string .rt .wrap (tp ._name )
166170
167171@extend (_first , nil ._type )
168172def _first (_ ):
Original file line number Diff line number Diff line change 1515 (t/ assert = (str # {1}) "#{1}")
1616 (t/ assert = (str {}) " {}" )
1717 (t/ assert = (str {:a 1 }) " {:a 1}" )
18+ (t/ assert = (str (type 3 )) " <type pixie.stdlib.Integer>" )
1819
1920 (t/ assert = (str [1 {:a 1 } " hey" ]) " [1 {:a 1} hey]" ))
2021
3233 (t/ assert = (- repr # {1}) "#{1}")
3334 (t/ assert = (- repr {}) " {}" )
3435 (t/ assert = (- repr {:a 1 }) " {:a 1}" )
36+ (t/ assert = (- repr (type 3 )) " pixie.stdlib.Integer" )
3537
3638 (t/ assert = (- repr [1 {:a 1 } " hey" ]) " [1 {:a 1} \" hey\" ]" ))
3739
You can’t perform that action at this time.
0 commit comments