Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update tests for new boolean ops

  • Loading branch information...
commit 2c3ff537090ac43da04fd41b3dda82a19fd32754 1 parent 69ad9cf
@mwh authored
View
4 tests/t005_boolean_test.grace
@@ -1,4 +1,4 @@
print(true)
print(false)
-print(true | false)
-print(true & false)
+print(true || false)
+print(true && false)
View
2  tests/t006_dotcall_test.grace
@@ -3,4 +3,4 @@ var x := false
print(x.not)
print(x.not.not)
x := x.not
-print(x & false.not)
+print(x && false.not)
View
8 tests/t009_elseif_test.grace
@@ -5,14 +5,14 @@ if (false) then {
}
if (true.not) then {
print("Fail 2 then")
-} elseif (true & false) then {
+} elseif (true && false) then {
print("Fail 2 elseif1")
-} elseif (false | true) then {
+} elseif (false || true) then {
print("OK 2 elseif2")
}
-if (false & false) then {
+if (false && false) then {
print("Fail 3 then")
-} elseif (false | false) then {
+} elseif (false || false) then {
print("Fail 3 elseif")
} else {
print("OK 3 else")
View
2  tests/t029_multipartmethodnames_test.grace
@@ -6,7 +6,7 @@ foo(3)bar(5)
def x = object {
var value := 4
method valueBetween (lower) and (upper) {
- (self.value >= lower) & (self.value <= upper)
+ (self.value >= lower) && (self.value <= upper)
}
}
method sumOf(a,b)isSumOf(c,d) {
Please sign in to comment.
Something went wrong with that request. Please try again.