8000 Add a test · matplotlib/matplotlib@147890e · GitHub
[go: up one dir, main page]

Skip to content

Commit 147890e

Browse files
committed
Add a test
1 parent d94a6a5 commit 147890e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/matplotlib/tests/test_font_manager.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@ def test_font_priority():
3131
assert cmap[8729] == 30
3232

3333

34+
def test_score_weight():
35+
assert (0 ==
36+
fontManager.score_weight("regular", "regular") ==
37+
fontManager.score_weight("bold", "bold") <
38+
fontManager.score_weight("normal", "regular") ==
39+
fontManager.score_weight(400, 400) <
40+
fontManager.score_weight("normal", "bold"))
41+
42+
3443
def test_json_serialization():
3544
# on windows, we can't open a file twice, so save the name and unlink
3645
# manually...

0 commit comments

Comments
 (0)
0