01-edu / public

📚 @01-edu's Public Repository
http://public.01-edu.org/
224 stars 447 forks source link

[EXTERNAL] Update calculator_test.sh #2538

Open r0cketdyne opened 5 months ago

r0cketdyne commented 5 months ago

Added set -euo pipefail to enforce safer scripting practices.

Improved variable scoping within the challenge function.

Simplified the function calls within the challenge function.

Refactored the test for the use of case statement.

Updated the invalid input tests to include better error handling.

Reorganized and improved the testing of operator functions.

Added a final message indicating the success of all tests.

Before starting, please choose the relevant pull request Labels, Reviewers, and Assignees

DEV-#### | SUP-#### | CON-####

Why?

Clearly state the reason for this change. What problem is it solving, or what feature is it adding?

Solution Overview

Provide an overview of the solution implemented in this pull request. This should be a high-level overview without getting into technical details. If applicable, include screenshots of UI or use GitHub-compliant mermaid graphs to represent the solution visually.

Implementation Details

Explain the details of the implementation and the reasoning behind it. What alternative approaches were considered, and why was this approach chosen?

Build Images

Please assign the label 📦 build If you want to re-build the following test images:

  • 💻 Sh
  • 🚀 JS
  • 🧩 DOM