Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Fix Unit Test Failures for Classical Control#289

Merged
ScottCarda-MS merged 25 commits intofeatures/ClassicallyControlledfrom
sccarda/HoistFixes
Feb 7, 2020
Merged

Fix Unit Test Failures for Classical Control#289
ScottCarda-MS merged 25 commits intofeatures/ClassicallyControlledfrom
sccarda/HoistFixes

Conversation

@ScottCarda-MS
Copy link
Contributor

@ScottCarda-MS ScottCarda-MS commented Jan 22, 2020

This PR relies on PR #287.

Fixes an issue brought to light by the Classical Control unit test #9, where the conversion from an if/else statement to an ApplyIfElse statement assumed the condition compared against a result literal Zero.

Prevent Functions from being affected by the transformation.

Allow if blocks with a single non-call statement in them to be hoisted into their own operations.

Prevent hoisting of part of an if-structure.

Added feature support for Within blocks.

@ScottCarda-MS ScottCarda-MS requested review from AaronRM, bamarsha and bettinaheim and removed request for AaronRM January 22, 2020 02:52
@bettinaheim
Copy link
Contributor

@ScottCarda-MS I would suggest to make this a PR into sccarda/ClassicallyControlledUnitTests. Then the proper diff is visible.

Copy link
Contributor

@bettinaheim bettinaheim left a comment

Choose a reason for hiding this comment

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

Looks good! I love the tests - you did a really good job at composing a good set of unit tests!

Copy link
Contributor

@bettinaheim bettinaheim left a comment

Choose a reason for hiding this comment

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

As discussed, approving for the merge into the feature branch despite the two disabled tests. These will be reenabled after merging this, then merging the updates from master, and getting a runtime package with both changes in it.

@ScottCarda-MS ScottCarda-MS merged commit d9c5e97 into features/ClassicallyControlled Feb 7, 2020
@ScottCarda-MS ScottCarda-MS deleted the sccarda/HoistFixes branch February 13, 2020 00:21
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