File tree Expand file tree Collapse file tree 8 files changed +78
-11
lines changed
exercises/practice/hello-world Expand file tree Collapse file tree 8 files changed +78
-11
lines changed Original file line number Diff line number Diff line change 13
13
# Requires scripts:
14
14
# - bin/test
15
15
16
- name : <track> / Test
16
+ name : GDScript / Test
17
17
18
18
on :
19
19
push :
23
23
24
24
jobs :
25
25
ci :
26
- runs-on : <image-name>
26
+ runs-on : ubuntu-22.04
27
+ container :
28
+ image : exercism/gdscript-test-runner
27
29
28
30
steps :
29
31
- name : Checkout repository
30
32
uses : actions/checkout@v3
31
33
32
- - name : Use <setup tooling>
33
- uses : <action to setup tooling>
34
-
35
- - name : Install project dependencies
36
- run : <install dependencies>
37
-
38
34
- name : Verify all exercises
39
- run : bin/verify-exercises
35
+ run : bin/run.sh
36
+ # TODO: detect all exercises
Original file line number Diff line number Diff line change 4
4
"active" : false ,
5
5
"status" : {
6
6
"concept_exercises" : false ,
7
- "test_runner" : false ,
7
+ "test_runner" : true ,
8
8
"representer" : false ,
9
9
"analyzer" : false
10
10
},
15
15
"indent_size" : 4 ,
16
16
"highlightjs_language" : " TODO: specify highlightjs language"
17
17
},
18
+ "test_runner" : {
19
+ "average_run_time" : 10
20
+ },
18
21
"files" : {
19
22
"solution" : [],
20
23
"test" : [],
21
24
"example" : [],
22
25
"exemplar" : []
23
26
},
27
+ "files" : {
28
+ "solution" : [" %{snake_slug}.gd" ],
29
+ "test" : [" %{snake_slug}_test.gd" ],
30
+ "example" : [" .meta/example.gd" ],
31
+ "exemplar" : [" .meta/exemplar.gd" ]
32
+ },
24
33
"exercises" : {
25
34
"concept" : [],
26
- "practice" : []
35
+ "practice" : [
36
+ {
37
+ "uuid" : " 1adfc420-46f2-4d5b-93a3-165ede1fcd9f" ,
38
+ "slug" : " hello-world" ,
39
+ "name" : " Hello World" ,
40
+ "practices" : [],
41
+ "prerequisites" : [],
42
+ "difficulty" : 1
43
+ }
44
+ ]
27
45
},
28
46
"concepts" : [],
29
47
"key_features" : [],
Original file line number Diff line number Diff line change
1
+ # Instructions
2
+
3
+ The classical introductory exercise.
4
+ Just say "Hello, World!".
5
+
6
+ [ "Hello, World!"] [ hello-world ] is the traditional first program for beginning programming in a new language or environment.
7
+
8
+ The objectives are simple:
9
+
10
+ - Modify the provided code so that it produces the string "Hello, World!".
11
+ - Run the test suite and make sure that it succeeds.
12
+ - Submit your solution and check it at the website.
13
+
14
+ If everything goes well, you will be ready to fetch your first real exercise.
15
+
16
+ [ hello-world ] : https://en.wikipedia.org/wiki/%22Hello,_world!%22_program
Original file line number Diff line number Diff line change
1
+ {
2
+ "authors" : [],
3
+ "files" : {
4
+ "solution" : [
5
+ " hello_world.gd"
6
+ ],
7
+ "test" : [
8
+ " hello_world_test.gd"
9
+ ],
10
+ "example" : [
11
+ " .meta/example.gd"
12
+ ]
13
+ },
14
+ "blurb" : " The classical introductory exercise. Just say \" Hello, World!\" ." ,
15
+ "source" : " This is an exercise to introduce users to using Exercism" ,
16
+ "source_url" : " https://en.wikipedia.org/wiki/%22Hello,_world!%22_program"
17
+ }
Original file line number Diff line number Diff line change
1
+ func hello ():
2
+ return "Hello, World!"
Original file line number Diff line number Diff line change
1
+ # This is an auto-generated file.
2
+ #
3
+ # Regenerating this file via `configlet sync` will:
4
+ # - Recreate every `description` key/value pair
5
+ # - Recreate every `reimplements` key/value pair, where they exist in problem-specifications
6
+ # - Remove any `include = true` key/value pair (an omitted `include` key implies inclusion)
7
+ # - Preserve any other key/value pair
8
+ #
9
+ # As user-added comments (using the # character) will be removed when this file
10
+ # is regenerated, comments can be added via a `comment` key.
11
+
12
+ [af9ffe10-dc13-42d8-a742-e7bdafac449d ]
13
+ description = " Say Hi!"
Original file line number Diff line number Diff line change
1
+ func hello ():
2
+ return "Goodbye, Mars!"
Original file line number Diff line number Diff line change
1
+ func test_hello_world (solution_script ):
2
+ return ["Hello, World!" , solution_script .hello ()]
You can’t perform that action at this time.
0 commit comments