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

Valid but useless beam definition causes a test to fail #2

Open
zmitchell opened this issue Mar 19, 2019 · 0 comments
Open

Valid but useless beam definition causes a test to fail #2

zmitchell opened this issue Mar 19, 2019 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@zmitchell
Copy link
Owner

If you define a useless yet valid beam as follows

[beam]
polarization = "elliptical"
x_mag = 0
y_mag = 0
x_phase = 0
y_phase = 0
angle_units = "degrees"

it will trigger the following test failure:

---- validate::test::test_validate_elliptical_pol_rejects_invalid_def stdout ----
thread 'validate::test::test_validate_elliptical_pol_rejects_invalid_def' panicked at 'Test failed: assertion failed: validate_elliptical_pol(&def).is_err() at src\validate.rs:584; minimal failing input: def = BeamDef { polarization: Elliptical, angle: None, angle_units: None, x_mag: Some(-0.0), x_phase: Some(0.0), y_mag: Some(0.0), y_phase: Some(0.0), phase_units: Some(Degrees), handedness: None }
	successes: 134
	local rejects: 201
		201 times at float is not well-behaved
	global rejects: 0
', src\validate.rs:516:5
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
@zmitchell zmitchell added bug Something isn't working good first issue Good for newcomers labels Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant