我在assertEquals()语句中使用regexp时遇到问题.这是声明.
Assert.assertEquals("regexp:*TST-*[0-9]{5}", driver.getTitle());
Run Code Online (Sandbox Code Playgroud)
但我得到这个错误:
org.junit.ComparisonFailure: expected:<[regexp:*TST-*[0-9]{5}]> but was:<[[#TST-23570] This is the new summary]>
Run Code Online (Sandbox Code Playgroud)
看起来regexp只是一个被比较的字符串.我错过了什么?