diff options
author | Laurens Valk <laurens@pybricks.com> | 2022-12-05 16:51:20 +0100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2024-07-25 11:57:13 +1000 |
commit | 19b1333cb1376ef60376a07e8e76a41854014840 (patch) | |
tree | 71527e14bca10b0be10e2e52c655baa35f39dfe5 /tests/misc/cexample_class.py.exp | |
parent | 7fe8f030eea0015962e729eae1f1c309dc83a469 (diff) | |
download | micropython-19b1333cb1376ef60376a07e8e76a41854014840.tar.gz micropython-19b1333cb1376ef60376a07e8e76a41854014840.zip |
examples/usercmodule/cexample: Add more advanced native class.
This adds a separate `AdvancedTimer` class that demonstrates a few more
advanced concepts usch as custom handlers for printing and attributes.
Signed-off-by: Laurens Valk <laurens@pybricks.com>
Diffstat (limited to 'tests/misc/cexample_class.py.exp')
-rw-r--r-- | tests/misc/cexample_class.py.exp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/misc/cexample_class.py.exp b/tests/misc/cexample_class.py.exp index b9a06602a3..a86d4d14f7 100644 --- a/tests/misc/cexample_class.py.exp +++ b/tests/misc/cexample_class.py.exp @@ -1,3 +1,9 @@ <Timer> True True +AdvancedTimer() +AdvancedTimer() # created 0 seconds ago +0 +123 +True +TypeError |