{"action":"created","issue":{"url":"https://api.github.com/repos/MarkusAmshove/Kluent/issues/10","repository_url":"https://api.github.com/repos/MarkusAmshove/Kluent","labels_url":"https://api.github.com/repos/MarkusAmshove/Kluent/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/MarkusAmshove/Kluent/issues/10/comments","events_url":"https://api.github.com/repos/MarkusAmshove/Kluent/issues/10/events","html_url":"https://github.com/MarkusAmshove/Kluent/issues/10","id":189634416,"number":10,"title":"Add Assertions for Maps","user":{"login":"MarkusAmshove","id":2401875,"avatar_url":"https://avatars.githubusercontent.com/u/2401875?v=3","gravatar_id":"","url":"https://api.github.com/users/MarkusAmshove","html_url":"https://github.com/MarkusAmshove","followers_url":"https://api.github.com/users/MarkusAmshove/followers","following_url":"https://api.github.com/users/MarkusAmshove/following{/other_user}","gists_url":"https://api.github.com/users/MarkusAmshove/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkusAmshove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkusAmshove/subscriptions","organizations_url":"https://api.github.com/users/MarkusAmshove/orgs","repos_url":"https://api.github.com/users/MarkusAmshove/repos","events_url":"https://api.github.com/users/MarkusAmshove/events{/privacy}","received_events_url":"https://api.github.com/users/MarkusAmshove/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-16T08:54:17Z","updated_at":"2016-11-16T16:44:03Z","closed_at":null,"body":"According to PR #9 we should implement more operations to test Maps.\r\n\r\n- [x] shouldHaveKey (thanks to @goreRatzete )\r\n- [x] shouldNotHaveKey (thanks to @goreRatzete )\r\n- [ ] shouldHaveValue\r\n- [ ] shouldNotHaveValue"},"comment":{"url":"https://api.github.com/repos/MarkusAmshove/Kluent/issues/comments/260999977","html_url":"https://github.com/MarkusAmshove/Kluent/issues/10#issuecomment-260999977","issue_url":"https://api.github.com/repos/MarkusAmshove/Kluent/issues/10","id":260999977,"user":{"login":"goreRatzete","id":9032394,"avatar_url":"https://avatars.githubusercontent.com/u/9032394?v=3","gravatar_id":"","url":"https://api.github.com/users/goreRatzete","html_url":"https://github.com/goreRatzete","followers_url":"https://api.github.com/users/goreRatzete/followers","following_url":"https://api.github.com/users/goreRatzete/following{/other_user}","gists_url":"https://api.github.com/users/goreRatzete/gists{/gist_id}","starred_url":"https://api.github.com/users/goreRatzete/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goreRatzete/subscriptions","organizations_url":"https://api.github.com/users/goreRatzete/orgs","repos_url":"https://api.github.com/users/goreRatzete/repos","events_url":"https://api.github.com/users/goreRatzete/events{/privacy}","received_events_url":"https://api.github.com/users/goreRatzete/received_events","type":"User","site_admin":false},"created_at":"2016-11-16T16:44:03Z","updated_at":"2016-11-16T16:44:03Z","body":"Personally I also use the following for Maps to check if it contains an item: \r\n\r\n`infix fun <R, T> Map<R, T>.shouldContain(item: Pair<R, T>) = this[item.first] shouldEqual item.second`\r\n`val expect = 1 to \"one\"`\r\n `val map = mapOf(1 to \"one\", 2 to \"two\")`\r\n`map shouldContain expect`\r\n\r\nTo me it feels very natural, given that one can construct maps with the same syntax as a Pair.\r\n"}}
{"actor":{"display_login":"goreRatzete"}}