diff options
author | Thomas Van Lenten <thomasvl@google.com> | 2019-04-02 11:48:08 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-02 11:48:08 -0400 |
commit | 2b1c4610c3d26f74c3ca4a2074cb1115535dcaf0 (patch) | |
tree | 67f0babb94b5c20630bd052441032af9e537cf14 /tests | |
parent | 084758ff75463750f6c2476348ed9442e7860275 (diff) | |
download | bazel-skylib-2b1c4610c3d26f74c3ca4a2074cb1115535dcaf0.tar.gz |
Reformat with buildifier --warnings=all (#138)
Fixes some dictionaries to put things in the more common orders. Buildifer
used to default to doing this check and reformatting which is why the
//conditions:default got moved up in these in the first place.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/selects_tests.bzl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/selects_tests.bzl b/tests/selects_tests.bzl index 4292ee2..b9a354d 100644 --- a/tests/selects_tests.bzl +++ b/tests/selects_tests.bzl @@ -25,7 +25,7 @@ def _with_or_test(ctx): # dictionary from a select(). # Test select()-compatible input syntax. - input_dict = {"//conditions:default": ":d1", ":foo": ":d1"} + input_dict = {":foo": ":d1", "//conditions:default": ":d1"} asserts.equals(env, input_dict, selects.with_or_dict(input_dict)) # Test OR syntax. @@ -38,17 +38,17 @@ def _with_or_test(ctx): # Test mixed syntax. mixed_dict = { - "//conditions:default": ":d3", - (":bar", ":baz"): ":d2", ":foo": ":d1", + (":bar", ":baz"): ":d2", + "//conditions:default": ":d3", } asserts.equals( env, { - "//conditions:default": ":d3", ":bar": ":d2", ":baz": ":d2", ":foo": ":d1", + "//conditions:default": ":d3", }, selects.with_or_dict(mixed_dict), ) |