-
-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #876 from TranscryptOrg/dev_3.9.3
Merge v3.9.3 updates to master Changelog: Added missing copysign and isclose functions to the math module (Issue 867) Updated the map function to allow for multiple iterators (Issue 862) Add key and default keyword arg support for min and max functions (Issue 305) Added string support for min and max functions (Issue 829) Added the copy module with copy and deepcopy functions (Issue 313) Fixed the disappearing kwargs issue for sort and sorted functions (Issue 687) Fixed the issue with sort and sorted functions that caused a string sort with number values (Issues 605 and 679) Fixed the issue with the sorted function that caused the original value to be modified (Issue 866) Added a bunch more autotests
- Loading branch information
Showing
15 changed files
with
339 additions
and
131 deletions.
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
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
23 changes: 23 additions & 0 deletions
23
transcrypt/development/automated_tests/transcrypt/module_copy/__init__.py
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import copy | ||
|
||
def run (autoTester): | ||
a = {'a': 1, 'b': 2, 'c': 3} | ||
b = copy.copy(a) | ||
c = [[1,2,3],[4,5,6]] | ||
d = copy.copy(c) | ||
e = copy.deepcopy(c) | ||
|
||
autoTester.check ('copy') | ||
autoTester.check (b) | ||
autoTester.check (a) | ||
a['b'] = 9 | ||
autoTester.check (a) | ||
autoTester.check (b) | ||
|
||
autoTester.check ('deepcopy') | ||
autoTester.check (d) | ||
autoTester.check (e) | ||
c[1][1] = 9 | ||
autoTester.check (c) | ||
autoTester.check (d) | ||
autoTester.check (e) |
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
11 changes: 11 additions & 0 deletions
11
transcrypt/development/automated_tests/transcrypt/transducers/__init__.py
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
def run (autoTester): | ||
autoTester.check ('filter', | ||
list (filter (lambda x: x % 2 == 0, range (10))), | ||
) | ||
|
||
autoTester.check ('map', | ||
list (map (lambda x: x* x, range(0, 31, 3))), | ||
list (map (lambda x, y: x * y, range(0, 31, 3), [1, 2, 3])), | ||
list (map (lambda x, y, z: x * y + z, range(0, 31, 3), [1, 2, 3, 4], (2, 4, 6))), | ||
) |
Oops, something went wrong.