Re: [Quickfix-developers] Using DataDictionary.getFieldName from Ruby
Brought to you by:
orenmnero
|
From: Toli K. <to...@ma...> - 2006-10-12 16:34:58
|
Oren,
This is great. Thank you very much. This checkin works, and it's
exatly what we needed.
i'm pasting a very short ruby test program i wrote to test this out.
perhaps it could be included in the right place (and tweaked to get
the spec location correct) for automated builds, and then in the
future i'll add more tests doing basic verification of the Ruby port.
thanks again for your fast reponses!
---
require 'quickfix_ruby'
require 'quickfix_fields'
require 'test/unit'
class TradeTest < Test::Unit::TestCase
def test_data_dictionary
d = Quickfix::DataDictionary.new("spec/FIX42.xml")
assert_not_nil d
assert_equal 54, Quickfix::Side.new.getField
assert_equal "BUY", d.getValueName(Quickfix::Side.new.getField,
Quickfix::Side_BUY())
assert_nil d.getValueName(Quickfix::Side.new.getField, "no_such_field")
assert_equal 54, d.getFieldTag("Side")
end
end
On 10/12/06, Oren Miller <or...@qu...> wrote:
> In addition to the previous fixes, I also added support for output
> input arguments such as getFieldTag. Works the same way (i.e.)
> getFieldTag( "Side" ), will return 54.
|