-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into pmos
# Conflicts: # electronics_lib/__init__.py
- Loading branch information
Showing
150 changed files
with
161,692 additions
and
73,028 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import unittest | ||
|
||
from .TransformUtil import Path | ||
|
||
|
||
class PathTestCase(unittest.TestCase): | ||
def test_startswith(self) -> None: | ||
path = Path.empty() | ||
self.assertTrue(path.append_block('a', 'b').startswith(path.append_block('a'))) | ||
self.assertFalse(path.append_block('a').startswith(path.append_block('a', 'b'))) | ||
self.assertTrue(path.append_block('a').startswith(path.append_block('a'))) | ||
self.assertTrue(path.append_block('a', 'b').startswith(path.append_block('a', 'b'))) | ||
|
||
self.assertFalse(path.append_block('a').startswith(path.append_link('a'))) | ||
|
||
self.assertTrue(path.append_block('a').append_link('b').startswith(path.append_block('a'))) | ||
self.assertTrue(path.append_block('a').append_link('b').startswith(path.append_block('a').append_link('b'))) | ||
self.assertTrue(path.append_block('a').append_link('b', 'c').startswith(path.append_block('a').append_link('b'))) | ||
self.assertTrue(path.append_block('a').append_link('b', 'c').startswith(path.append_block('a').append_link('b', 'c'))) | ||
self.assertFalse(path.append_block('a').append_link('b').startswith(path.append_link('b'))) | ||
self.assertFalse(path.append_block('a').append_link('b').startswith(path.append_block('a', 'b'))) |
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
Oops, something went wrong.