From 576990113273caed9a045380f1457adc1df6a5ee Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 23 Mar 2015 23:59:59 -0700 Subject: 968 --- cpp/014arithmetic | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'cpp/014arithmetic') diff --git a/cpp/014arithmetic b/cpp/014arithmetic index 846fdff3..915cd9ab 100644 --- a/cpp/014arithmetic +++ b/cpp/014arithmetic @@ -28,7 +28,7 @@ recipe main [ +run: ingredient 0 is 23 +run: ingredient 1 is 34 +run: product 0 is 57 -+mem: storing in location 1 ++mem: storing 57 in location 1 :(scenario "add") recipe main [ @@ -42,7 +42,7 @@ recipe main [ +run: ingredient 1 is 2 +mem: location 2 is 34 +run: product 0 is 57 -+mem: storing in location 3 ++mem: storing 57 in location 3 :(before "End Globals") const int SUBTRACT = 3; @@ -73,7 +73,7 @@ recipe main [ +run: ingredient 0 is 5 +run: ingredient 1 is 2 +run: product 0 is 3 -+mem: storing in location 1 ++mem: storing 3 in location 1 :(scenario "subtract") recipe main [ @@ -87,7 +87,7 @@ recipe main [ +run: ingredient 1 is 2 +mem: location 2 is 34 +run: product 0 is -11 -+mem: storing in location 3 ++mem: storing -11 in location 3 :(before "End Globals") const int MULTIPLY = 4; @@ -119,7 +119,7 @@ recipe main [ +run: ingredient 0 is 2 +run: ingredient 1 is 3 +run: product 0 is 6 -+mem: storing in location 1 ++mem: storing 6 in location 1 :(scenario "multiply") recipe main [ @@ -133,7 +133,7 @@ recipe main [ +run: ingredient 1 is 2 +mem: location 2 is 6 +run: product 0 is 24 -+mem: storing in location 3 ++mem: storing 24 in location 3 :(before "End Globals") const int DIVIDE = 5; @@ -165,7 +165,7 @@ recipe main [ +run: ingredient 0 is 8 +run: ingredient 1 is 2 +run: product 0 is 4 -+mem: storing in location 1 ++mem: storing 4 in location 1 :(scenario "divide") recipe main [ @@ -179,7 +179,7 @@ recipe main [ +run: ingredient 1 is 2 +mem: location 2 is 3 +run: product 0 is 9 -+mem: storing in location 3 ++mem: storing 9 in location 3 :(before "End Globals") const int DIVIDE_WITH_REMAINDER = 6; @@ -214,9 +214,9 @@ recipe main [ +run: ingredient 0 is 9 +run: ingredient 1 is 2 +run: product 0 is 4 -+mem: storing in location 1 ++mem: storing 4 in location 1 +run: product 1 is 1 -+mem: storing in location 2 ++mem: storing 1 in location 2 :(scenario "divide_with_remainder") recipe main [ @@ -230,6 +230,6 @@ recipe main [ +run: ingredient 1 is 2 +mem: location 2 is 11 +run: product 0 is 2 -+mem: storing in location 3 ++mem: storing 2 in location 3 +run: product 1 is 5 -+mem: storing in location 4 ++mem: storing 5 in location 4 -- cgit 1.4.1-2-gfad0