Sha256: edca1570428e35ecb6ee567e0d8247097259f6686b51a2a8b3499e288bef445f
Contents?: true
Size: 667 Bytes
Versions: 1
Compression:
Stored size: 667 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe "SgfParser::Tree.parse" do before :each do @tree = SgfParser::Tree.new :filename => 'sample_sgf/ff4_ex.sgf' end it "should have FF in the first node" do @tree.root.children[0].properties.keys.should include("FF") end it "should give an error if FF is missing from the first node" do pending "To be coded later" end it "should parse properly the AW property" do input = StringIO.new "dd][de][ef]" tree = SgfParser::Tree.new tree.instance_variable_set "@stream", input tree.get_property.should == "[dd][de][ef]" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
SgfParser-0.9.1 | spec/tree_parser_spec.rb |