mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-07 01:48:02 +00:00
Simplified challenge coding and unit tests by working with the node directly as opposed to node.id or node.data, which is more natural when writing coding challenges.
This commit is contained in:
@@ -4,7 +4,10 @@ class Results(object):
|
||||
self.results = []
|
||||
|
||||
def add_result(self, result):
|
||||
self.results.append(result)
|
||||
# TODO: Clean this up
|
||||
# Simplifies challenge coding and unit testing
|
||||
# but makes this function look less appealing
|
||||
self.results.append(int(str(result)))
|
||||
|
||||
def clear_results(self):
|
||||
self.results = []
|
||||
|
||||
Reference in New Issue
Block a user