Sha256: 8b1c8110a21f174aeab0ddcd280f29598efcb45108211beebb689e9cb2031be1

Contents?: true

Size: 980 Bytes

Versions: 27

Compression:

Stored size: 980 Bytes

Contents

#
#  rhoruby_spec.rb
#  rhodes
#
#  Copyright (C) 2008 Rhomobile, Inc. All rights reserved.
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
require 'spec/spec_helper'

describe "RhoRuby" do
  
  it "should compute string to_f to test flt_rounds" do
    "100.250".to_f.should == 100.25
  end
  
  it "should compute == on float to test flt_rounds" do
    1.0.should == 1
  end
end

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
rhodes-2.0.3 spec/framework_spec/app/spec/rhoruby_spec.rb
rhodes-2.0.2 spec/framework_spec/app/spec/rhoruby_spec.rb
rhodes-2.0.0 spec/framework_spec/app/spec/rhoruby_spec.rb
rhodes-2.0.0.rc2 spec/framework_spec/app/spec/rhoruby_spec.rb
rhodes-2.0.0.rc1 spec/framework_spec/app/spec/rhoruby_spec.rb
rhodes-2.0.0.beta11 spec/framework_spec/app/spec/rhoruby_spec.rb
rhodes-2.0.0.beta10 spec/framework_spec/app/spec/rhoruby_spec.rb
rhodes-2.0.0.beta9 spec/framework_spec/app/spec/rhoruby_spec.rb
rhodes-2.0.0.beta8 spec/framework_spec/app/spec/rhoruby_spec.rb
rhodes-2.0.0.beta7 spec/framework_spec/app/spec/rhoruby_spec.rb
rhodes-2.0.0.beta6 spec/framework_spec/app/spec/rhoruby_spec.rb
rhodes-2.0.0.beta4 spec/framework_spec/app/spec/rhoruby_spec.rb
rhodes-2.0.0.beta3 spec/framework_spec/app/spec/rhoruby_spec.rb
rhodes-1.5.5 spec/framework_spec/app/spec/rhoruby_spec.rb
rhodes-2.0.0.beta2 spec/framework_spec/app/spec/rhoruby_spec.rb
rhodes-2.0.0.beta1 spec/framework_spec/app/spec/rhoruby_spec.rb
rhodes-1.5.4 spec/framework_spec/app/spec/rhoruby_spec.rb
rhodes-1.5.3 spec/framework_spec/app/spec/rhoruby_spec.rb
rhodes-1.5.2 spec/framework_spec/app/spec/rhoruby_spec.rb
rhodes-1.5.1 spec/framework_spec/app/spec/rhoruby_spec.rb