{"action":"opened","issue":{"url":"https://api.github.com/repos/SpartanRefactoring/Spartanizer/issues/1061","repository_url":"https://api.github.com/repos/SpartanRefactoring/Spartanizer","labels_url":"https://api.github.com/repos/SpartanRefactoring/Spartanizer/issues/1061/labels{/name}","comments_url":"https://api.github.com/repos/SpartanRefactoring/Spartanizer/issues/1061/comments","events_url":"https://api.github.com/repos/SpartanRefactoring/Spartanizer/issues/1061/events","html_url":"https://github.com/SpartanRefactoring/Spartanizer/issues/1061","id":200241943,"number":1061,"title":"Binding tests should ignore names","user":{"login":"OriRoth","id":15183108,"avatar_url":"https://avatars.githubusercontent.com/u/15183108?v=3","gravatar_id":"","url":"https://api.github.com/users/OriRoth","html_url":"https://github.com/OriRoth","followers_url":"https://api.github.com/users/OriRoth/followers","following_url":"https://api.github.com/users/OriRoth/following{/other_user}","gists_url":"https://api.github.com/users/OriRoth/gists{/gist_id}","starred_url":"https://api.github.com/users/OriRoth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OriRoth/subscriptions","organizations_url":"https://api.github.com/users/OriRoth/orgs","repos_url":"https://api.github.com/users/OriRoth/repos","events_url":"https://api.github.com/users/OriRoth/events{/privacy}","received_events_url":"https://api.github.com/users/OriRoth/received_events","type":"User","site_admin":false},"labels":[{"id":372737154,"url":"https://api.github.com/repos/SpartanRefactoring/Spartanizer/labels/blocker","name":"blocker","color":"b60205","default":false}],"state":"open","locked":false,"assignee":{"login":"OriRoth","id":15183108,"avatar_url":"https://avatars.githubusercontent.com/u/15183108?v=3","gravatar_id":"","url":"https://api.github.com/users/OriRoth","html_url":"https://github.com/OriRoth","followers_url":"https://api.github.com/users/OriRoth/followers","following_url":"https://api.github.com/users/OriRoth/following{/other_user}","gists_url":"https://api.github.com/users/OriRoth/gists{/gist_id}","starred_url":"https://api.github.com/users/OriRoth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OriRoth/subscriptions","organizations_url":"https://api.github.com/users/OriRoth/orgs","repos_url":"https://api.github.com/users/OriRoth/repos","events_url":"https://api.github.com/users/OriRoth/events{/privacy}","received_events_url":"https://api.github.com/users/OriRoth/received_events","type":"User","site_admin":false},"assignees":[{"login":"OriRoth","id":15183108,"avatar_url":"https://avatars.githubusercontent.com/u/15183108?v=3","gravatar_id":"","url":"https://api.github.com/users/OriRoth","html_url":"https://github.com/OriRoth","followers_url":"https://api.github.com/users/OriRoth/followers","following_url":"https://api.github.com/users/OriRoth/following{/other_user}","gists_url":"https://api.github.com/users/OriRoth/gists{/gist_id}","starred_url":"https://api.github.com/users/OriRoth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OriRoth/subscriptions","organizations_url":"https://api.github.com/users/OriRoth/orgs","repos_url":"https://api.github.com/users/OriRoth/repos","events_url":"https://api.github.com/users/OriRoth/events{/privacy}","received_events_url":"https://api.github.com/users/OriRoth/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/SpartanRefactoring/Spartanizer/milestones/16","html_url":"https://github.com/SpartanRefactoring/Spartanizer/milestone/16","labels_url":"https://api.github.com/repos/SpartanRefactoring/Spartanizer/milestones/16/labels","id":2041407,"number":16,"title":"Sprint-2: Version 2.8","description":"End of semester release","creator":{"login":"yossigil","id":12775400,"avatar_url":"https://avatars.githubusercontent.com/u/12775400?v=3","gravatar_id":"","url":"https://api.github.com/users/yossigil","html_url":"https://github.com/yossigil","followers_url":"https://api.github.com/users/yossigil/followers","following_url":"https://api.github.com/users/yossigil/following{/other_user}","gists_url":"https://api.github.com/users/yossigil/gists{/gist_id}","starred_url":"https://api.github.com/users/yossigil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yossigil/subscriptions","organizations_url":"https://api.github.com/users/yossigil/orgs","repos_url":"https://api.github.com/users/yossigil/repos","events_url":"https://api.github.com/users/yossigil/events{/privacy}","received_events_url":"https://api.github.com/users/yossigil/received_events","type":"User","site_admin":false},"open_issues":91,"closed_issues":57,"state":"open","created_at":"2016-10-01T09:29:03Z","updated_at":"2017-01-11T23:53:28Z","due_on":"2017-01-26T08:00:00Z","closed_at":null},"comments":0,"created_at":"2017-01-11T23:53:28Z","updated_at":"2017-01-11T23:53:28Z","closed_at":null,"body":"We want to write binding tests for `Expander`s that produces new variables with names generated by `NameSpace`. We want to be independent of the internal implementation of `NameSpace`.\r\nThe algorithm I offer:\r\nWhen running `expansionOf(...).gives(...)` do:\r\n1. expand code\r\n2. in both *actual* and *expected* codes, replace all `Name`s with arbitrary names (such as `var1`, `var2` an so on) while preserving a map of transformations:\r\n* if the name appears in the map, replace it with the map's value\r\n* else generate a new arbitrary name and insert it into the map\r\n* example: `MyObject f() {MyObject $ = g(); return $;}` ==> `v1 v2() {v1 v3 = v4(); return v3;}`\r\n3. if the ASTs are *similar*, the equation wil be successful."}}
{"actor":{"display_login":"OriRoth"}}