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

Add org/python/types/Object tests #905

Merged
merged 25 commits into from Aug 31, 2018
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
c842279
add object type tests
patiences Aug 10, 2018
8cde51f
add object type tests
patiences Aug 10, 2018
499f72b
Merge branch 'object-tests' of https://github.com/patiences/voc into …
patiences Aug 10, 2018
38c4c9a
Add operations tests for object and bug fixes
patiences Aug 16, 2018
32c3024
fix tests for builtins
patiences Aug 16, 2018
db0e58c
fix imul and unexpected successes
patiences Aug 16, 2018
9da07bb
fix test failures
patiences Aug 16, 2018
3fb9e6b
fix __getitem__ error message in Object.java
patiences Aug 16, 2018
df53ff4
fix javacheckstyle
patiences Aug 16, 2018
4a9bc7d
remove duplicated invert, pos, neg methods
patiences Aug 16, 2018
e96ba5b
fix trailing space
patiences Aug 16, 2018
cb9d10c
fix test failures
patiences Aug 16, 2018
17a62a8
add more obj tests to not_implemented
patiences Aug 17, 2018
56cced9
Reorder obj in SAMPLE_DATA
patiences Aug 17, 2018
b36b336
add flakey test
patiences Aug 17, 2018
6f5a8c1
fix test failures
patiences Aug 17, 2018
90997a5
remove object() datatype
patiences Aug 21, 2018
01e5d4d
add object() type and type(object, (object,), {})
patiences Aug 22, 2018
4c704f6
really add object() datatype
patiences Aug 22, 2018
3ca18dc
Merge branch 'master' into object-tests
patiences Aug 22, 2018
9805e5d
fix javacheckstyle
patiences Aug 22, 2018
d6cf509
retrigger build
patiences Aug 22, 2018
df710f0
fix javacheckstyle again
patiences Aug 22, 2018
1dbdf7b
fix test failures and unexpected successes
patiences Aug 22, 2018
a36073d
fix test failures again
patiences Aug 22, 2018
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Next

add object type tests

  • Loading branch information...
patiences committed Aug 10, 2018
commit c842279b6db756029a08376d485674e48fee0907
@@ -0,0 +1,26 @@
from unittest import expectedFailure

from .. utils import TranspileTestCase


class ObjectTests(TranspileTestCase):
@expectedFailure
def test_setitem(self):
self.assertCodeExecution("""
class MyClass:
def __setitem__(self, key, item):
print("In __setitem__")
obj = MyClass()
obj[0] = 0
""")

def test_getitem(self):
self.assertCodeExecution("""
class MyClass:
def __getitem__(self, key):
print("In __getitem__")
obj = MyClass()
print(obj[0])
""")
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.