Skip to content

Commit

Permalink
make set test less restrictive (microsoft#5510)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanMatthewHuff authored Apr 29, 2019
1 parent 8cd0996 commit 97e9495
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/test/datascience/variableexplorer.functional.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ myDict = {'a': 1}`;
// tslint:disable-next-line:quotemark
{name: 'myDict', value: "{'a': 1}", supportsDataExplorer: true, type: 'dict', size: 54, shape: '', count: 0, truncated: false},
{name: 'myList', value: '[1, 2, 3]', supportsDataExplorer: true, type: 'list', size: 54, shape: '', count: 0, truncated: false},
{name: 'mySet', value: '{42}', supportsDataExplorer: true, type: 'set', size: 54, shape: '', count: 0, truncated: false}
// Set can vary between python versions, so just don't both to check the value, just see that we got it
{name: 'mySet', value: undefined, supportsDataExplorer: true, type: 'set', size: 54, shape: '', count: 0, truncated: false}
];
verifyVariables(wrapper, targetVariables);
}, () => { return ioc; });
Expand Down Expand Up @@ -318,7 +319,9 @@ function verifyRow(rowWrapper: ReactWrapper<any, Readonly<{}>, React.Component>,
verifyCell(rowCells.at(2), targetVariable.count.toString(), targetVariable.name);
}

verifyCell(rowCells.at(3), targetVariable.value ? targetVariable.value : '', targetVariable.name);
if (targetVariable.value) {
verifyCell(rowCells.at(3), targetVariable.value, targetVariable.name);
}
}

// Verify a single cell value against a specific target value
Expand Down

0 comments on commit 97e9495

Please sign in to comment.