Skip to content

Commit

Permalink
Change symbols for bitwise operators.
Browse files Browse the repository at this point in the history
  • Loading branch information
gabordemooij committed Aug 7, 2024
1 parent 5f9c078 commit e907d6b
Show file tree
Hide file tree
Showing 45 changed files with 75 additions and 75 deletions.
12 changes: 6 additions & 6 deletions base.c
Original file line number Diff line number Diff line change
Expand Up @@ -1483,32 +1483,32 @@ ctr_object* ctr_number_log(ctr_object* myself, ctr_argument* argumentList) {

/**
* @def
* [ Number ] bit-and: [ Number ]
* [ Number ] & [ Number ]
*
* @example
* ✎ write: (8 bit-and: 10), stop.
* ✎ write: (8 & 10), stop.
*/
ctr_object* ctr_number_bit_and(ctr_object* myself, ctr_argument* argumentList) {
return ctr_build_number_from_float((int)myself->value.nvalue & (int)ctr_tonum(argumentList->object));
}

/**
* @def
* [ Number ] bit-or: [ Number ]
* [ Number ] | [ Number ]
*
* @example
* ✎ write: (8 bit-or: 10), stop.
* ✎ write: (8 | 10), stop.
*/
ctr_object* ctr_number_bit_or(ctr_object* myself, ctr_argument* argumentList) {
return ctr_build_number_from_float((int)myself->value.nvalue | (int)ctr_tonum(argumentList->object));
}

/**
* @def
* [ Number ] bit-xor: [ Number ]
* [ Number ] ^ [ Number ]
*
* @example
* ✎ write: (8 bit-xor: 10), stop.
* ✎ write: (8 ^ 10), stop.
*/
ctr_object* ctr_number_bit_xor(ctr_object* myself, ctr_argument* argumentList) {
return ctr_build_number_from_float((int)myself->value.nvalue ^ (int)ctr_tonum(argumentList->object));
Expand Down
4 changes: 2 additions & 2 deletions i18n/xx/dictionary.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
#define CTR_DICT_UNEQUALS_SYMBOL "≠"
#define CTR_DICT_NEW "new"
#define CTR_DICT_EQUALS "equals:"
#define CTR_DICT_AND "&:"
#define CTR_DICT_OR "|:"
#define CTR_DICT_AND "&&:"
#define CTR_DICT_OR "||:"
#define CTR_DICT_MODULO "modulo:"
#define CTR_DICT_NOR "nor:"
#define CTR_DICT_ONDO "on:do:"
Expand Down
6 changes: 3 additions & 3 deletions tests/test0027.ctr
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Boolean on: ‘xor:’ do: { :b
↲ ((⛏ &: b not) |: (⛏ not &: b)).
↲ ((⛏ &&: b not) ||: (⛏ not &&: b)).
}.

✎ write: ‘Length is:’ + ‘ABCD’ length.
☞ x ≔ ‘ABCDE’.

✎ write: ‘Length is:’ + x length.
((‘ABC’ length + 1 = 4) &: (2 ≠ 3)) not not true: { ✎ write: ‘Yes’. }.
(((3 > 4) |: (4 > 2)) &: (True |: False), &: (True xor: True) not ) true: { ✎ write: ‘Yes’. }.
((‘ABC’ length + 1 = 4) &&: (2 ≠ 3)) not not true: { ✎ write: ‘Yes’. }.
(((3 > 4) ||: (4 > 2)) &&: (True ||: False), &&: (True xor: True) not ) true: { ✎ write: ‘Yes’. }.
{ ✎ write: ‘Running’. } run.
6 changes: 3 additions & 3 deletions tests/test0053.ctr
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
(x < 3) false: { ✎ write: ‘FAIL’. }.
(x>-1) false: { ✎ write: ‘FAIL’. }.
x ≔ ((Boolean flip) number).
(x = 0 |: x = 1) false: { ✎ write: ‘FAIL’. }.
(x = 0 ||: x = 1) false: { ✎ write: ‘FAIL’. }.
x ≔ ((True flip) number).
(x = 0 |: x = 1) false: { ✎ write: ‘FAIL’. }.
(x = 0 ||: x = 1) false: { ✎ write: ‘FAIL’. }.
x ≔ (Boolean flip either: ‘HEAD’ or: ‘TAIL’).
((x = ‘HEAD’) |: (x = ‘TAIL’)) false: { ✎ write: ‘FAIL’. }.
((x = ‘HEAD’) ||: (x = ‘TAIL’)) false: { ✎ write: ‘FAIL’. }.
}.
✎ write: ‘DONE’.

4 changes: 2 additions & 2 deletions tests/test0062.ctr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Boolean on: ‘xor:’ do: { :a :b
↲ ((a &: b not) |: (a not &: b)).
↲ ((a &&: b not) ||: (a not &&: b)).
}.

☞ o ≔ Object new.
Expand All @@ -8,7 +8,7 @@ o on: ‘hello’ do: { ‘Empty’. }.
{ o on: ‘test’ do: 3.} catch: { :e ✎ write: e, stop. }, run.
{ o on: ‘hello’ do: { ‘Empty’. }.} catch: { :e ✎ write: e, stop. }, run.
{ ☞ z ≔ 4 ÷ 0. } catch: { :e ✎ write: e, stop. }, run.
{ (True &: Nil) true: { ✎ write: ‘X’.}. } catch: { :e ✎ write: e, stop. }, run.
{ (True &&: Nil) true: { ✎ write: ‘X’.}. } catch: { :e ✎ write: e, stop. }, run.
{ (‘’ xor: 0) true: { ✎ write: ‘X’.}. } catch: { :e ✎ write: e, stop. }, run.
{ (1 < ‘2’) true: { ✎ write: ‘OK’. }. } catch: { :e ✎ write: e, stop. }, run.
{ (1 < ‘2.0’) true: { ✎ write: ‘OK’. }. } catch: { :e ✎ write: e, stop. }, run.
Expand Down
2 changes: 1 addition & 1 deletion tests/test0089.ctr
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
☞ x ≔ Nil.
{
x ≔ Number between: a and: b.
((x < minimum) |: (x > maximum)) true: {
((x < minimum) ||: (x > maximum)) true: {
✎ write: (‘Invalid value!’).
Program end.
}.
Expand Down
4 changes: 2 additions & 2 deletions tests/test0117.ctr
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
(t = False) true: { ✎ write: ‘F’. }.
✎ write: ‘|’.
☞ f ≔ True.
(t = True &: f = False) true: { ✎ write: ‘T’. }.
(t = False &: f = True) true: { ✎ write: ‘F’. }.
(t = True &&: f = False) true: { ✎ write: ‘T’. }.
(t = False &&: f = True) true: { ✎ write: ‘F’. }.
✎ write: ‘|’.
☞ n ≔ Nil.
(n Nil?) true: { ✎ write: ‘T’. }.
Expand Down
2 changes: 1 addition & 1 deletion tests/test0157.ctr
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ usedMemory3 ≔ (Program memory ? 1).



( usedMemory1 = usedMemory2 &: usedMemory1 = usedMemory3 ,&: usedMemory2 = usedMemory3 ) true: {
( usedMemory1 = usedMemory2 &&: usedMemory1 = usedMemory3 ,&&: usedMemory2 = usedMemory3 ) true: {
✎ write: ‘No memory leaks here’.
}, false: {
✎ write: ‘Leaking memory...’.
Expand Down
2 changes: 1 addition & 1 deletion tests/test0159.ctr
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ usedMemory3 ≔ (Program memory ? 1).



( usedMemory1 = usedMemory2 &: usedMemory1 = usedMemory3, &: usedMemory2 = usedMemory3 ) true: {
( usedMemory1 = usedMemory2 &&: usedMemory1 = usedMemory3, &&: usedMemory2 = usedMemory3 ) true: {
✎ write: ‘No memory leaks here’.
}, false: {
✎ write: ‘Leaking memory...’.
Expand Down
2 changes: 1 addition & 1 deletion tests/test0160.ctr
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ usedMemory3 ≔ (Program memory ? 1).



( usedMemory1 = usedMemory2 &: usedMemory1 = usedMemory3, &: usedMemory2 = usedMemory3 ) true: {
( usedMemory1 = usedMemory2 &&: usedMemory1 = usedMemory3, &&: usedMemory2 = usedMemory3 ) true: {
✎ write: ‘No memory leaks here’.
}, false: {
✎ write: ‘Leaking memory...’.
Expand Down
2 changes: 1 addition & 1 deletion tests/test0161.ctr
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ usedMemory3 ≔ (Program memory ? 1).



( usedMemory1 = usedMemory2 &: usedMemory1 = usedMemory3, &: usedMemory2 = usedMemory3 ) true: {
( usedMemory1 = usedMemory2 &&: usedMemory1 = usedMemory3, &&: usedMemory2 = usedMemory3 ) true: {
✎ write: ‘No memory leaks here’.
}, false: {
✎ write: ‘Leaking memory...’.
Expand Down
2 changes: 1 addition & 1 deletion tests/test0162.ctr
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ usedMemory3 ≔ (Program memory ? 1).



( usedMemory1 = usedMemory2 &: usedMemory1 = usedMemory3, &: usedMemory2 = usedMemory3 ) true: {
( usedMemory1 = usedMemory2 &&: usedMemory1 = usedMemory3, &&: usedMemory2 = usedMemory3 ) true: {
✎ write: ‘No memory leaks here’.
}, false: {
✎ write: ‘Leaking memory...’.
Expand Down
2 changes: 1 addition & 1 deletion tests/test0163.ctr
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ usedMemory3 ≔ (Program memory ? 1).



( usedMemory1 = usedMemory2 &: usedMemory1 = usedMemory3, &: usedMemory2 = usedMemory3 ) true: {
( usedMemory1 = usedMemory2 &&: usedMemory1 = usedMemory3, &&: usedMemory2 = usedMemory3 ) true: {
✎ write: ‘No memory leaks here’.
}, false: {
✎ write: ‘Leaking memory...’.
Expand Down
2 changes: 1 addition & 1 deletion tests/test0164.ctr
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ usedMemory3 ≔ (Program memory ? 1).



( usedMemory1 = usedMemory2 &: usedMemory1 = usedMemory3, &: usedMemory2 = usedMemory3 ) true: {
( usedMemory1 = usedMemory2 &&: usedMemory1 = usedMemory3, &&: usedMemory2 = usedMemory3 ) true: {
✎ write: ‘No memory leaks here’.
}, false: {
✎ write: ‘Leaking memory...’.
Expand Down
2 changes: 1 addition & 1 deletion tests/test0165.ctr
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ usedMemory3 ≔ (Program memory ? 1).



( usedMemory1 = usedMemory2 &: usedMemory1 = usedMemory3, &: usedMemory2 = usedMemory3 ) true: {
( usedMemory1 = usedMemory2 &&: usedMemory1 = usedMemory3, &&: usedMemory2 = usedMemory3 ) true: {
✎ write: ‘No memory leaks here’.
}, false: {
✎ write: ‘Leaking memory...’.
Expand Down
2 changes: 1 addition & 1 deletion tests/test0166.ctr
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ usedMemory3 ≔ (Program memory ? 1).



( usedMemory1 = usedMemory2 &: usedMemory1 = usedMemory3, &: usedMemory2 = usedMemory3 ) true: {
( usedMemory1 = usedMemory2 &&: usedMemory1 = usedMemory3, &&: usedMemory2 = usedMemory3 ) true: {
✎ write: ‘No memory leaks here’.
}, false: {
✎ write: ‘Leaking memory...’.
Expand Down
2 changes: 1 addition & 1 deletion tests/test0167.ctr
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ usedMemory3 ≔ (Program memory ? 1).



( usedMemory1 = usedMemory2 &: usedMemory1 = usedMemory3, &: usedMemory2 = usedMemory3 ) true: {
( usedMemory1 = usedMemory2 &&: usedMemory1 = usedMemory3, &&: usedMemory2 = usedMemory3 ) true: {
✎ write: ‘No memory leaks here’.
}, false: {
✎ write: ‘Leaking memory...’.
Expand Down
2 changes: 1 addition & 1 deletion tests/test0168.ctr
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ usedMemory3 ≔ (Program memory ? 1).



( usedMemory1 = usedMemory2 &: usedMemory1 = usedMemory3, &: usedMemory2 = usedMemory3 ) true: {
( usedMemory1 = usedMemory2 &&: usedMemory1 = usedMemory3, &&: usedMemory2 = usedMemory3 ) true: {
✎ write: ‘No memory leaks here’.
}, false: {
✎ write: ‘Leaking memory...’.
Expand Down
2 changes: 1 addition & 1 deletion tests/test0170.ctr
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ usedMemory3 ≔ (Program memory ? 1).



( usedMemory1 = usedMemory2 &: usedMemory1 = usedMemory3, &: usedMemory2 = usedMemory3 ) true: {
( usedMemory1 = usedMemory2 &&: usedMemory1 = usedMemory3, &&: usedMemory2 = usedMemory3 ) true: {
✎ write: ‘No memory leaks here’.
}, false: {
✎ write: ‘Leaking memory...’.
Expand Down
2 changes: 1 addition & 1 deletion tests/test0171.ctr
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ usedMemory3 ≔ (Program memory ? 1).



( usedMemory1 = usedMemory2 &: usedMemory1 = usedMemory3, &: usedMemory2 = usedMemory3 ) true: {
( usedMemory1 = usedMemory2 &&: usedMemory1 = usedMemory3, &&: usedMemory2 = usedMemory3 ) true: {
✎ write: ‘No memory leaks here’.
}, false: {
✎ write: ‘Leaking memory...’.
Expand Down
2 changes: 1 addition & 1 deletion tests/test0172.ctr
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ usedMemory3 ≔ (Program memory ? 1).



( usedMemory1 = usedMemory2 &: usedMemory1 = usedMemory3, &: usedMemory2 = usedMemory3 ) true: {
( usedMemory1 = usedMemory2 &&: usedMemory1 = usedMemory3, &&: usedMemory2 = usedMemory3 ) true: {
✎ write: ‘No memory leaks here’.
}, false: {
✎ write: ‘Leaking memory...’.
Expand Down
2 changes: 1 addition & 1 deletion tests/test0173.ctr
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ a each: { :i :e ✎ write: ( i - 1 ), stop. }.
Program clean memory.
usedMemory3 ≔ (Program memory ? 1).

( usedMemory1 = usedMemory2 &: usedMemory1 = usedMemory3, &: usedMemory2 = usedMemory3 ) true: {
( usedMemory1 = usedMemory2 &&: usedMemory1 = usedMemory3, &&: usedMemory2 = usedMemory3 ) true: {
✎ write: ‘No memory leaks here’.
}, false: {
✎ write: ‘Leaking memory...’.
Expand Down
2 changes: 1 addition & 1 deletion tests/test0174.ctr
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ usedMemory3 ≔ (Program memory ? 1).



( usedMemory1 = usedMemory2 &: usedMemory1 = usedMemory3, &: usedMemory2 = usedMemory3 ) true: {
( usedMemory1 = usedMemory2 &&: usedMemory1 = usedMemory3, &&: usedMemory2 = usedMemory3 ) true: {
✎ write: ‘No memory leaks here’.
}, false: {
✎ write: ‘Leaking memory...’.
Expand Down
2 changes: 1 addition & 1 deletion tests/test0175.ctr
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ usedMemory3 ≔ (Program memory ? 1).



( usedMemory1 = usedMemory2 &: usedMemory1 = usedMemory3, &: usedMemory2 = usedMemory3 ) true: {
( usedMemory1 = usedMemory2 &&: usedMemory1 = usedMemory3, &&: usedMemory2 = usedMemory3 ) true: {
✎ write: ‘No memory leaks here’.
}, false: {
✎ write: ‘Leaking memory...’.
Expand Down
2 changes: 1 addition & 1 deletion tests/test0176.ctr
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ usedMemory3 ≔ (Program memory ? 1).



( usedMemory1 = usedMemory2 &: usedMemory1 = usedMemory3, &: usedMemory2 = usedMemory3 ) true: {
( usedMemory1 = usedMemory2 &&: usedMemory1 = usedMemory3, &&: usedMemory2 = usedMemory3 ) true: {
✎ write: ‘No memory leaks here’.
}, false: {
✎ write: ‘Leaking memory...’.
Expand Down
2 changes: 1 addition & 1 deletion tests/test0177.ctr
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ usedMemory3 ≔ (Program memory ? 1).



( usedMemory1 = usedMemory2 &: usedMemory1 = usedMemory3, &: usedMemory2 = usedMemory3 ) true: {
( usedMemory1 = usedMemory2 &&: usedMemory1 = usedMemory3, &&: usedMemory2 = usedMemory3 ) true: {
✎ write: ‘No memory leaks here’.
}, false: {
✎ write: ‘Leaking memory...’.
Expand Down
2 changes: 1 addition & 1 deletion tests/test0178.ctr
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ usedMemory3 ≔ (Program memory ? 1).



( usedMemory1 = usedMemory2 &: usedMemory1 = usedMemory3, &: usedMemory2 = usedMemory3 ) true: {
( usedMemory1 = usedMemory2 &&: usedMemory1 = usedMemory3, &&: usedMemory2 = usedMemory3 ) true: {
✎ write: ‘No memory leaks here’.
}, false: {
✎ write: ‘Leaking memory...’.
Expand Down
2 changes: 1 addition & 1 deletion tests/test0179.ctr
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ usedMemory3 ≔ (Program memory ? 1).



( usedMemory1 = usedMemory2 &: usedMemory1 = usedMemory3, &: usedMemory2 = usedMemory3 ) true: {
( usedMemory1 = usedMemory2 &&: usedMemory1 = usedMemory3, &&: usedMemory2 = usedMemory3 ) true: {
✎ write: ‘No memory leaks here’.
}, false: {
✎ write: ‘Leaking memory...’.
Expand Down
2 changes: 1 addition & 1 deletion tests/test0180.ctr
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ usedMemory3 ≔ (Program memory ? 1).



( usedMemory1 = usedMemory2 &: usedMemory1 = usedMemory3, &: usedMemory2 = usedMemory3 ) true: {
( usedMemory1 = usedMemory2 &&: usedMemory1 = usedMemory3, &&: usedMemory2 = usedMemory3 ) true: {
✎ write: ‘No memory leaks here’.
}, false: {
✎ write: ‘Leaking memory...’.
Expand Down
2 changes: 1 addition & 1 deletion tests/test0181.ctr
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ usedMemory3 ≔ (Program memory ? 1).



( usedMemory1 = usedMemory2 &: usedMemory1 = usedMemory3, &: usedMemory2 = usedMemory3 ) true: {
( usedMemory1 = usedMemory2 &&: usedMemory1 = usedMemory3, &&: usedMemory2 = usedMemory3 ) true: {
✎ write: ‘No memory leaks here’.
}, false: {
✎ write: ‘Leaking memory...’.
Expand Down
2 changes: 1 addition & 1 deletion tests/test0182.ctr
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ usedMemory3 ≔ (Program memory ? 1).



( usedMemory1 = usedMemory2 &: usedMemory1 = usedMemory3, &: usedMemory2 = usedMemory3 ) true: {
( usedMemory1 = usedMemory2 &&: usedMemory1 = usedMemory3, &&: usedMemory2 = usedMemory3 ) true: {
✎ write: ‘No memory leaks here’.
}, false: {
✎ write: ‘Leaking memory...’.
Expand Down
2 changes: 1 addition & 1 deletion tests/test0183.ctr
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ usedMemory3 ≔ (Program memory ? 1).



( usedMemory1 = usedMemory2 &: usedMemory1 = usedMemory3, &: usedMemory2 = usedMemory3 ) true: {
( usedMemory1 = usedMemory2 &&: usedMemory1 = usedMemory3, &&: usedMemory2 = usedMemory3 ) true: {
✎ write: ‘No memory leaks here’.
}, false: {
✎ write: ‘Leaking memory...’.
Expand Down
2 changes: 1 addition & 1 deletion tests/test0184.ctr
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ usedMemory3 ≔ (Program memory ? 1).



( usedMemory1 = usedMemory2 &: usedMemory1 = usedMemory3, &: usedMemory2 = usedMemory3 ) true: {
( usedMemory1 = usedMemory2 &&: usedMemory1 = usedMemory3, &&: usedMemory2 = usedMemory3 ) true: {
✎ write: ‘No memory leaks here’.
}, false: {
✎ write: ‘Leaking memory...’.
Expand Down
2 changes: 1 addition & 1 deletion tests/test0185.ctr
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ usedMemory3 ≔ (Program memory ? 1).



( usedMemory1 = usedMemory2 &: usedMemory1 = usedMemory3, &: usedMemory2 = usedMemory3 ) true: {
( usedMemory1 = usedMemory2 &&: usedMemory1 = usedMemory3, &&: usedMemory2 = usedMemory3 ) true: {
✎ write: ‘No memory leaks here’.
}, false: {
✎ write: ‘Leaking memory...’.
Expand Down
2 changes: 1 addition & 1 deletion tests/test0186.ctr
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ usedMemory3 ≔ (Program memory ? 1).



( usedMemory1 = usedMemory2 &: usedMemory1 = usedMemory3, &: usedMemory2 = usedMemory3 ) true: {
( usedMemory1 = usedMemory2 &&: usedMemory1 = usedMemory3, &&: usedMemory2 = usedMemory3 ) true: {
✎ write: ‘No memory leaks here’.
}, false: {
✎ write: ‘Leaking memory...’.
Expand Down
2 changes: 1 addition & 1 deletion tests/test0187.ctr
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ usedMemory3 ≔ (Program memory ? 1).



( usedMemory1 = usedMemory2 &: usedMemory1 = usedMemory3, &: usedMemory2 = usedMemory3 ) true: {
( usedMemory1 = usedMemory2 &&: usedMemory1 = usedMemory3, &&: usedMemory2 = usedMemory3 ) true: {
✎ write: ‘No memory leaks here’.
}, false: {
✎ write: ‘Leaking memory...’.
Expand Down
2 changes: 1 addition & 1 deletion tests/test0188.ctr
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ usedMemory3 ≔ (Program memory ? 1).



( usedMemory1 = usedMemory2 &: usedMemory1 = usedMemory3, &: usedMemory2 = usedMemory3 ) true: {
( usedMemory1 = usedMemory2 &&: usedMemory1 = usedMemory3, &&: usedMemory2 = usedMemory3 ) true: {
✎ write: ‘No memory leaks here’.
}, false: {
✎ write: ‘Leaking memory...’.
Expand Down
Loading

0 comments on commit e907d6b

Please sign in to comment.