[Tomoe-cvs 1339] CVS update: tomoe/test

Back to archive index

Kouhei Sutou kous****@users*****
2006年 11月 29日 (水) 00:07:03 JST


Index: tomoe/test/context_spec.rb
diff -u tomoe/test/context_spec.rb:1.16 tomoe/test/context_spec.rb:1.17
--- tomoe/test/context_spec.rb:1.16	Tue Nov 28 12:19:01 2006
+++ tomoe/test/context_spec.rb	Wed Nov 29 00:07:02 2006
@@ -6,7 +6,6 @@
     return @@context if @@context
     @@context = Tomoe::Context.new
     @@context.load_config(@config_file.path)
-    @@context.load_recognizer(recognizer_dir, "simple")
     @@context
   end
 
Index: tomoe/test/dict_spec.rb
diff -u tomoe/test/dict_spec.rb:1.9 tomoe/test/dict_spec.rb:1.10
--- tomoe/test/dict_spec.rb:1.9	Tue Nov 28 17:11:31 2006
+++ tomoe/test/dict_spec.rb	Wed Nov 29 00:07:02 2006
@@ -6,7 +6,7 @@
   end
 
   specify "should load" do
-    dict = Tomoe::Dict.new(@dict_file.path, true, dict_dir, "xml")
+    dict = Tomoe::DictLoader.instantiate("xml", @dict_file.path, true)
     a = dict[@utf8]
     a.writing.strokes.should == @strokes
   end
Index: tomoe/test/tomoe-spec-utils.rb
diff -u tomoe/test/tomoe-spec-utils.rb:1.10 tomoe/test/tomoe-spec-utils.rb:1.11
--- tomoe/test/tomoe-spec-utils.rb:1.10	Tue Nov 28 17:11:31 2006
+++ tomoe/test/tomoe-spec-utils.rb	Wed Nov 29 00:07:02 2006
@@ -142,3 +142,8 @@
     end
   end
 end
+
+Tomoe::DictLoader.unload
+Tomoe::DictLoader.load(TomoeSpecUtils::Config.dict_dir)
+Tomoe::RecognizerLoader.unload
+Tomoe::RecognizerLoader.load(TomoeSpecUtils::Config.recognizer_dir)


tomoe-cvs メーリングリストの案内
Back to archive index