28d6034185
For example, if you try to match `*a*` against `ab`, then we check: ``` left = "" middle = "a" right = "" middle in name[len(left):len(name)-len(right)]: "a" in "ab"[len(""):len(name)-len("")]: "a" in "ab"[0:-0] "a" in "" => False ``` The problem here is that negative numbers in python index from the back, but -0 is not a negative number, so it always results in the empty string. |
||
---|---|---|
.. | ||
bzl_library | ||
common_settings | ||
copy_directory | ||
copy_file | ||
diff_test | ||
directory | ||
expand_template | ||
native_binary | ||
run_binary | ||
select_file | ||
write_file | ||
BUILD | ||
analysis_test_test.sh | ||
build_test_tests.bzl | ||
collections_tests.bzl | ||
common_settings_test.sh | ||
common_settings_tests.bzl | ||
dicts_tests.bzl | ||
modules_test.bzl | ||
new_sets_tests.bzl | ||
partial_tests.bzl | ||
paths_tests.bzl | ||
selects_tests.bzl | ||
shell_tests.bzl | ||
structs_tests.bzl | ||
subpackages_tests.bzl | ||
types_tests.bzl | ||
unittest.bash | ||
unittest_test.sh | ||
unittest_tests.bzl | ||
versions_tests.bzl |