{"action":"created","issue":{"url":"https://api.github.com/repos/exercism/xrust/issues/96","repository_url":"https://api.github.com/repos/exercism/xrust","labels_url":"https://api.github.com/repos/exercism/xrust/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/exercism/xrust/issues/96/comments","events_url":"https://api.github.com/repos/exercism/xrust/issues/96/events","html_url":"https://github.com/exercism/xrust/pull/96","id":145464490,"number":96,"title":"dominoes: test singletons that can't be chained","user":{"login":"petertseng","id":346181,"avatar_url":"https://avatars.githubusercontent.com/u/346181?v=3","gravatar_id":"","url":"https://api.github.com/users/petertseng","html_url":"https://github.com/petertseng","followers_url":"https://api.github.com/users/petertseng/followers","following_url":"https://api.github.com/users/petertseng/following{/other_user}","gists_url":"https://api.github.com/users/petertseng/gists{/gist_id}","starred_url":"https://api.github.com/users/petertseng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petertseng/subscriptions","organizations_url":"https://api.github.com/users/petertseng/orgs","repos_url":"https://api.github.com/users/petertseng/repos","events_url":"https://api.github.com/users/petertseng/events{/privacy}","received_events_url":"https://api.github.com/users/petertseng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-03T07:27:41Z","updated_at":"2016-04-06T20:06:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/exercism/xrust/pulls/96","html_url":"https://github.com/exercism/xrust/pull/96","diff_url":"https://github.com/exercism/xrust/pull/96.diff","patch_url":"https://github.com/exercism/xrust/pull/96.patch"},"body":"Some solutions may automatically declare a singleton input to be valid\r\nwithout checking it can actually be chained. Singletons still need to be\r\nchecked because a singleton (1, 1) can be chained with itself, but\r\n(1, 2) can't. This adds a test for (1, 2). The test for (1, 1) already\r\nexisted.\r\n    \r\nThe example solution needs to be corrected to address this as well."},"comment":{"url":"https://api.github.com/repos/exercism/xrust/issues/comments/206535919","html_url":"https://github.com/exercism/xrust/pull/96#issuecomment-206535919","issue_url":"https://api.github.com/repos/exercism/xrust/issues/96","id":206535919,"user":{"login":"petertseng","id":346181,"avatar_url":"https://avatars.githubusercontent.com/u/346181?v=3","gravatar_id":"","url":"https://api.github.com/users/petertseng","html_url":"https://github.com/petertseng","followers_url":"https://api.github.com/users/petertseng/followers","following_url":"https://api.github.com/users/petertseng/following{/other_user}","gists_url":"https://api.github.com/users/petertseng/gists{/gist_id}","starred_url":"https://api.github.com/users/petertseng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petertseng/subscriptions","organizations_url":"https://api.github.com/users/petertseng/orgs","repos_url":"https://api.github.com/users/petertseng/repos","events_url":"https://api.github.com/users/petertseng/events{/privacy}","received_events_url":"https://api.github.com/users/petertseng/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T20:06:43Z","updated_at":"2016-04-06T20:06:43Z","body":"I just added the test to Swift as well, so indeed!\r\n\r\nWhy didn't we make `dominoes.json` sooner? Because until Swift implemented the exercise, Rust was the only language with the exercise so it wasn't particularly high value. At this point in time it would make sense to do so (and it will make even more sense as more tracks implement the exercise).\r\n\r\nIf nobody has done it by the weekend, I would like to do so, but anyone can feel free to beat me on the punch.\r\n\r\nOne note to leave in the json document - it's likely that the JSON document will only be able to express \"can a valid chain be made out of this domino list or not?\" - it may be up to the individual tracks to check the actual chains for validity.\r\n\r\n(The other possibility is to actively list out all possible chains but this gets highly complex with even just three dominoes `(1, 2), (2, 3), (3, 1)` since the possible chains are that order, any rotation of that order, and any rotation of that order with all dominoes reversed)"}}