Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 14 lines (10 sloc) 0.327 kb
47903b2 @timburks Added "defined" operator that tests whether or not a symbol is defined. ...
authored
1 ;; test_symbols.nu
2 ;; tests for Nu symbols.
3 ;;
29db4cd @timburks Company name changed.
authored
4 ;; Copyright (c) 2009 Tim Burks, Radtastical Inc.
47903b2 @timburks Added "defined" operator that tests whether or not a symbol is defined. ...
authored
5
6 (class TestSymbols is NuTestCase
7
8 (- testDefined is
9 (assert_equal nil (defined madeUpName))
10 (assert_equal t (defined 123))
11 (set madeUpName 123)
12 (assert_equal t (defined madeUpName))))
045f219 @timburks Replace "cmethod" and "imethod" with "+" and "-".
authored
13
Something went wrong with that request. Please try again.