From 08537277fd080272a1f545f142dc949d1ea23423 Mon Sep 17 00:00:00 2001 From: VaiaPatta1985 <145572182+VaiaPatta1985@users.noreply.github.com> Date: Fri, 27 Mar 2026 14:54:55 +0200 Subject: [PATCH] [SimpleCalculator] added note about exception scope A note was added to instructions clarifying that UnsupportedOperation is expected to be defined for a specific scope. --- exercises/concept/simple-calculator/.docs/instructions.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/exercises/concept/simple-calculator/.docs/instructions.md b/exercises/concept/simple-calculator/.docs/instructions.md index b2ba06a86b..b004769a83 100644 --- a/exercises/concept/simple-calculator/.docs/instructions.md +++ b/exercises/concept/simple-calculator/.docs/instructions.md @@ -33,6 +33,10 @@ SimpleCalculator.calculate(1, 2, '-') # => Raises an UnsupportedOperation ``` +~~~~exercism/note +In this exercise, you are expected to define the `UnsupportedOperation` exception for a specific scope. +~~~~ + ## 3. Handle invalid arguments Update the `SimpleCalculator.calculate()` method to raise an `ArgumentError` exception for invalid argument types.