# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ | # |_|\___||___/\__| # # for lib/facets/attributes.rb # # Extracted Mon Sep 03 16:23:08 -0700 2007 # w/ Test Extraction Ratchet # require 'facets/attributes.rb' require 'test/unit' class TC01 < Test::Unit::TestCase class A attr_accessor :x, :cast=>"to_s" end def test_09_001 a = A.new assert_equal( [:x], A.attributes ) end end class TC10 < Test::Unit::TestCase class A attr :x, :cast=>"to_s" end def test_10_001 assert_equal( "to_s", A.ann(:x,:cast) ) end end