trackler 2.0.8.29 → 2.0.8.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/trackler/version.rb +1 -1
- data/tracks/perl6/docs/ABOUT.md +11 -4
- data/tracks/perl6/docs/INSTALLATION.md +3 -2
- data/tracks/perl6/docs/LEARNING.md +7 -2
- data/tracks/perl6/docs/RESOURCES.md +2 -2
- data/tracks/perl6/docs/TESTS.md +13 -44
- metadata +1 -2
- data/tracks/erlang/exercises/hello-world/README.md +0 -50
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d22e34478d4a5e03a5e77c1b87f9fc2100d8faa8
|
4
|
+
data.tar.gz: 8bddfa98a3186438edfda24f6e61909d4250dbeb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d80291aa38a823730f5629df9a4f94032ccc6433f9b92c53cc6e96fbd8ad1fcf0ea3731ccf74bde0aaca7c81c02152f9680a095f532ccf365aa46ea8be16848e
|
7
|
+
data.tar.gz: c5152bb280c3a7afd284af2d8bbbea0d833baa517ae2ffe34b05918ee05fe9a2d13e4debf9cd078b8749e68d3eca12a6f26fced9d212106135ab7e45bde90e21
|
data/lib/trackler/version.rb
CHANGED
data/tracks/perl6/docs/ABOUT.md
CHANGED
@@ -1,8 +1,15 @@
|
|
1
|
-
From
|
1
|
+
From [Perl 6 Introduction](http://perl6intro.com/):
|
2
2
|
|
3
|
+
## What is Perl 6
|
3
4
|
Perl 6 is a high-level, general-purpose, gradually typed language. Perl 6 is multi-paradigmatic. It supports Procedural, Object Oriented, and Functional programming.
|
4
5
|
|
5
|
-
Perl 6 motto:
|
6
|
-
*
|
7
|
-
*
|
6
|
+
##### Perl 6 motto:
|
7
|
+
* TMTOWTDI (Pronounced Tim Toady): There is more than one way to do it.
|
8
|
+
* Easy things should stay easy, hard things should get easier, and impossible things should get hard.
|
8
9
|
|
10
|
+
## Jargon
|
11
|
+
* **Perl 6:** Is a language specification with a test suite. Implementations that pass the specification test suite are considered Perl 6.
|
12
|
+
* **Rakudo:** Is a compiler for Perl 6.
|
13
|
+
* **Rakudobrew:** Is an installation manager for Rakudo.
|
14
|
+
* **Zef:** Is a Perl 6 module installer.
|
15
|
+
* **Rakudo Star:** Is a bundle that includes Rakudo, Zef, a collection of Perl 6 modules, and documentation.
|
@@ -1,3 +1,4 @@
|
|
1
|
-
|
1
|
+
## Installing Rakudo Star
|
2
|
+
The [How to get Rakudo Perl 6](http://rakudo.org/how-to-get-rakudo/) page contains detailed instructions for downloading and installing Rakudo Star for Windows / Mac OS X / Linux.
|
2
3
|
|
3
|
-
|
4
|
+
If you are familiar with [Docker](https://www.docker.com/) there is an official [rakudo-star](https://hub.docker.com/_/rakudo-star/) Docker image available.
|
@@ -1,3 +1,8 @@
|
|
1
|
-
|
1
|
+
## Learning Perl 6
|
2
2
|
|
3
|
-
The [Resources](https://perl6.org/resources/) page on
|
3
|
+
The [Resources](https://perl6.org/resources/) page on [perl6.org](https://perl6.org/) contains a 'For Newcomers' section with a selection of useful material to get you up and running.
|
4
|
+
|
5
|
+
* [Perl 6 Introduction](http://perl6intro.com/)
|
6
|
+
* [Learn Perl 6 in Y minutes](https://learnxinyminutes.com/docs/perl6/)
|
7
|
+
* [Perl 6 tutorials](https://github.com/perlpilot/perl6-docs)
|
8
|
+
* [SixFix](http://sixfix.nigelhamilton.com/) a weekly dose of Perl 6 delivered by email
|
@@ -1,3 +1,3 @@
|
|
1
|
-
|
1
|
+
## Useful Perl 6 Resources
|
2
2
|
|
3
|
-
[The
|
3
|
+
[The Perl 6 site](https://perl6.org/) has a [resources](https://perl6.org/resources/) page containing variety of information on the language, such as guides for newcomers, documentation, and screencasts.
|
data/tracks/perl6/docs/TESTS.md
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
# Running the Tests
|
2
|
-
|
3
1
|
## Run All Tests
|
4
2
|
|
5
3
|
There is a Perl 6 script with the extension `.t`, which will be used to test
|
@@ -10,24 +8,22 @@ your solution. You can run through the tests by using the command:
|
|
10
8
|
Before you start the exercise, the output will likely look something like:
|
11
9
|
|
12
10
|
```
|
13
|
-
./hello-world.t .. 1/
|
14
|
-
# Failed test '
|
15
|
-
# at ./hello-world.t line
|
11
|
+
./hello-world.t .. 1/4
|
12
|
+
# Failed test 'Say Hi!'
|
13
|
+
# at ./hello-world.t line 37
|
16
14
|
# expected: 'Hello, World!'
|
17
15
|
# got: (Nil)
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
# expected: 'Hello, World!'
|
22
|
-
# got: (Nil)
|
23
|
-
./hello-world.t .. Dubious, test returned 2 (wstat 512, 0x200)
|
24
|
-
Failed 2/6 subtests
|
16
|
+
# Looks like you failed 1 test of 4
|
17
|
+
./hello-world.t .. Dubious, test returned 1 (wstat 256, 0x100)
|
18
|
+
Failed 1/4 subtests
|
25
19
|
|
26
20
|
Test Summary Report
|
27
21
|
-------------------
|
28
|
-
./hello-world.t (Wstat:
|
29
|
-
Failed
|
30
|
-
Non-zero exit status:
|
22
|
+
./hello-world.t (Wstat: 256 Tests: 4 Failed: 1)
|
23
|
+
Failed test: 3
|
24
|
+
Non-zero exit status: 1
|
25
|
+
Files=1, Tests=4, 1 wallclock secs ( 0.01 usr 0.00 sys + 0.50 cusr 0.04 csys = 0.55 CPU)
|
26
|
+
Result: FAIL
|
31
27
|
```
|
32
28
|
You will either need to modify or create a module with the extension `.pm6`, and
|
33
29
|
write a solution to pass the tests. Once the tests are passing, the output from
|
@@ -36,7 +32,7 @@ the command above will likely look something like:
|
|
36
32
|
```
|
37
33
|
./hello-world.t .. ok
|
38
34
|
All tests successful.
|
39
|
-
Files=1, Tests=
|
35
|
+
Files=1, Tests=4, 1 wallclock secs ( 0.01 usr 0.00 sys + 0.49 cusr 0.06 csys = 0.56 CPU)
|
40
36
|
Result: PASS
|
41
37
|
```
|
42
38
|
|
@@ -45,34 +41,7 @@ flag `-v` (for 'verbose') to the above command, like so:
|
|
45
41
|
|
46
42
|
`prove . --exec=perl6 -v`
|
47
43
|
|
48
|
-
|
49
|
-
|
50
|
-
```
|
51
|
-
./hello-world.t ..
|
52
|
-
1..6
|
53
|
-
ok 1 - The module can be use-d ok
|
54
|
-
1..1
|
55
|
-
ok 1 - &hello
|
56
|
-
ok 2 - Subroutine(s)
|
57
|
-
ok 3 - No argument
|
58
|
-
ok 4 - Empty string
|
59
|
-
not ok 5 - Camelia # TODO optional test
|
60
|
-
|
61
|
-
# Failed test 'Camelia'
|
62
|
-
# at ./hello-world.t line 31
|
63
|
-
# expected: 'Hello, Camelia!'
|
64
|
-
# got: 'Hello, World!'
|
65
|
-
not ok 6 - Rakudo # TODO optional test
|
66
|
-
|
67
|
-
# Failed test 'Rakudo'
|
68
|
-
# at ./hello-world.t line 32
|
69
|
-
# expected: 'Hello, 楽土!'
|
70
|
-
# got: 'Hello, World!'
|
71
|
-
ok
|
72
|
-
All tests successful.
|
73
|
-
Files=1, Tests=6, 1 wallclock secs ( 0.03 usr 0.00 sys + 0.58 cusr 0.06 csys = 0.67 CPU)
|
74
|
-
Result: PASS
|
75
|
-
```
|
44
|
+
As well as showing optional tests, it will include all of the tests that your solution currently passes.
|
76
45
|
|
77
46
|
## Stop After First Failure
|
78
47
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trackler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.8.
|
4
|
+
version: 2.0.8.30
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Katrina Owen
|
@@ -2882,7 +2882,6 @@ files:
|
|
2882
2882
|
- tracks/erlang/exercises/hamming/src/example.erl
|
2883
2883
|
- tracks/erlang/exercises/hamming/src/hamming.app.src
|
2884
2884
|
- tracks/erlang/exercises/hamming/test/hamming_tests.erl
|
2885
|
-
- tracks/erlang/exercises/hello-world/README.md
|
2886
2885
|
- tracks/erlang/exercises/hello-world/include/exercism.hrl
|
2887
2886
|
- tracks/erlang/exercises/hello-world/rebar.config
|
2888
2887
|
- tracks/erlang/exercises/hello-world/src/example.erl
|
@@ -1,50 +0,0 @@
|
|
1
|
-
# Hello World
|
2
|
-
|
3
|
-
Write a program that greets the user by name, or by saying "Hello, World!" if no name is given.
|
4
|
-
|
5
|
-
["Hello, World!"](http://en.wikipedia.org/wiki/%22Hello,_world!%22_program) is the traditional first program for beginning programming in a new language.
|
6
|
-
|
7
|
-
**Note:** You can skip this exercise by running:
|
8
|
-
|
9
|
-
exercism skip $LANGUAGE hello-world
|
10
|
-
|
11
|
-
## Specification
|
12
|
-
|
13
|
-
The `Hello World!` program will greet me, the caller.
|
14
|
-
|
15
|
-
If I tell the program my name is Alice, it will greet me by saying "Hello, Alice!".
|
16
|
-
|
17
|
-
If I neglect to give it my name, it will greet me by saying "Hello, World!"
|
18
|
-
|
19
|
-
## Test-Driven Development
|
20
|
-
|
21
|
-
As programmers mature, they eventually want to test their code.
|
22
|
-
|
23
|
-
Here at Exercism we simulate [Test-Driven Development](http://en.wikipedia.org/wiki/Test-driven_development) (TDD), where you write your tests before writing any functionality. The simulation comes in the form of a pre-written test suite, which will signal that you have solved the problem.
|
24
|
-
|
25
|
-
It will also provide you with a safety net to explore other solutions without breaking the functionality.
|
26
|
-
|
27
|
-
### A typical TDD workflow on Exercism:
|
28
|
-
|
29
|
-
1. Run the test file and pick one test that's failing.
|
30
|
-
2. Write some code to fix the test you picked.
|
31
|
-
3. Re-run the tests to confirm the test is now passing.
|
32
|
-
4. Repeat from step 1.
|
33
|
-
5. [Submit your solution](http://exercism.io/languages/erlang).
|
34
|
-
|
35
|
-
## Instructions
|
36
|
-
|
37
|
-
Submissions are encouraged to be general, within reason. Having said that, it's also important not to over-engineer a solution.
|
38
|
-
|
39
|
-
It's important to remember that the goal is to make code as expressive and readable as we can. However, solutions to the hello-world exercise will be not be reviewed by a person, but by rikki- the robot, who will offer an encouraging word.
|
40
|
-
|
41
|
-
## Running tests
|
42
|
-
|
43
|
-
```bash
|
44
|
-
$ erl -make
|
45
|
-
$ erl -noshell -eval "eunit:test(hello_world, [verbose])" -s init stop
|
46
|
-
```
|
47
|
-
|
48
|
-
## Source
|
49
|
-
|
50
|
-
This is a program to introduce users to using Exercism [view source](http://en.wikipedia.org/wiki/%22Hello,_world!%22_program)
|