refactor: rename Sequence method forall to all across core lib, C source, and test files

This commit is contained in:
Gavin Schulz
2015-01-15 07:19:31 +00:00
parent cb1703409c
commit adee8ac482
5 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -1,9 +1,9 @@
var a = [1, 2, 3]
var b = a.forall {|x| x > 1 }
var b = a.all {|x| x > 1 }
IO.print(b) // expect: false
var d = a.forall {|x| x > 0 }
var d = a.all {|x| x > 0 }
IO.print(d) // expect: true
var e = [].forall {|x| false }
var e = [].all {|x| false }
IO.print(e) // expect: true
+1 -1
View File
@@ -1 +1 @@
[1, 2, 3].forall {|x| "string" } // expect runtime error: String does not implement method '!' with 0 arguments.
[1, 2, 3].all {|x| "string" } // expect runtime error: String does not implement method '!' with 0 arguments.
+1 -1
View File
@@ -1 +1 @@
[1, 2, 3].forall("string") // expect runtime error: String does not implement method 'call' with 1 argument.
[1, 2, 3].all("string") // expect runtime error: String does not implement method 'call' with 1 argument.