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

Dependencies on answers without reference identifiers #461

Open
flockom opened this issue Jul 24, 2013 · 1 comment
Open

Dependencies on answers without reference identifiers #461

flockom opened this issue Jul 24, 2013 · 1 comment

Comments

@flockom
Copy link
Contributor

flockom commented Jul 24, 2013

Currently we have:

q_montypython4 "What... is your quest? (e.g. To seek the Holy Grail)"
    a_1 :string
    dependency :rule => "A"
    condition_A :q_montypython3, "==", {:string_value => "It is 'Arthur', King of the Britons, :answer_reference => "1""}

But if you do:

    condition_A :q_montypython3, "==", {:string_value => "It is 'Arthur', King of the Britons"}

This will not work, but the parser will not complain about it.

The parser should complain and possibly it should be supported when a question has only one answer

@flockom
Copy link
Contributor Author

flockom commented Jul 24, 2013

see

self.context[:bad_references].push "q_#{dc.question_reference}, a_#{dc.answer_reference}" if !dc.answer_reference.blank? and (dc.answer = self.context[:answer_references][dc.question_reference][dc.answer_reference]).nil?

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