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

Another bug with sunion #26

Open
surli opened this issue May 16, 2013 · 8 comments
Open

Another bug with sunion #26

surli opened this issue May 16, 2013 · 8 comments
Labels

Comments

@surli
Copy link
Collaborator

surli commented May 16, 2013

Not sure if this bug is related to the #25

I execute the following script:
s1 = FM(Source: TI Criteria; TI: Forecast; Forecast: Weather2; Criteria: Date Location;)
s2 = FM(Source: TI Criteria; TI: Ephem; Criteria: Date; Date: Beginning; Beginning: Now;)
s3 = FM(Source: TI Criteria; TI: Calendar; Criteria: Location Duration Date;)

smerge = merge sunion s*
c = configuration smerge
select Forecast in c
println c

Given the FM s1 where all is mandatory I expect to obtain
selected [Source, TI, Criteria, Forecast, Weather2, Date, Location] deselected: [Duration, Beginning, Now, Calendar, Ephem]

However I obtain that :
selected: [Source, Date, TI, Weather2, Forecast, Criteria] deselected: [Duration, Beginning, Now, Calendar, Ephem]

Date and Location remain optional

surli added a commit that referenced this issue May 22, 2013
@FAMILIAR-project
Copy link
Owner

Location is not in fm2, so that seems normal, no ?

No problem for Data.

I commited a fix for your test (using FeatureIDE configuration facilities, always because of the problem with SAT4J -- in my setup, we use SAT4J 2.3.2 and so FeatureIDE)

@surli
Copy link
Collaborator Author

surli commented May 26, 2013

After the merge the feature Location is in a group optional and that is ok. But, there should be a constraint standing that if Forecast is selected, Location must be selected too, as Location is a mandatory feature in FM1 and Forecast appears only there.

So, in the end, when I select Forecast, Location should be automatically selected.

@FAMILIAR-project
Copy link
Owner

Fully agree.
I will try to fix it ASAP.

@FAMILIAR-project
Copy link
Owner

I implement a BDD-based implementation
See FMLConfigurationBDDTest

It seems working

@surli
Copy link
Collaborator Author

surli commented May 28, 2013

I have another issue with another FM with this implementation. I add a unit test.

surli added a commit that referenced this issue May 28, 2013
@FAMILIAR-project
Copy link
Owner

Fixed.

@surli
Copy link
Collaborator Author

surli commented May 29, 2013

New unit tests : isValid seems not work with the new implementation.

surli added a commit that referenced this issue May 29, 2013
surli added a commit that referenced this issue May 29, 2013
@surli
Copy link
Collaborator Author

surli commented May 29, 2013

Another bug found between internal and syntactic representation. Sorry I didn't found a simple example for the unit test...

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

No branches or pull requests

2 participants