Skip to content

Commit 4029dbd

Browse files
committed
add test
1 parent 466ac33 commit 4029dbd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/version/version_test.bzl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,14 @@ def _test_normalization(env):
105105

106106
_tests.append(_test_normalization)
107107

108+
def _test_normalize_local(env):
109+
# Verify a local with a [digit][non-digit] sequence parses ok
110+
in_str = "0.1.0+brt.9e"
111+
actual = version.normalize(in_str)
112+
env.expect.that_str(actual).equals("xxx")
113+
114+
_tests.append(_test_normalize_local)
115+
108116
def _test_ordering(env):
109117
want = [
110118
# Taken from https://peps.python.org/pep-0440/#summary-of-permitted-suffixes-and-relative-ordering

0 commit comments

Comments
 (0)