Update of /cvsroot/ruby-dbi/src/lib/dbi/test
In directory sc8-pr-cvs1:/tmp/cvs-serv20108
Modified Files:
testsqlbind.rb
Log Message:
added new test cases for "-" bug
Index: testsqlbind.rb
===================================================================
RCS file: /cvsroot/ruby-dbi/src/lib/dbi/test/testsqlbind.rb,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- testsqlbind.rb 1 Feb 2003 13:51:24 -0000 1.6
+++ testsqlbind.rb 16 May 2003 09:44:07 -0000 1.7
@@ -62,6 +62,17 @@
assert_equal res, bind(self, sql, [10])
end
+ def test_minus_bug
+ sql = "SELECT 1 - 3"
+ res = "SELECT 1 - 3"
+ assert_equal res, bind(self, sql, [])
+ end
+
+ def test_minus2
+ sql = "SELECT * from test --Dan's query"
+ assert_equal sql, bind(self, sql, [])
+ end
+
end
$last_suite.add_test (TestSqlBind.suite)
@@ -191,6 +202,6 @@
######################################################################
if __FILE__ == $0 then
- RUNIT::CUI::TestRunner.quiet_mode = true
+ RUNIT::CUI::TestRunner.quiet_mode = false
RUNIT::CUI::TestRunner.run ($last_suite)
end
|