mirror of
https://github.com/SleepingInsomniac/pixelfaucet
synced 2025-01-15 15:41:08 +01:00
13 lines
251 B
Crystal
13 lines
251 B
Crystal
require "./spec_helper"
|
|
require "../src/noise"
|
|
|
|
include PF
|
|
|
|
describe Noise do
|
|
describe ".cos_interpolate" do
|
|
it "interpolates" do
|
|
i = Noise.cosine_interpolate(0.0, 10.0, 0.5)
|
|
(4.9..5.1).includes?(i).should eq(true)
|
|
end
|
|
end
|
|
end
|