{"action":"opened","issue":{"url":"https://api.github.com/repos/vexx32/PSKoans/issues/334","repository_url":"https://api.github.com/repos/vexx32/PSKoans","labels_url":"https://api.github.com/repos/vexx32/PSKoans/issues/334/labels{/name}","comments_url":"https://api.github.com/repos/vexx32/PSKoans/issues/334/comments","events_url":"https://api.github.com/repos/vexx32/PSKoans/issues/334/events","html_url":"https://github.com/vexx32/PSKoans/issues/334","id":541898426,"node_id":"MDU6SXNzdWU1NDE4OTg0MjY=","number":334,"title":"Foundations/AboutAssignmentAndArithmetic.Koans","user":{"login":"scottone","id":16723926,"node_id":"MDQ6VXNlcjE2NzIzOTI2","avatar_url":"https://avatars0.githubusercontent.com/u/16723926?v=4","gravatar_id":"","url":"https://api.github.com/users/scottone","html_url":"https://github.com/scottone","followers_url":"https://api.github.com/users/scottone/followers","following_url":"https://api.github.com/users/scottone/following{/other_user}","gists_url":"https://api.github.com/users/scottone/gists{/gist_id}","starred_url":"https://api.github.com/users/scottone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottone/subscriptions","organizations_url":"https://api.github.com/users/scottone/orgs","repos_url":"https://api.github.com/users/scottone/repos","events_url":"https://api.github.com/users/scottone/events{/privacy}","received_events_url":"https://api.github.com/users/scottone/received_events","type":"User","site_admin":false},"labels":[{"id":1084757160,"node_id":"MDU6TGFiZWwxMDg0NzU3MTYw","url":"https://api.github.com/repos/vexx32/PSKoans/labels/Category-Koans","name":"Category-Koans","color":"ddeeff","default":false,"description":"Invoking the Great Doubt"},{"id":1129218952,"node_id":"MDU6TGFiZWwxMTI5MjE4OTUy","url":"https://api.github.com/repos/vexx32/PSKoans/labels/Issue-Discussion","name":"Issue-Discussion","color":"06427a","default":false,"description":"Let's talk about it!"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-12-23T20:46:56Z","updated_at":"2019-12-23T20:46:56Z","closed_at":null,"author_association":"NONE","body":"# Describe \"Koan Bug, Issue, or Help Request\"\r\n\r\n<!-- List the koan file(s) you're experiencing issues with, as well as the folder(s) they're contained in. -->\r\nFoundations/AboutAssignmentAndArithmetic.Koans.ps1\r\n\r\n## Context \"The Problematic Assertions\"\r\n\r\n<!-- Mention the name(s) of the `It` blocks that contain the problematic code and copy-paste any especially relevant portions. -->\r\nThere are now 6 It blocks in this block:\r\nDescribe 'Assignment/Arithmetic Combination Operators'\r\nBlocks 1, 2, 6 assign an integer to $Value before the code that applies the operator.\r\nBlocks 3,4,5 (see below) do not, and the scoping of the IT blocks caught me off-guard.\r\nMy instinct was to assume that $Value was global to the Describe.\r\nThe previous version of this Koan put all assertions into a single IT block, which is good since the student has not yet studied the concept of scope.\r\n\r\nNote: block 4 has no work for the student.\r\n\r\nMy suggestion is to set $Value in each It block as done in the first 2, \r\nperhaps:\r\n``` $Value = 12```\r\n\r\n```\r\n#block3\r\nIt 'is also possible to combine subtraction with assignment' {\r\n        $Value -= 3\r\n        __ | Should -Be $Value\r\n    }\r\n\r\n#block4   \r\n   It 'works the same way with division' {\r\n        $Value /= 2\r\n        $Value | Should -Be 8\r\n    }\r\n\r\n#block5\r\n    It 'works with multiplication as well' {\r\n        $Value *= 3\r\n        __ | Should -Be $Value\r\n```\r\n"}}
{"actor":{"display_login":"scottone"}}