-
-
Notifications
You must be signed in to change notification settings - Fork 424
Complete implementation of operations on standard types #46
Comments
I will work on test_multiply_float for String |
I'm still working on test_add_bool for string |
working on test_add_list |
working on test_add_none for string |
working on test_multiply_none for string |
working on test_unary_positive and test_unary_negative for string |
working on test_subtract_str for String |
Working on test_floor_divide_str for string |
I'm sorry about that - I should have more carefully checked what was already being worked on. For what it's worth, tackling these operations one at a time for each pair probably isn't the best way to go about it. For example, if you resolve In #67 I set out to implement the A more natural division is by operation. For example, resolving all of the |
No worries! |
working on test_setattr for string |
I'm working on test_add_bool in in place string operations. |
I'm working on test_add_tuple in in-place string operations. |
Working on test_add_dict in in-place string operations. |
Working on test_add_float in in-place string operations. |
working on |
working on in-place additions to strings |
working on test_add_int |
working on test_pow_str |
working on test_multiply_bool |
working on Str inplace xor |
Working on str in-place addition to str (test_add_str in InplaceStrOperationTests) |
Working on 'test_add_set' in InplaceStrOperationTests |
Fix test_unary_negative and test_unary_invert in test_set |
working on all the |
Working on |
working on all |
Working on |
Working on |
Fixed tests.datatypes.test_bool.InplaceBoolOperationTests.test_true_divide_complex and tests.datatypes.test_bool.BinaryBoolOperationTests.test_true_divide_complex |
working on test.datatypes.test_str.StrTest.test_capitalize_no_args |
Can I take up test_truthiness |
I would like to work on test int - test_power_float. |
I want to contribute can somebody help. Where should I start. |
Working on tests.datatypes.test_range.BinaryRangeOperationTests.test_add_* and tests.datatypes.test_range.BinaryRangeOperationTests.test_and_* |
I am working on: |
I am working on BinaryBytearrayOperationTests.test_add_int |
I am working on: |
I am working on locals() function |
Working on test_conversion_types... done |
I am a new contributor and would like to work on test__mod__float. |
Hi, I would like to work on this project, Is it still open? Where can I contribute? |
Javascript has a specific set of allowed operator and operations. Python has a set of operators and operations as well. However, the two don't match exactly. For example, Javascript behavior for adding/multiplying with Strings leads to behaviour that is quite distinct to the behavior provided by Python.
In order to replicate Python behavior in Javascript, Python's logic for all the basic operations needs to be implemented in the Batavia support library.
The test suite contains around 10000 tests in the that are currently marked as "expected failures". These reflect an attempt to do "every operation between every base data type". The task: pick a data type, and write the implementation of one of the math operation or comparison operators.
The tests will pass (and become unexpected successes) when the output of Python code doing that operation is the same when run through CPython and Batavia - and I mean byte-identical, down to the text and punctuation of the error message if appropriate.
If you want to see an example of what is involved, check out the implementation of add for integers. If you have an int, Python will allows you to add an int or a float to it; all other types raise a TypeError. The list of operations on int that still need to be implemented can be found here; if you add a new operation, delete the line that corresponds to that test, and the test will report as a pass, rather than an expected fail.
The text was updated successfully, but these errors were encountered: