SgfParser 0.9.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +0,0 @@
1
- $: << File.dirname(__FILE__)
2
-
3
- require 'yaml'
4
- require 'sgf/parser/properties'
5
- require 'sgf/parser/node'
6
- require 'sgf/parser/tree'
7
- require 'sgf/parser/tree_parse'
8
- require 'sgf/sgf_indent'
@@ -1,7 +0,0 @@
1
- (;GM[1]FF[4]CA[UTF-8]
2
- tartrate [7d?\]: thx
3
- ]RE[B+Resign];B[jj]BL[1280.503]CR[jj]C[redrose [1p\]: hi
4
- Jerk [7d?\]: wow
5
- Anark [11k\]: game of the day :)
6
- Jerk [7d?\]: really big match
7
- ];W[ih]WL[1277.190]CR[ih];))
@@ -1,24 +0,0 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
-
3
- describe "SgfParser::Tree.parse" do
4
-
5
- before :each do
6
- @tree = SgfParser::Tree.new :filename => 'sample_sgf/ff4_ex.sgf'
7
- end
8
-
9
- it "should have FF in the first node" do
10
- @tree.root.children[0].properties.keys.should include("FF")
11
- end
12
-
13
- it "should give an error if FF is missing from the first node" do
14
- pending "To be coded later"
15
- end
16
-
17
- it "should parse properly the AW property" do
18
- input = StringIO.new "dd][de][ef]"
19
- tree = SgfParser::Tree.new
20
- tree.instance_variable_set "@stream", input
21
- tree.get_property.should == "[dd][de][ef]"
22
- end
23
-
24
- end