-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncomment RSN4 test that now works. #151
Conversation
👍 |
The test is marked has pending: |
Ok, didn't see that in the commit as it was off the page, thanks |
The test is failing. I made a test: class Item {
var name: String = ""
init(name: String) {
self.name = name
}
}
class Collection {
var dictionary = NSMutableDictionary()
func add(name: String) -> Item {
dictionary[name] = Item(name: name)
return dictionary[name] as! Item
}
func release(item: Item) {
dictionary.removeObjectForKey(item.name)
}
}
let items = Collection()
weak var item1: Item! = items.add("asjflkajsdf")
print(item1.name)
items.release(item1)
print(item1.name) //<-- EXC_BAD_INSTRUCTION 💥 And The |
Ok, leave for now and we'll fix later. Let's see how the write tests approach works over the next few days |
Ok 👍 |
Oh, come on... Maybe we can just write this test in Obj-C for now. Anyway, if it's pending it shouldn't be also commented, don't you think? |
Yes. First I commented it and then I found out about |
So should I merge this anyway? |
Uncomment RSN4 test that now works.
No description provided.