bazel-skylib/tests
Matt 28d6034185
fix: Fix a bug in globs when middle is non-empty, but right is empty. (#516)
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.
2024-05-31 07:30:03 +00:00
..
bzl_library Re-add `licenses()` - internal license checker still requires it :/ (#506) 2024-05-02 14:38:05 -04:00
common_settings Re-add `licenses()` - internal license checker still requires it :/ (#506) 2024-05-02 14:38:05 -04:00
copy_directory Re-add `licenses()` - internal license checker still requires it :/ (#506) 2024-05-02 14:38:05 -04:00
copy_file Re-add `licenses()` - internal license checker still requires it :/ (#506) 2024-05-02 14:38:05 -04:00
diff_test Re-add `licenses()` - internal license checker still requires it :/ (#506) 2024-05-02 14:38:05 -04:00
directory fix: Fix a bug in globs when middle is non-empty, but right is empty. (#516) 2024-05-31 07:30:03 +00:00
expand_template Add `default_applicable_license` and remove obsolete `licenses()` in all BUILD files (#504) 2024-05-01 17:24:18 -04:00
native_binary Add `default_applicable_license` and remove obsolete `licenses()` in all BUILD files (#504) 2024-05-01 17:24:18 -04:00
run_binary Add `default_applicable_license` and remove obsolete `licenses()` in all BUILD files (#504) 2024-05-01 17:24:18 -04:00
select_file Re-add `licenses()` - internal license checker still requires it :/ (#506) 2024-05-02 14:38:05 -04:00
write_file Re-add `licenses()` - internal license checker still requires it :/ (#506) 2024-05-02 14:38:05 -04:00
BUILD Re-add `licenses()` - internal license checker still requires it :/ (#506) 2024-05-02 14:38:05 -04:00
analysis_test_test.sh Fix bazel-skylib with Bazel@HEAD (#462) 2023-09-18 11:25:50 -07:00
build_test_tests.bzl Remove outdated rules_cc dependency (#476) 2024-04-24 14:23:39 -04:00
collections_tests.bzl
common_settings_test.sh Stop hardcoding runfiles prefix (#402) 2022-10-15 09:20:48 +11:00
common_settings_tests.bzl Expose int- and string-valued build settings as Make variables (#440) 2023-08-22 19:41:36 +00:00
dicts_tests.bzl Implement omit and pick dicts functions. (#304) 2022-03-17 16:49:06 -04:00
modules_test.bzl Add helper functions for module extensions as `modules` (#456) 2024-04-24 14:53:32 -04:00
new_sets_tests.bzl
partial_tests.bzl
paths_tests.bzl Add is_normalized and starts_with to paths module (#514) 2024-05-29 15:40:38 +02:00
selects_tests.bzl Fix spelling (#445) 2023-04-26 21:55:09 -04:00
shell_tests.bzl Use more portable `#!/usr/bin/env bash` shebang instead of hardcoded /bin/bash. (#329) 2021-10-25 09:12:41 -04:00
structs_tests.bzl
subpackages_tests.bzl Copy rules_directory to bazel-skylib. (#510) 2024-05-29 07:24:27 +02:00
types_tests.bzl Modify actions in order not to need `toolchain` param (#455) 2023-08-28 14:39:43 -04:00
unittest.bash Fix spelling (#445) 2023-04-26 21:55:09 -04:00
unittest_test.sh Add `default_applicable_license` and remove obsolete `licenses()` in all BUILD files (#504) 2024-05-01 17:24:18 -04:00
unittest_tests.bzl Add support for 'loading' unit tests, which evaluate a LOADING phase. (#347) 2022-02-10 16:03:48 -05:00
versions_tests.bzl versions: Don't fail on Bazel dev builds (#463) 2023-09-25 18:25:37 -07:00