public
Description: The Nu programming language.
Homepage: http://programming.nu
Clone URL: git://github.com/timburks/nu.git
nu / test / test_types.nu
100644 14 lines (12 sloc) 0.563 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
;; test_types.nu
;; tests for Nu type handling.
;;
;; Copyright (c) 2007 Tim Burks, Neon Design Technology, Inc.
 
(class TestTypes is NuTestCase
     
     ;; void methods should always return void
     (imethod (id) testVoidMethodReturnTypes is
          (class TestTypesClass is NSObject
               (imethod (void) test-imethod is 1234)
               (cmethod (void) test-cmethod is 1234))
          (assert_equal nil (((TestTypesClass alloc) init) test-imethod))
          (assert_equal nil (TestTypesClass test-cmethod))))