Skip to content

Commit

Permalink
Simplify tests in assert_generate_tokens_list()
Browse files Browse the repository at this point in the history
  • Loading branch information
rich-iannone committed May 24, 2024
1 parent cac8262 commit e92d86f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,8 @@ def test_get_font_stack_add_emoji_true(font_stack_names):
@pytest.mark.parametrize(
"units, x_out",
[
("x10^7 m s^-1", ["x10^7", "m", "s^-1"]),
(
"-20 kg^2 m_12 m[_0^2] g/L %C6H12O6% x10^-3",
["-20", "kg^2", "m_12", "m[_0^2]", "g/L", "%C6H12O6%", "x10^-3"],
),
("m^2", ["m^2"]),
("m s^-1", ["m", "s^-1"]),
],
)
def assert_generate_tokens_list(units: str, x_out: str):
Expand Down

0 comments on commit e92d86f

Please sign in to comment.