primeiro commit com exercicios de Exercism realizados até esta data

This commit is contained in:
2026-10-17 22:10:27 +01:00
commit 58fccbe27a
708 changed files with 35038 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
{
"authors": [
"SuperPaintman"
],
"contributors": [
"rafaelalvessa",
"Stargator"
],
"files": {
"solution": [
"lib/hello_world.dart"
],
"test": [
"test/hello_world_test.dart"
],
"example": [
".meta/lib/example.dart"
],
"invalidator": [
"pubspec.yaml"
]
},
"blurb": "Exercism's classic introductory exercise. Just say \"Hello, World!\".",
"source": "This is an exercise to introduce users to using Exercism",
"source_url": "https://en.wikipedia.org/wiki/%22Hello,_world!%22_program"
}
+1
View File
@@ -0,0 +1 @@
{"track":"dart","exercise":"hello-world","id":"3416a5e62e344dd3ab25a1455c84721e","url":"https://exercism.org/tracks/dart/exercises/hello-world","handle":"sanctushck","is_requester":true,"auto_approve":false}
+38
View File
@@ -0,0 +1,38 @@
# Help
## Running the tests
To run the tests:
```sh
$ dart test
```
## Submitting your solution
You can submit your solution using the `exercism submit lib/hello_world.dart` command.
This command will upload your solution to the Exercism website and print the solution page's URL.
It's possible to submit an incomplete solution which allows you to:
- See how others have completed the exercise
- Request help from a mentor
## Need to get help?
If you'd like help solving the exercise, check the following pages:
- The [Dart track's documentation](https://exercism.org/docs/tracks/dart)
- The [Dart track's programming category on the forum](https://forum.exercism.org/c/programming/dart)
- [Exercism's programming category on the forum](https://forum.exercism.org/c/programming/5)
- The [Frequently Asked Questions](https://exercism.org/docs/using/faqs)
Should those resources not suffice, you could submit your (incomplete) solution to request mentoring.
To get help if you're having trouble, you can use one of the following resources:
- [Dart API Documentation](https://api.dart.dev/)
- [Dart Gitter Chat](https://gitter.im/dart-lang/home)
- [Community Information](https://www.dart.dev/community)
- [/r/dartlang](https://www.reddit.com/r/dartlang) is the Dart subreddit.
- [StackOverflow](https://stackoverflow.com/questions/tagged/dart) can be used to search for your problem and see if it has been answered already. You can also ask and answer questions.
+36
View File
@@ -0,0 +1,36 @@
# Hello World
Welcome to Hello World on Exercism's Dart Track.
If you need help running the tests or submitting your code, check out `HELP.md`.
## Instructions
The classical introductory exercise.
Just say "Hello, World!".
["Hello, World!"][hello-world] is the traditional first program for beginning programming in a new language or environment.
The objectives are simple:
- Modify the provided code so that it produces the string "Hello, World!".
- Run the test suite and make sure that it succeeds.
- Submit your solution and check it at the website.
If everything goes well, you will be ready to fetch your first real exercise.
[hello-world]: https://en.wikipedia.org/wiki/%22Hello,_world!%22_program
## Source
### Created by
- @SuperPaintman
### Contributed to by
- @rafaelalvessa
- @Stargator
### Based on
This is an exercise to introduce users to using Exercism - https://en.wikipedia.org/wiki/%22Hello,_world!%22_program
+20
View File
@@ -0,0 +1,20 @@
analyzer:
exclude:
- lib/hello_world.dart
strong-mode:
implicit-casts: false
implicit-dynamic: false
errors:
unused_element: error
unused_import: error
unused_local_variable: error
dead_code: error
linter:
rules:
# Error Rules
- avoid_relative_lib_imports
- avoid_types_as_parameter_names
- literal_only_boolean_expressions
- no_adjacent_strings_in_list
- valid_regexps
+5
View File
@@ -0,0 +1,5 @@
class HelloWorld {
String hello() {
return "Hello, World!";
}
}
+5
View File
@@ -0,0 +1,5 @@
name: 'hello_world'
environment:
sdk: '>=3.2.0 <4.0.0'
dev_dependencies:
test: '<2.0.0'
@@ -0,0 +1,8 @@
import 'package:hello_world/hello_world.dart';
import 'package:test/test.dart';
void main() {
test('Say Hi!', () {
expect(HelloWorld().hello(), equals('Hello, World!'));
});
}