diff options
Diffstat (limited to 'cpp/021arithmetic')
-rw-r--r-- | cpp/021arithmetic | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/021arithmetic b/cpp/021arithmetic index 6f7fb1f3..a5ca095a 100644 --- a/cpp/021arithmetic +++ b/cpp/021arithmetic @@ -177,7 +177,7 @@ recipe main [ :(before "End Primitive Recipe Declarations") DIVIDE_WITH_REMAINDER, :(before "End Primitive Recipe Numbers") -Recipe_number["divide_with_remainder"] = DIVIDE_WITH_REMAINDER; +Recipe_number["divide-with-remainder"] = DIVIDE_WITH_REMAINDER; :(before "End Primitive Recipe Implementations") case DIVIDE_WITH_REMAINDER: { trace("run") << "ingredient 0 is " << instructions[pc].ingredients[0].name; @@ -199,7 +199,7 @@ case DIVIDE_WITH_REMAINDER: { :(scenario "divide_with_remainder_literal") recipe main [ - 1:integer, 2:integer <- divide_with_remainder 9:literal, 2:literal + 1:integer, 2:integer <- divide-with-remainder 9:literal, 2:literal ] +run: instruction main/0 +run: ingredient 0 is 9 @@ -213,7 +213,7 @@ recipe main [ recipe main [ 1:integer <- copy 27:literal 2:integer <- copy 11:literal - 3:integer, 4:integer <- divide_with_remainder 1:integer, 2:integer + 3:integer, 4:integer <- divide-with-remainder 1:integer, 2:integer ] +run: instruction main/2 +run: ingredient 0 is 1 |