problem set 6 here z my code http://pastebin.com/tQNBiaRn the code z nt working properly :-( plz help
The trigger instance must be returned to the caller function if either of the conditions is satisfied
THIS IS MY OUTPUT Trigger file: t1 TITLE NASA **** RUNNING MAKETRIGGER ON TRIGGER FILE **** True --> Is trigger t1 in triggerMap? False **** ERROR: Length of triggerMap should be 1; it is: 0 REQUIRED OUTPUT IS Trigger file: t1 TITLE NASA **** RUNNING MAKETRIGGER ON TRIGGER FILE **** TitleTrigger made with word: NASA --> Is trigger t1 in triggerMap? True
your problem is here: "This helper function should build and return a trigger depending on its type. It also keeps track of triggers and names in a map." your function does not keep track of them in a map (or else called dictionary).
"Modifies triggerMap, adding a new key-value pair for this trigger."
did it :-)
Join our real-time social learning platform and learn together with your friends!