Skip to content

Commit 4244e37

Browse files
Merge pull request #71 from fabianoflorentino/development
Development to Main
2 parents 4a6d9ce + 5442287 commit 4244e37

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

internal/exercicios_ninja_nivel_8/resolution_exercises_test.go

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
// Package exercicios_ninja_nivel_8 contains tests for the exercises in level 8 of the Ninja Go course.
2-
// These tests are designed to validate the functionality of the solutions provided for the exercises.
1+
// Package exercicios_ninja_nivel_8 contains a series of test functions designed to validate
2+
// the output of various exercises. These exercises are part of a learning module aimed at
3+
// practicing Go programming skills. Each test function captures the output of a specific
4+
// exercise function and compares it to the expected output. If the captured output does not
5+
// match the expected output, the test fails and logs an error. The package utilizes helper
6+
// functions from other packages such as logger, output, and trim to facilitate output
7+
// capturing, logging, and string normalization.
38
package exercicios_ninja_nivel_8
49

510
import (
@@ -19,10 +24,10 @@ const (
1924
)
2025

2126
// TestResolucaoNaPraticaExercicio1 tests the function ResolucaoNaPraticaExercicio1
22-
// by capturing its output and comparing it to the expected output.
27+
// by capturing its output and comparing it with the expected output.
2328
// It uses the output.Capture method to capture the function's output and
24-
// the trim.String method to normalize the output and expected strings before comparison.
25-
// If the captured output does not contain the expected output, the test fails with an error message.
29+
// the trim.String method to normalize the strings before comparison.
30+
// If the captured output does not contain the expected output, the test fails.
2631
func TestResolucaoNaPraticaExercicio1(t *testing.T) {
2732
output := output.New()
2833
result, err := output.Capture(ResolucaoNaPraticaExercicio1)

0 commit comments

Comments
 (0)