MCPcopy Create free account
hub / github.com/Distributive-Network/PythonMonkey / Counter

Class Counter

tests/python/test_arrays.py:1021–1026  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1019 items = ['Four', 'Three', 'One']
1020
1021 class Counter:
1022 def __init__(self):
1023 self.count = 0
1024
1025 def increment(self, element, index, array):
1026 self.count += 1
1027
1028 obj = Counter()
1029 assert obj.count == 0

Callers 8

test_map_self_pymethodFunction · 0.85
test_some_self_pymethodFunction · 0.85
test_every_self_pymethodFunction · 0.85
test_find_self_pymethodFunction · 0.85

Calls

no outgoing calls

Tested by 8

test_map_self_pymethodFunction · 0.68
test_some_self_pymethodFunction · 0.68
test_every_self_pymethodFunction · 0.68
test_find_self_pymethodFunction · 0.68