package dot.junit.opcodes.int_to_long;
import dot.junit.DxTestCase;
import dot.junit.DxUtil;
import dot.junit.opcodes.int_to_long.d.T_int_to_long_1;
import dot.junit.opcodes.int_to_long.d.T_int_to_long_6;
public class Test_int_to_long extends DxTestCase {
/**
* @title Argument = 123456
*/
public void testN1() {
T_int_to_long_1 t = new T_int_to_long_1();
assertEquals(123456l, t.run(123456));
}
/**
* @title Argument = 1
*/
public void testN2() {
T_int_to_long_1 t = new T_int_to_long_1();
assertEquals(1l, t.run(1));
}
/**
* @title Argument = -1
*/
public void testN3() {
T_int_to_long_1 t = new T_int_to_long_1();
assertEquals(-1l, t.run(-1));
}
/**
* @title Type of argument - float. Dalvik doens't distinguish 32-bits types internally,
* so this conversion of float to long makes no sense but shall not crash the VM.
*/
public void testN8() {
T_int_to_long_6 t = new T_int_to_long_6();
try {
t.run(1.333f);
} catch (Throwable e) {
}
}
/**
* @title Argument = 0
*/
public void testB1() {
T_int_to_long_1 t = new T_int_to_long_1();
assertEquals(0l, t.run(0));
}
/**
* @title Argument = Integer.MAX_VALUE
*/
public void testB2() {
T_int_to_long_1 t = new T_int_to_long_1();
assertEquals(2147483647l, t.run(Integer.MAX_VALUE));
}
/**
* @title Argument = Integer.MIN_VALUE
*/
public void testB3() {
T_int_to_long_1 t = new T_int_to_long_1();
assertEquals(-2147483648l, t.run(Integer.MIN_VALUE));
}
/**
* @constraint B1
* @title type of argument - double
*/
public void testVFE1() {
try {
Class.forName("dot.junit.opcodes.int_to_long.d.T_int_to_long_2");
fail("expected a verification exception");
} catch (Throwable t) {
DxUtil.checkVerifyException(t);
}
}
/**
*
* @constraint B1
* @title type of argument - long
*/
public void testVFE2() {
try {
Class.forName("dot.junit.opcodes.int_to_long.d.T_int_to_long_3");
fail("expected a verification exception");
} catch (Throwable t) {
DxUtil.checkVerifyException(t);
}
}
/**
* @constraint A24
* @title number of registers
*/
public void testVFE3() {
try {
Class.forName("dot.junit.opcodes.int_to_long.d.T_int_to_long_4");
fail("expected a verification exception");
} catch (Throwable t) {
DxUtil.checkVerifyException(t);
}
}
/**
* @constraint B1
* @title type of argument - reference
*/
public void testVFE4() {
try {
Class.forName("dot.junit.opcodes.int_to_long.d.T_int_to_long_5");
fail("expected a verification exception");
} catch (Throwable t) {
DxUtil.checkVerifyException(t);
}
}
/**
* @constraint A23
* @title number of registers
*/
public void testVFE5() {
try {
Class.forName("dot.junit.opcodes.int_to_long.d.T_int_to_long_7");
fail("expected a verification exception");
} catch (Throwable t) {
DxUtil.checkVerifyException(t);
}
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
Test_int_to_long.rar_ARGUMENT!

共1个文件
java:1个

1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 154 浏览量
2022-09-23
13:38:54
上传
评论
收藏 757B RAR 举报
温馨提示
@title Type of argument - float. Dalvik doens t distinguish 32-bits types internally, so this conversion of float to long makes no sense but shall not crash the VM.
资源推荐
资源详情
资源评论






















收起资源包目录


共 1 条
- 1
资源评论


钱亚锋
- 粉丝: 124
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- 中铁最成功的项目管理经验.doc
- 种系统工具的优化程序您不要在Windows上需要.pdf
- 数据库系统原理第七章答案.ppt
- 2022年上半年软件设计师考试上午模拟真题.docx
- 小区网络综合布线系统设计方案.doc
- 恢复Excel未保存文件的方法【会计实务操作教程】.pptx
- 基于硬盘方式的LINUX双系统安装操作系统课程实验报告.doc
- 从技术专家到管理者的关键转型
- 网络管理员述职报告.doc
- 企业项目管理新的解决方案.doc
- -嵌入式系统外围设备.pptx
- 科普知识网站设计与实现文献综述.docx
- 动态规划算法原理及应用样本.doc
- 基于单片机的热水器温度控制系统设计.doc
- 通信保障年度工作总结.docx
- 初中计算机教学年度个人工作总结.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
