Re: [Quickfix-developers] Using DataDictionary.getFieldName from Ruby
Brought to you by:
orenmnero
|
From: Oren M. <or...@qu...> - 2006-10-12 18:02:35
|
Thanks, I organized this into a test suite and created a test.sh in the ruby directory and a runut_ruby in the test directory. I also discovered through a unit tests that getFieldTag was returning a 0 instead of nil on failure, so I fixed that as well. --oren On Oct 12, 2006, at 11:34 AM, Toli Kuznets wrote: > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/ > html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > 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. > > ---------------------------------------------------------------------- > --- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |