Project

General

Profile

Actions

question_answer #4134

open

answer_ana

Added by UserName LastName over 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
01/26/2024
Due date:
% Done:

0%

Estimated time:
answer:

- '选项A: assertTrue 断言, 用于判断一个表达式,在表达式条件为false的时候触发异常'
- '选项B: assertThat("h",is(containsString("·this")))断言为真'
- '选项C: Hamcrest 用于编写断言的框架,使用这个框架编写断言,提高可读性及开发测试的效率,支持多种语言java,python,ruby,object-c,php等'

answer_analysis:

断言,Hamcrest 数值匹配 assert_that(1,close_to(0.5,0.5)) 断言为真,close_to()方法判断接近某个值,0-1这个范围都为真。
...

No data to display

Actions

Also available in: Atom PDF