mirror of https://github.com/arendst/Tasmota.git
9 lines
138 B
Plaintext
9 lines
138 B
Plaintext
|
#- toint() converts any instance to int -#
|
||
|
class Test_int
|
||
|
def toint()
|
||
|
return 42
|
||
|
end
|
||
|
end
|
||
|
t=Test_int()
|
||
|
assert(int(t) == 42)
|