-
Notifications
You must be signed in to change notification settings - Fork 635
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
DYN1198- Heterogeneous list update gives infinite loop #9408
Merged
Merged
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
7156f6e
Add check for invalid cutom node name
reddyashish 5c88c44
Removing trailing spaces
reddyashish 827b090
Merge branch 'master' of https://github.com/DynamoDS/Dynamo
reddyashish d055de4
Moving the function to utilities class
reddyashish 085fb51
Merge branch 'master' of https://github.com/DynamoDS/Dynamo
reddyashish 12538ab
Revert "Merge branch 'master' of https://github.com/DynamoDS/Dynamo"
reddyashish 101857b
Revert "Revert "Merge branch 'master' of https://github.com/DynamoDS/…
reddyashish 5659d22
Merge branch 'master' of https://github.com/DynamoDS/Dynamo
reddyashish c3a97df
Merge branch 'master' of https://github.com/DynamoDS/Dynamo
reddyashish 6987cfa
Adding tests - QNTM-3928
reddyashish 68194bd
Comments
reddyashish 77193b5
Moving the test to NodeViewCustomizationTests.cs
reddyashish 3b522b1
Deleting changes to SerializationTests.cs
reddyashish 2b85fc0
Merge branch 'master' of https://github.com/DynamoDS/Dynamo
reddyashish 68eeba9
Create SerializationTests.cs
reddyashish 4a76a7a
Update SerializationTests.cs
reddyashish bb11dd8
moving the test to UtilityTests.ca
reddyashish 9b37a3d
Merge branch 'master' of https://github.com/DynamoDS/Dynamo
reddyashish e8d7b8a
Heterogeneous list update gives infinite loop
reddyashish d91009e
Moving the test dyn file
reddyashish 02b0d99
Revert "Moving the test dyn file"
reddyashish 71f2ca4
Revert "Heterogeneous list update gives infinite loop"
reddyashish 11693cd
Merge branch 'master' of https://github.com/reddyashish/Dynamo
reddyashish 1458b46
making Surface.join node obsolete
reddyashish a4e0e98
Revert "making Surface.join node obsolete"
reddyashish ee59554
Merge branch 'master' of https://github.com/DynamoDS/Dynamo
reddyashish 2ed772f
Obsoleting Surface,Join node.
reddyashish 52b95a0
Heterogenous list crash fix
reddyashish 9a0681b
Merge branch 'master' of https://github.com/DynamoDS/Dynamo into DYN1198
reddyashish 10c3c3e
Revert "Obsoleting Surface,Join node."
reddyashish 37678d6
Adding test case for heterogeneous list crash
reddyashish 8f19619
Adding tests
reddyashish 2c1fe9c
Adding new test
reddyashish 9929026
fix remaining edge cases
aparajit-pratap 4f3f6d9
revert assemblysharedinfo file
aparajit-pratap 5d75240
Updating failing tests
reddyashish b21d0d5
add new method to prevent API break
aparajit-pratap 0fd9e37
Merge branch 'DYN1198' of https://github.com/reddyashish/Dynamo into …
aparajit-pratap c26dcac
simplify SelectMany
aparajit-pratap File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1069,6 +1069,51 @@ public void TestTryGetValuesFromDictionary08() | |
thisTest.Verify("r", null); | ||
} | ||
|
||
[Test] | ||
public void TestTryGetValuesFromDictionary09() | ||
{ | ||
string code = @" | ||
a = { ""in"" : 42, ""out"" : 24 }; | ||
b = { ""in"" : 24, ""out"" : 42 }; | ||
c = [[a],[[b]]]; | ||
r1 = Dictionary.ValueAtKey(c, ""in""); | ||
r2 = Dictionary.ValueAtKey(c, ""out""); | ||
"; | ||
var mirror = thisTest.RunScriptSource(code); | ||
thisTest.Verify("r1", new object[] { new object[] { 42 } , new object[] { new object[] { 24 } } }); | ||
thisTest.Verify("r2", new object[] { new object[] { 24 } , new object[] { new object[] { 42 } } }); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what are the results of this test before and after this PR? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
} | ||
|
||
[Test] | ||
public void TestTryGetValuesFromDictionary10() | ||
{ | ||
string code = @" | ||
a = { ""in"" : 42, ""out"" : 24 }; | ||
b = { ""in"" : 24, ""out"" : 42 }; | ||
c = [[[a]],b]; | ||
r1 = Dictionary.ValueAtKey(c, ""in""); | ||
r2 = Dictionary.ValueAtKey(c, ""out""); | ||
"; | ||
var mirror = thisTest.RunScriptSource(code); | ||
thisTest.Verify("r1", new object[] { new object[] { new object[] { 42 } }, 24 }); | ||
thisTest.Verify("r2", new object[] { new object[] { new object[] { 24 } }, 42 }); | ||
} | ||
|
||
[Test] | ||
public void TestTryGetValuesFromDictionary11() | ||
{ | ||
string code = @" | ||
a = [ ""in"" , 42, ""out"" , 24 ]; | ||
b = { ""in"" : 24, ""out"" : 42 }; | ||
c = [a,[b]]; | ||
r1 = Dictionary.ValueAtKey(c, ""in""); | ||
r2 = Dictionary.ValueAtKey(c, ""out""); | ||
"; | ||
var mirror = thisTest.RunScriptSource(code); | ||
thisTest.Verify("r1", new object[] { new object[] { null, null, null, null }, new object[] { 24 } }); | ||
thisTest.Verify("r2", new object[] { new object[] { null, null, null, null }, new object[] { 42 } }); | ||
} | ||
|
||
[Test] | ||
public void TestGetKeysFromNonArray() | ||
{ | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nested Dictionaries work fine but fails when the level of nesting for list "a" i.e 1, is less than the nesting level of list "b" i.e 2.