Question: # Tests 1 0 points: Simple tests for AND nodes. s = AND _ OR _ Scheduler ( ) s . add _ and _

# Tests 10 points: Simple tests for AND nodes.
s = AND_OR_Scheduler()
s.add_and_task('a',['b','c'])
assert s.available_tasks =={'b','c'}
r = s.mark_completed('b')
assert r == set()
assert s.available_tasks =={'c'}
r = s.mark_completed('c')
assert r =={'a'}
assert s.available_tasks =={'a'}
r = s.mark_completed('a')
assert r == set()
assert s.available_tasks == set()
 # Tests 10 points: Simple tests for AND nodes. s =

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!