We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Today we have the following problem:
Fixture.of(User.class).addTemplate("valid", new Rule() {{ add("email", "${name}@gmail.com"); add("name", random("nykolas", "otavio")); }};
The above code fails because email depends on name but when email is evaluated, name was not evaluated yet.
name
email
@Tavio has solved this problem on Angular-Fixture-Factory(https://github.com/Tavio/angular-fixture-factory) project using Topological sort(http://en.wikipedia.org/wiki/Topological_sorting) https://github.com/Tavio/angular-fixture-factory/blob/master/angular-fixture-factory.js#L264-L312
We can use the same approach here.
The text was updated successfully, but these errors were encountered:
"Beware of bugs in the above code; I have only proved it correct, not tried it." - Knuth, Donald.
Sorry, something went wrong.
This issue shouldn't be closed? @nykolaslima
And could you generate a new version with the PR #77?
This is indeed already merged via #77
Thank you guys.
No branches or pull requests
Today we have the following problem:
The above code fails because email depends on
name
but whenemail
is evaluated,name
was not evaluated yet.@Tavio has solved this problem on Angular-Fixture-Factory(https://github.com/Tavio/angular-fixture-factory) project using Topological sort(http://en.wikipedia.org/wiki/Topological_sorting)
https://github.com/Tavio/angular-fixture-factory/blob/master/angular-fixture-factory.js#L264-L312
We can use the same approach here.
The text was updated successfully, but these errors were encountered: