Sha256: 99baced9e9fbff4b70f36b6f6b8c98bc38b7a98573e3c2d913aeb4df630d3c81
Contents?: true
Size: 597 Bytes
Versions: 5
Compression:
Stored size: 597 Bytes
Contents
require_relative 'spec_helper' require 'pp' describe KTree do include KTree let(:ktree) do KTree.create(depth: 6) do |node, vchildren| node.refob = rand(4) node.refob != 0 end end it "created a tree" do expect(ktree).to_not be_nil end it "has nodes" do expect(ktree.root).to_not be_nil end it "upper and lower coords are never equal" do ktree.each do |node| expect(node.upper).to_not eq node.lower end end it "refob should be set to something" do ktree.each do |node| expect(node.refob).to_not be_nil end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
k-tree-0.0.8 | spec/k-tree_spec.rb |
k-tree-0.0.7 | spec/k-tree_spec.rb |
k-tree-0.0.6 | spec/k-tree_spec.rb |
k-tree-0.0.3 | spec/k-tree_spec.rb |
k-tree-0.0.2 | spec/k-tree_spec.rb |