Sha256: 6a1928fba11ba3f7d80338379d6c8d5d926afc76763a043358a05a4e34e52448
Contents?: true
Size: 314 Bytes
Versions: 2
Compression:
Stored size: 314 Bytes
Contents
require 'spec_helper' describe Straightedge::Figure do it 'should compute adjacent positions' do expect([[0,0]].adjacent).to eql([[0, -1], [0, 1], [1, 0], [-1, 0], [1, -1], [1, 1], [-1, -1], [-1, 1]]) #[0,1]) end it 'should compute centroid' do expect([[0,0],[2,2]].center).to eql([1,1]) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
straightedge-0.1.2 | spec/straightedge/figures/figure_spec.rb |
straightedge-0.1.1 | spec/straightedge/figures/figure_spec.rb |