Sha256: 454c07eb26413a632e02a16f12479f14c643618a2ca0861adf499685f192efd4
Contents?: true
Size: 420 Bytes
Versions: 3
Compression:
Stored size: 420 Bytes
Contents
require 'spec_helper' RSpec.describe Tsuku::Easing do let(:elapsed_ms) { 500 } let(:duration_ms) { 1000 } let(:initial_value) { 10 } let(:final_value) { 20 } let(:value_delta) { final_value - initial_value } it "computes linear easing correctly" do value = Tsuku::Easing.linear( elapsed_ms, initial_value, value_delta, duration_ms ) expect(value).to eq(15) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tsuku-0.2.0 | spec/easing_spec.rb |
tsuku-0.1.2 | spec/easing_spec.rb |
tsuku-0.1.1 | spec/easing_spec.rb |