Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package common
- # ---------------------------------------------------------------------------------------------------------------------
- # Not Working
- # ---------------------------------------------------------------------------------------------------------------------
- list_should_not_contain(attributes_list, undesired_item) {
- list_item = attributes_list[_]
- list_item != undesired_item
- }
- # ---------------------------------------------------------------------------------------------------------------------
- # Working
- # ---------------------------------------------------------------------------------------------------------------------
- ### These ones are working ###
- # Determines if a dict/hash contains a key
- list_should_contain(attributes_list, desired_item) {
- list_item = attributes_list[_]
- list_item == desired_item
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement