文章标题
来源:互联网 发布:游戏王gx结局知乎 编辑:程序博客网 时间:2024/06/06 12:25
15331334 徐楚燕 testreport
version 1.0.0
修订历史
Class JumperTest
Description
This class is used to test class Jumper
.
测试计划
测试Jumper
类的 move()
, canMove()
, act()
,putSelfInGrid()
函数。
Method Summary
testPutSelf
Test for putSelfInGrid()
.
Test Result: Pass. putSelfInGrid() works fine.
testcanMovewithActors
Test the return value of canMove()
when Actor
s and Jumper
are positioned like this:
Test Result: All test for canMove() returns false. Test Pass.
canMove() works fine.
testAct
Given in BoundedGrid
, starting from (0,0), test the result Location
of invoking five times of act()
.
Test Result: This test fail as the test condition(0,7) is wrong.
act() works fine.
testMoveinUnbounded
Given in UnboundedGrid
, starting from (0,0), test the result of invoking Move()
.
Test Result: In unboundedGrid, Actor can have location with negative values. Test Pass.
move() works fine in UnboundedGrid.
testMoveinBounded
Given in BoundedGrid
, starting from (0,0), test the result of invoking Move()
.
Test Result: In BoundedGrid, Actor can not have location with negative values. Invoking move() directly cause the Jumper moves into invalid grid and therefore elimates itself.
As a result, this test will pass because the location will be null.
Test Pass.
move() works fine in BoundedGrid.
testcanMoveinBounded
Given in BoundedGrid
, starting from (0,0), test the return value of canMove()
.
Test Result: The first test of canMove() will get a false value as the Jumper faces north at the initial state. Test Pass.
canMove() works fine in BoundedGrid.
- 文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题 文章标题 文章标题 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 广东工业大学第12届ACM程序设计大赛 Problem E: 倒水(Water)
- 关于vs2015每次打开都要配置opencv问题
- CCF 学生排队 Java实现
- struts2 基本配置和介绍
- 翻转链表
- 文章标题
- TOJ 4483: Common Digit Pairs
- 学习淘淘商城第十六课(展示后台管理页面)
- 初识嵌入式
- Java中垃圾回收机制
- NBUT1223-Friends number
- Mac上安装MyEclipse2015 Mac破解版下载
- 朝鲜战争中的牺牲者
- rabbitMq使用笔记一:Window下安装使用RabbitMQ