[roll pigweed] pw_build: Fix bug in has_pw_assert_dep

Also add a unit test. The third and fourth cases are regression tests
for this bug.

Original-Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/106911

https://pigweed.googlesource.com/pigweed/pigweed
pigweed Rolled-Commits: 3a5e776d36abbd4..fc5105ad72fd6bc
Roller-URL: https://ci.chromium.org/b/8805454410939140273
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: Iea9bf92899dfc75ff2e273194693a97fd1d0b933
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/zephyr-integration/+/107396
Commit-Queue: Pigweed Integration Roller <pigweed-integration-roller@pigweed.google.com.iam.gserviceaccount.com>
Bot-Commit: Pigweed Integration Roller <pigweed-integration-roller@pigweed.google.com.iam.gserviceaccount.com>
1 file changed
tree: b6b49d84723037b4b1240c707a4be943d8426946
  1. .gitmodules
  2. test.sh