OSDN Git Service
(root)
/
shogi-server
/
shogi-server.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Getting an absolute location of this file was wrong if it was a synbolic link. This...
[shogi-server/shogi-server.git]
/
test
/
TC_usi.rb
diff --git
a/test/TC_usi.rb
b/test/TC_usi.rb
index
8dbe045
..
a102f92
100644
(file)
--- a/
test/TC_usi.rb
+++ b/
test/TC_usi.rb
@@
-102,4
+102,10
@@
EOB
assert_equal(usi_moves, cu.usi_moves)
end
assert_equal(usi_moves, cu.usi_moves)
end
+
+ def test_alphabetToDan
+ assert_equal(1, ShogiServer::Usi::alphabetToDan("axxx"))
+ assert_equal(2, ShogiServer::Usi::alphabetToDan("bxxx"))
+ assert_equal(9, ShogiServer::Usi::alphabetToDan("ixxx"))
+ end
end
end