-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
053d44d
commit 2eb72a7
Showing
1 changed file
with
15 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from tensorhue._print_opts import set_printoptions, PRINT_OPTS | ||
from tensorhue.colors import ColorScheme | ||
|
||
|
||
def test_default_print_opts(): | ||
assert PRINT_OPTS.threshold > 100 | ||
assert isinstance(PRINT_OPTS.colorscheme, ColorScheme) | ||
|
||
|
||
def test_set_printopts(): | ||
set_printoptions(threshold=1234) | ||
assert PRINT_OPTS.threshold == 1234 | ||
set_printoptions(edgeitems=4) | ||
assert PRINT_OPTS.edgeitems == 4 | ||
assert PRINT_OPTS.threshold == 1234 |