Skip to content
This repository has been archived by the owner on May 31, 2020. It is now read-only.

Commit

Permalink
Merge pull request #860 from BPYap/add-set-related-expectedFailure-te…
Browse files Browse the repository at this point in the history
…sts-hash

Added test case for issue #859
  • Loading branch information
freakboy3742 authored Jul 6, 2018
2 parents 2849441 + 51ea0db commit 8bd98d7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/datatypes/test_set.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
from unittest import expectedFailure

from .. utils import TranspileTestCase, UnaryOperationTestCase, BinaryOperationTestCase, InplaceOperationTestCase


class SetTests(TranspileTestCase):
@expectedFailure
def test_equal_value_different_datatypes(self):
self.assertCodeExecution("""
x = {1, 1.0, True}
print("size of set is:", len(x))
for i in x:
print(i)
""")

def test_setattr(self):
self.assertCodeExecution("""
x = {1, 2, 3}
Expand Down

0 comments on commit 8bd98d7

Please sign in to comment.