Skip to content

Commit a9ab592

Browse files
committed
Rename solution/ -> solutions/
1 parent 7b1eddd commit a9ab592

File tree

11 files changed

+13
-13
lines changed

11 files changed

+13
-13
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ Solving the 2020 edition of https://adventofcode.com/ in many languages, and tes
33

44
## Contributing
55
1. Make a branch. Example: `git checkout -b jonas/day-03`
6-
2. Write a solution, in the language of your choice. Example: `vim day-03/solution/super-optimized.py`
6+
2. Write a solution, in the language of your choice. Example: `vim day-03/solutions/super-optimized.py`
77
3. Test your solution.
88

99
```sh
10-
cat day-03/input | python3 day-03/solution/super-optimized.py | diff - day-03/output
10+
cat day-03/input | python3 day-03/solutions/super-optimized.py | diff - day-03/output
1111
```
1212

1313
4. Make sure your solution is automatically tested by the Github CI, by adding a line of code to `day-03/test.sh`.
1414
*Example line:*
1515
```sh
16-
$DIR/../scripts/test-py.sh $DIR "solution/super-optimized.py"
16+
$DIR/../scripts/test-py.sh $DIR "solutions/super-optimized.py"
1717
```
1818

1919
5. Make a Pull Request to the `main` branch.

day-00-example/test.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
DIR=$(dirname $(realpath $0))
33

44
# Run tests
5-
$DIR/../scripts/test-deno.sh $DIR "solution/main.deno.ts"
6-
$DIR/../scripts/test-go.sh $DIR "solution/main.go"
7-
$DIR/../scripts/test-node.sh $DIR "solution/main.node.mjs"
8-
$DIR/../scripts/test-py.sh $DIR "solution/main.py"
5+
$DIR/../scripts/test-deno.sh $DIR "solutions/main.deno.ts"
6+
$DIR/../scripts/test-go.sh $DIR "solutions/main.go"
7+
$DIR/../scripts/test-node.sh $DIR "solutions/main.node.mjs"
8+
$DIR/../scripts/test-py.sh $DIR "solutions/main.py"

scripts/make-folders.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
for i in {01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25}
55
do
66
mkdir -p "./day-$i/solution"
7-
cat > "./day-$i/solution/.keep" << KEEP
7+
cat > "./day-$i/solutions/.keep" << KEEP
88
KEEP
99

1010
cat > "./day-$i/README.md" << README
@@ -27,7 +27,7 @@ set -e
2727
DIR=$(dirname $(realpath $0))
2828
2929
# Run tests
30-
# Example: $DIR/../scripts/test-deno.sh $DIR ./solution/main.deno.ts
30+
# Example: $DIR/../scripts/test-deno.sh $DIR ./solutions/main.deno.ts
3131
TEST
3232

3333
chmod +x ./day-$i/test.sh

scripts/test-deno.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -e
33

44
# Usage: ../test-deno.sh DIR SOLUTION
5-
# Example: ../test-deno.sh /adventofcode2020/day-03 solution/main.deno.ts
5+
# Example: ../test-deno.sh /adventofcode2020/day-03 solutions/main.deno.ts
66

77
DIR="$1"
88
SOLUTION="$2"

scripts/test-go.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -e
33

44
# Usage: ../test-go.sh DIR SOLUTION
5-
# Example: ../test-go.sh /adventofcode2020/day-03 solution/main.go
5+
# Example: ../test-go.sh /adventofcode2020/day-03 solutions/main.go
66

77
DIR="$1"
88
SOLUTION="$2"

scripts/test-node.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -e
33

44
# Usage: ../test-node.sh DIR SOLUTION
5-
# Example: ../test-node.sh /adventofcode2020/day-03 solution/main.node.mjs
5+
# Example: ../test-node.sh /adventofcode2020/day-03 solutions/main.node.mjs
66

77
DIR="$1"
88
SOLUTION="$2"

0 commit comments

Comments
 (0)