Permalink
Browse files

Enable class method tests

  • Loading branch information...
Tony Arcieri
Tony Arcieri committed Dec 29, 2010
1 parent c864772 commit 9a5ed6a92ec9cda27d6ef9274858740143284aae
Showing with 7 additions and 10 deletions.
  1. +6 −9 test/core/class_test.re
  2. +1 −1 test/runner.re
View
@@ -1,19 +1,16 @@
#
# class_test.re: tests for Reia's classes
-# Copyright (C)2008-10 Tony Arcieri
+# Copyright (C)2010 Tony Arcieri
#
# Redistribution is permitted under the MIT license. See LICENSE for details.
#
-class IHasSingleton
- def self.example1
+class IHasClassMethods
+ def self.foo
+ :class_method
end
- class self
- def example2
- end
-
- def example3
- end
+ def foo
+ :instance_method
end
end
View
@@ -14,7 +14,7 @@ tests = [
"range", "regexp", "numeric", "dict", "atom", "fun"
]),
("core", [
- "blocks", "branching", "funrefs", "object", #"class",
+ "blocks", "branching", "funrefs", "object", "class",
"operator", "exception", "messaging"
]),
("lib", ["json"])

0 comments on commit 9a5ed6a

Please sign in to comment.