Sha256: 188fe789a53ac778c0f896b4f0503da0aa34046daa169667d863a04fa93e76d7
Contents?: true
Size: 546 Bytes
Versions: 1
Compression:
Stored size: 546 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe "SgfParser::Tree.parse" do it "should have FF in the first node" do tree = SGF::Parser.new('spec/data/ff4_ex.sgf').parse 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 sgf = "dd][de][ef]" parser = SGF::Parser.new sgf parser.get_property.should == "[dd][de][ef]" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
SgfParser-1.0.0 | spec/parser_spec.rb |