Permalink
Browse files

Update tests to work with Ruby 1.9.2.

  • Loading branch information...
1 parent 5ddb1ee commit b5a492048e4e95c4a3afb7031d687eb24009a52b @wtaysom committed Jun 23, 2011
Showing with 14 additions and 2 deletions.
  1. +11 −1 README.md
  2. +3 −1 test/helper.rb
View
@@ -29,7 +29,7 @@ Rglpk provides two primary files: ext/glpk_wrapper.c which is a Swig generated w
An example:
- # The same Brief Example as found in section 1.3 of
+ # The same Brief Example as found in section 1.3 of
# glpk-4.44/doc/glpk.pdf.
#
# maximize
@@ -80,6 +80,16 @@ An example:
printf("z = %g; x1 = %g; x2 = %g; x3 = %g\n", z, x1, x2, x3)
#=> z = 733.333; x1 = 33.3333; x2 = 66.6667; x3 = 0
+# Testing
+
+Test everything with:
+
+ > rake test
+
+Test a specific test with:
+
+ > ruby test/test_brief_example.rb # or what have you.
+
# License
Copyright (C) 2007 Alex Gutteridge
View
@@ -1,3 +1,5 @@
+here = File.expand_path(File.dirname(__FILE__))
+
require 'test/unit'
$LOAD_PATH << './ext'
-require 'lib/rglpk'
+require here+'/../lib/rglpk'

0 comments on commit b5a4920

Please sign in to comment.