Skip to content
This repository was archived by the owner on Mar 2, 2020. It is now read-only.

Ceg benchmark german #473

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from
Open

Ceg benchmark german #473

wants to merge 6 commits into from

Conversation

wehrlean
Copy link
Collaborator

@wehrlean wehrlean commented Aug 2, 2019

wehrlean added 6 commits July 8, 2019 09:09
Conflicts:
	bundles/specmate-integration-test/src/com/specmate/test/integration/ModelGenerationTestDe.java
	bundles/specmate-integration-test/src/com/specmate/test/integration/ModelGenerationTestEn.java
@wehrlean wehrlean requested a review from junkerm August 2, 2019 11:00
Copy link
Owner

@junkerm junkerm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • one of the model generation tests is failing
  • a small comment regarding one of the utitlity functions
  • please merge develop into this branch to check if all tests still run after that

* @param s2
* @return
*/
private boolean checkStringEquality(String s1, String s2) {
Copy link
Owner

@junkerm junkerm Aug 26, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method seems overly complex due to the many splits and replaces of differnt kinds of whitspace. How about:

  1. split strings with regex e.g. using \s* (any whitespace, any number of times)
  2. Add all non empty parts into a set
  3. Compare sets using equals

Additionally: I would opt to crate a class "TextUtit" in specmate-common and move the method there as a static method. I guess we can move more such methods there over time.

@wehrlean
Copy link
Collaborator Author

Test

1 similar comment
@wehrlean
Copy link
Collaborator Author

Test

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

Successfully merging this pull request may close these issues.

2 participants