test/test_problem.rb in quizgame-0.0.3 vs test/test_problem.rb in quizgame-0.0.4
- old
+ new
@@ -3,17 +3,15 @@
require 'helper'
require "stringio"
require "test/unit"
-require "quizgame/problem.rb"
-
class TC_Problem < Test::Unit::TestCase
def setup
- @p00 = Problem.new( "vortex", "vortices", "ラテン系語尾" )
- @p01 = Problem.new( "これはペンです。", "This is a pen.", "かんたん" )
- @p02 = Problem.new( "ふ", "むべ", "第22")
- @p03 = Problem.new( "4 underscore after abc", "abc____" )
+ @p00 = QuizGame::Problem.new( "vortex", "vortices", "ラテン系語尾" )
+ @p01 = QuizGame::Problem.new( "これはペンです。", "This is a pen.", "かんたん" )
+ @p02 = QuizGame::Problem.new( "ふ", "むべ", "第22")
+ @p03 = QuizGame::Problem.new( "4 underscore after abc", "abc____" )
end
def test_exhibit_question
io = StringIO.new; @p00.exhibit_question( io ) ; io.rewind
assert_equal( ["vortex\n" ], io.readlines )