Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update for Bob #184

Merged
merged 2 commits into from
Jul 21, 2018
Merged

Update for Bob #184

merged 2 commits into from
Jul 21, 2018

Conversation

guygastineau
Copy link
Contributor

@guygastineau guygastineau commented Jul 20, 2018

After finally getting my local repo okay again

  1. Brought the bob_test.sh into compliance with the canonical-data - sort of
    • there is one extra test in the bash bob test. It test for no argument being treated like silence. I think it is fine to leave it in the test.
    • There is one test commented out because it behaves differently on mac an linux.
  2. Created the .meta/version file with contents 1.2.0
  3. Added a nested if in the original example.sh to get it to pass the forceful question test.
    • I also added a comment above the nested if to imitate the style found in example.sh.

closes #178


Reviewer Resources:

Track Policies

@budmc29
Copy link
Member

budmc29 commented Jul 21, 2018

@@ -1,23 +1,23 @@
#!/usr/bin/env bats

@test "stating something." {
#skip
##skip
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra #

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep I forgot to to :%s/#skip/skip/g in vim. thanks @budmc29

run bash bob.sh "Tom-ay-to, tom-aaaah-to."

[ "$status" -eq 0 ]
[ "$output" = "Whatever." ]
}

@test "shouting" {
skip
#skip
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All tests except the first one should be commented

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean only the first test should be commented?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.

@budmc29
Copy link
Member

budmc29 commented Jul 21, 2018

Besides the miner issues with the comments this looks good to go.

@@ -212,7 +196,7 @@
# This is commented out because it behaves differently on linux and mac
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's better to remove this test altogether, but it's your call.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll remove it. Thanks for the feedback.

@guygastineau
Copy link
Contributor Author

  1. fixed the commenting on skip in the test
  2. removed the commented out test

@budmc29
Copy link
Member

budmc29 commented Jul 21, 2018

Thank you for the PR.

@budmc29 budmc29 merged commit 31eaf17 into exercism:master Jul 21, 2018
@guygastineau guygastineau deleted the update-bob branch July 21, 2018 18:39
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bob_test.sh tests need fixing
2 participants