Class: TC_Conversion
- Inherits:
-
Test::Unit::TestCase
- Object
- Test::Unit::TestCase
- TC_Conversion
- Includes:
- Postgres::Conversion
- Defined in:
- lib/postgres-pr/typeconv/TC_conv.rb
Instance Method Summary collapse
Methods included from Postgres::Conversion
Instance Method Details
#test_bytea ⇒ Object
14 15 |
# File 'lib/postgres-pr/typeconv/TC_conv.rb', line 14 def test_bytea end |
#test_decode_array ⇒ Object
7 8 9 10 11 12 |
# File 'lib/postgres-pr/typeconv/TC_conv.rb', line 7 def test_decode_array assert_equal ["abcdef ", "hallo", ["1", "2"]], decode_array("{ abcdef , hallo, { 1, 2} }") assert_equal [""], decode_array("{ }") # TODO: Correct? assert_equal [], decode_array("{}") assert_equal ["hallo", ""], decode_array("{hallo,}") end |