要知道甚至这个测试都有缺点,因为它假定短语包括空格并且可以自动换行;但对于一些基于非拉丁字符的语言,情况并非如此。
Recognize that even this test has a weakness, since it assumes that phrases will include spaces and can word wrap; this is not true for some non-Latin character-based languages.
这是一个非常简单但却非常重要的测试;如何才能确保一个字符只会映射为一个惟一的编码呢?
This is a simple but important test; can I be sure that a character maps to a unique number?
您可以使用查询字符串(而不是仅使用任务名称)来指定测试。
You could have specified your test using a query string instead of just the task name.
该测试程序链接到再次打印该消息的两个函数上:第一次都用大写字符,第二次都用小写字符。
The test links to two functions that print the message again: the first time in all uppercase characters and then again in lowercase characters.
可以用二进制数据或ascii文本的形式最多发送15页的数据,每页最多有93个字符;测试装置仅提供对ascii消息的支持。
The data can be sent either as binary data or ASCII text up to 15 pages in length, with a page being up to 93 characters in length; the test set only provides support for ASCII messages.
在另一场测试中,一个完全随机化的数据库(由ascii字符和数字组成)从250MB变为185 MB。
In another test, a completely randomized database (consisting of both ASCII characters and numerics) went from 250mb to 185mb.
理解不同的测试并认识到shell还能把一些操作符解释成shell元字符,是成为高级shell用户的重要一步。
Understanding the various tests and knowing that the shell can also interpret some operators as shell metacharacters is an important step to becoming a power shell user.
此外,以更新现有的档案,执行者将寻找新的测试数据文件(例如,linebreaking断行)和新的XML数据文件,并包括了所有的Unicode字符属性。
In addition to updated existing files, implementers will find new test data files (for example, for linebreaking) and new XML data files that encapsulate all of the Unicode character properties.
未使用的和改变的列用行进行测量。所以在4 月9 号的工作版本中,会测试字符串 C 的一些行。
The Unused and Change columns are measured in lines, so ten fewer lines of strings.c were tested in the Apr 9 build.
在这种测试内,您给出的是一个代表某种数字符号的图像,用户必须读懂并在表单字段内输入这些符号。
In this test you present an image representing some alphanumeric characters that the user must read and type into a form field.
清单2给出了一些值得为任何字符串实现创建的测试。
Listing 2 shows some of the tests worth creating for any string implementation.
您可以使用此程序测试上面提供的搜索字符串,可以验证您看到了期望的结果。
You can use this program to test the search strings presented above, and see that you get the expected results.
清单3展示了相同的代码,但是添加了测试单词字符串长度和频率的逻辑。
Listing 3 shows the same code with logic added that tests for word string length and frequency.
您可以使用您自己的字符串,或者来自另一个数据源的值来替换该值,这些数据源包括数据汇,引用,通用代码,或者其他的测试变量。
You can substitute this value with your own text string or a value from another data source, such as a data pool, reference, custom code, or another test variable.
在现有的报表中添加或修改一个列标题和描述,报表属性文件中的测试字符串定义也需要被添加以及修改。
A column heading and description is added or changed in an existing report, its test string definition also needs to be added or changed in the report property file.
数组的内容然后被连接成一个长字符串,字符串又被加载到一个XML对象中,在本测试案例中还被回显。
The contents of the array are then imploded into one long string, which is in turn loaded into an XML object and (in this test case) echoed.
通过使用正则表达式引擎,很容易测试出字符串是否与模式匹配。
Using a regular expression engine, it is easy to test if a string matches the pattern.
您需要修改发送简单文本字符串的初始测试客户机,使其发送XML消息。
You will modify the original test client that sent a simple text string to send an XML message.
较理想的做法是,字符串有一个如error或与之相似的子串(见蓝色粗体的语句),这个子串允许测试者很快地在输出文件中查找到错误。
Ideally, the string of characters should have a substring such as error or something similar (see the statement in bold blue), which will allow the tester to quickly find the error in the output file.
这个基准测试的关键(如清单1所示)在于将大量的字符串拼接在一起。
The essence of the benchmark (as seen in listing 1) is to take a couple of strings and concatenate them together.
清单2显示了字符串测试的更多示例。
对于双向字符集(BIDI)测试:使用希伯来语或阿拉伯语。
For bidirectional character set testing (bidi) — Use Hebrew or Arabic.
我编写处理这些非正式解析任务的程序的方法总是有点象大杂烩,其中包括定制状态机、正则表达式以及上下文驱动的字符串测试。
The way I have programmed these informal parsing tasks has always been somewhat of a hodgepodge of custom state-machines, regular expressions, and context-driven string tests.
更复杂的测试场景(其中可能包含多个未完成任务,每个任务需要使用不同的数据完成)将需要使用查询字符串。
More complex test scenarios, where there might be several outstanding tasks, each needing completion with different data, will require the use of a query string.
事实上,这是个棘手的测试,只要您能够把DNA表示为字符串,就可以利用一个确定串之间的差异的CPAN模块。
This is a tricky test, actually, and a CPAN module for finding the distance of strings might be useful here, as long as you can represent the DNA as a string.
为了加快字符串等同性测试的速度,可以打开该特性。
测试新配置,检查语法错误或不受支持的字符集错误。
Test the new configuration for any syntax or unsupported character set errors.
对于单字节字符集(single - byte character set,SBCS)测试:使用德语,因为该语言比英语要长。
For single-byte character set testing (SBCS) — Use German, as this language is lengthy compared to English.
正确的做法是显式地测试字符串是否为空,使用相应的内置函数。
The correct solution is to explicitly test strings for emptiness using the appropriate built-in function.
在“string”框内输入要发送到Web服务的测试字符串,并单击“Go”按钮,以调用服务,如下面的图7中所示。
Enter a test string to send to your Web service in the "string" box and click the "Go" button to invoke the service, as per Figure 7 below.
应用推荐