-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
77 additions
and
91 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,20 @@ | ||
# coding=utf-8 | ||
import numpy as np | ||
from comptests import comptest, run_module_tests, comptest_fails | ||
from duckietown_visualodo.algo.utils import second_largest | ||
import duckietown_visualodo | ||
from duckietown_visualodo.algo.utils import second_largest, is_rotation_matrix | ||
|
||
|
||
|
||
|
||
@comptest | ||
def check_util(): | ||
def check_second_largest(): | ||
a = [1,2,3,4] | ||
assert(second_largest(a)==3) | ||
|
||
|
||
@comptest | ||
def check_is_rotation_matrix(): | ||
M = np.array([[1,0,0],[0,1,0],[0,0,1]]) | ||
assert is_rotation_matrix(M) | ||
|
||
|
||
if __name__ == '__main__': | ||
run_module_tests() |
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