diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-03-23 23:59:59 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-03-24 20:59:00 -0700 |
commit | 576990113273caed9a045380f1457adc1df6a5ee (patch) | |
tree | 0add69eef41b3eca78191c59b7bfbfaaedd980d8 /cpp/014arithmetic | |
parent | 7fb56277f54b9e2625357a433b18f60e4493f34a (diff) | |
download | mu-576990113273caed9a045380f1457adc1df6a5ee.tar.gz |
968
Diffstat (limited to 'cpp/014arithmetic')
-rw-r--r-- | cpp/014arithmetic | 24 |
1 files changed, 12 insertions, 12 deletions
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 |