Skip to content

Improve Concept Exercise: Poetry Club Door Policy (Concept strings) #1338

Closed

Description

@junedev

The goal of this task is to make sure the Concept Exercise "Poetry Club Door Policy" and the Concept strings conform to the latest specification.

The docs can be found here

Additionally you can look at the code of an existing concept exercise like bird-watcher (concept for-loops) for reference.

The improvement should include changing the introduction.md file of the exercise to contain some minimal information so that the student is able to solve the exercise. For now it is ok to use that same content as introduction.md and about.md for the Concept as well.

Also ensure that

Activity

  1. self-assigned this
    on Sep 11, 2021
  2. junedev commented on Sep 11, 2021

    @junedev
    MemberAuthor

    I am working on this.

  3. SleeplessByte commented on Sep 11, 2021

    @SleeplessByte
    Member
  4. changed the title [-]Improve Concept Exercise: Poetry Club Door Policy (strings)[/-] [+]Improve Concept Exercise: Poetry Club Door Policy (Concept `strings`)[/+] on Sep 11, 2021
  5. junedev commented on Sep 20, 2021

    @junedev
    MemberAuthor

    This is on hold currently because the Go track situation needed my help more urgently.

  6. junedev commented on Sep 24, 2021

    @junedev
    MemberAuthor

    From the editor bug reports:

    Error: expect(received).toBe(expected) // Object.is equality
    Expected: "Horse, please"
    Received: "E, please"
    at BackDoorGuard.assert (/door-policy.spec.js:90:22)

    Can not concat. when i put .concat(pleas) my console log shows ''Horse pleas'' and if i put .concat(please) my console log shows only ''e''

    The arguments "responses" and "word" for the Test 11 (strings > back door > backDoorGuard(SHIRE_HORSE_WITH_SPACES)) is just the last letter of what the function backDoorResponse() is returning. For some reason, this is just happening for this test.
    Example:
    The function backDoorResponse() returns in each iteration "h", "o", "r", "s", "e", but the arguments "responses" and "word" feeding its respectives functions (backDoorPassword() and capitalize()) for the back door part of the exercise just constains "e". It should contain "horse".

    According to my observations, the last test of this challenge is wrong because when I return the argument in the function, it goes like this " e" . It should have letters before that to solve that challenge, because even if I try to remove the whitespace I cannot fix it. Please help, I maybe mistaken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions