summaryrefslogtreecommitdiffstats
path: root/test/tc_function.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/tc_function.rb')
-rw-r--r--test/tc_function.rb25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/tc_function.rb b/test/tc_function.rb
new file mode 100644
index 000000000..15c9ad6e1
--- /dev/null
+++ b/test/tc_function.rb
@@ -0,0 +1,25 @@
+$:.unshift '../lib' if __FILE__ == $0 # Make this library first!
+
+require 'blink/function'
+require 'blink/fact'
+require 'test/unit'
+
+# $Id$
+
+class TestFunctions < Test::Unit::TestCase
+ def test_retrieve
+ vars = %w{operatingsystem}
+
+ vars.each { |var|
+ value = nil
+ assert_nothing_raised() {
+ value = Blink::Function["retrieve"].call(var)
+ }
+
+ assert_equal(
+ Blink::Fact[var],
+ value
+ )
+ }
+ end
+end