Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

SPEC: box.getAnswerOptions(numberOfOptions) #26

Closed
hhzl opened this issue Nov 12, 2016 · 2 comments
Closed

SPEC: box.getAnswerOptions(numberOfOptions) #26

hhzl opened this issue Nov 12, 2016 · 2 comments

Comments

@hhzl
Copy link
Owner

hhzl commented Nov 12, 2016

Implement what is given by the following spec

  beforeEach(function() {
    questions  = new BoxOfQuestions("LWquestions");
  });

it("should be able to give a question, give options for answers and check the answer", function() {
    var q, a, opt, aChoice;

    q = questions.currQuestion();
    a = questions.currAnswer();
    opt = questions.currAnswerOptions(); // includes the correct answer
   
    questions.processAnswer(aChoice); 
    // add expect code here
    });
This was referenced Nov 12, 2016
@hhzl hhzl added this to the release 0.2 milestone Nov 15, 2016
@hhzl
Copy link
Owner Author

hhzl commented Dec 2, 2016

New:

getAnswerOptions(numberOfOptions)

Give back a shuffled array with numberOfOptions elements. It includes aWord.

@hhzl hhzl changed the title Implement currAnswerOptions() SPEC and implenet: box.getAnswerOptionsFor(aWord, numberOfOptions) Dec 3, 2016
@hhzl hhzl changed the title SPEC and implenet: box.getAnswerOptionsFor(aWord, numberOfOptions) SPEC and implement: box.getAnswerOptionsFor(aWord, numberOfOptions) Dec 3, 2016
@hhzl hhzl changed the title SPEC and implement: box.getAnswerOptionsFor(aWord, numberOfOptions) SPEC and implement: box.getAnswerOptions(numberOfOptions) Dec 3, 2016
@hhzl hhzl changed the title SPEC and implement: box.getAnswerOptions(numberOfOptions) SPEC: box.getAnswerOptions(numberOfOptions) Dec 3, 2016
@hhzl
Copy link
Owner Author

hhzl commented Dec 6, 2016

Not implemented yet. See replacement #79

@hhzl hhzl closed this as completed Dec 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant