Skip to content

Commit

Permalink
upper case
Browse files Browse the repository at this point in the history
  • Loading branch information
spring1843 committed Jul 13, 2023
1 parent 1f13574 commit 6c120a8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .github/scripts/count-rehearsals.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
set -euo pipefail

SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
# shellcheck source=sections.sh
source "${SCRIPT_DIR}/sections.sh"

ALL_TESTS=0
for section in "${sections[@]}"; do
SECTION_TESTS=$(find $section -name "*_test.go" | wc -l)
for SECTION in "${SECTIONS[@]}"; do
SECTION_TESTS=$(find ${SECTION} -name "*_test.go" | wc -l)
ALL_TESTS=$((ALL_TESTS + SECTION_TESTS))
done
echo $ALL_TESTS
7 changes: 4 additions & 3 deletions .github/scripts/export-md.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@
set -euo pipefail

SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
# shellcheck source=sections.sh
source "${SCRIPT_DIR}/sections.sh"

declare -a files=(
declare -a FILES=(
README.md
complexity.md
)

files+=("${sections[@]/%//README.md}")
FILES+=("${SECTIONS[@]/%//README.md}")

for file in "${files[@]}"; do
for file in "${FILES[@]}"; do
cat "$file"
printf "\n"
done
2 changes: 1 addition & 1 deletion .github/scripts/sections.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail

declare -a sections=(
declare -a SECTIONS=(
./array
./strings
./linkedlist
Expand Down

0 comments on commit 6c120a8

Please sign in to comment.