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

Cannot use two Faker functions with optional data #760

Closed
jeremy-smith-maco opened this issue Jul 3, 2017 · 2 comments
Closed

Cannot use two Faker functions with optional data #760

jeremy-smith-maco opened this issue Jul 3, 2017 · 2 comments

Comments

@jeremy-smith-maco
Copy link

jeremy-smith-maco commented Jul 3, 2017

Something like this fails:

Random\Class:
  SomeClass:
    value: '50%? <numberBetween(1, 100)> : <numberBetween(-100, -1)>'

Fails with the exception:

Could not lex the value ">".

Whereas this passes:

Random\Class:
  SomeClass:
    value: '50%? <numberBetween(1, 100)> : ""'

Was working in Alice 2.x. Currently upgrading to 3.x.

Current workaround:

Random\Class:
  SomeClass:
    value1: '<numberBetween(1, 100)>'
    value2: '<numberBetween(-100, -1)>'
    value: '50%? $value1 : $value2'
@theofidry
Copy link
Member

Same as #761 I'm afraid :/

@theofidry
Copy link
Member

I'll be closing this one as per the discussion in #761, the real fix is in #601.

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

No branches or pull requests

2 participants