SHARE
TWEET

Untitled

a guest Oct 16th, 2019 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top