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.
38package exercicios_ninja_nivel_8
49
510import (
@@ -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.
2631func TestResolucaoNaPraticaExercicio1 (t * testing.T ) {
2732 output := output .New ()
2833 result , err := output .Capture (ResolucaoNaPraticaExercicio1 )
0 commit comments