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

EMV2 validation exception when using branch probabilities with underscores. #1647

Closed
philip-alldredge opened this Issue Nov 20, 2018 · 0 comments

Comments

Projects
None yet
3 participants
@philip-alldredge
Copy link
Collaborator

philip-alldredge commented Nov 20, 2018

Summary

Branch probabilities are allowed to have underscores without affecting meaning. However, OSATE parses the branch probability's real value as a double which causes an exception.

Expected and Current Behavior

No exception should be thrown and the calculation show proceed.

Steps to Reproduce

Enter a branch probability containing an underscore. Validation error occurs.

package emv_test2
public
	annex EMV2 {**
		error behavior state_machine
		events
			sensor_failure: error event;
		states
			normal: initial state;
			recovering: state;
			failed: state;
		transitions
			new_transition: normal -[sensor_failure]-> (recovering with 0.2_0, failed with 0.8_0);
		end behavior;
	**};
end emv_test2;

stacktrace.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.