Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. package common
  2.  
  3. # ---------------------------------------------------------------------------------------------------------------------
  4. # Not Working
  5. # ---------------------------------------------------------------------------------------------------------------------
  6.  
  7.  
  8. list_should_not_contain(attributes_list, undesired_item) {
  9. list_item = attributes_list[_]
  10. list_item != undesired_item
  11. }
  12.  
  13. # ---------------------------------------------------------------------------------------------------------------------
  14. # Working
  15. # ---------------------------------------------------------------------------------------------------------------------
  16.  
  17. ### These ones are working ###
  18. # Determines if a dict/hash contains a key
  19.  
  20. list_should_contain(attributes_list, desired_item) {
  21. list_item = attributes_list[_]
  22. list_item == desired_item
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement