码迷,mamicode.com
首页 >  
搜索关键字:assert    ( 2161个结果
JMeter学习(三十四)测试报告优化
如果按JMeter默认设置,生成报告如下: 从上图可以看出,结果信息比较简单,对于运行成功的case,还可以将就用着。但对于跑失败的case,就只有一行assert错误信息。(信息量太少了,比较难找到失败原因) 1、下载style文件:jmeter.results.shanhe.me.xsl 2、把
分类:其他好文   时间:2016-03-16 14:06:21    阅读次数:639
简明python教程 --C++程序员的视角(九):函数式编程、特殊类方法、测试及其他
exec,eval和assert语句,repr函数 用来创建简短的单行匿名函数 lambda需要一个参数,后面仅跟单个表达式作为函数体,而表达式的值被这个新建的函数返回。注意,即便是print语句也不能用在lambda形式中,只能使用表达式。 >>> ftwice = lambda s:s*2 >>
分类:编程语言   时间:2016-03-15 20:38:50    阅读次数:219
一些简单的Assert
 
分类:其他好文   时间:2016-03-14 13:46:52    阅读次数:149
数据结构——广义表
实现广义表的内部基本函数,创建,拷贝,清除,计算表深度及结点个数等函数。代码如下:#pragmaonce; #include<assert.h> //表结点类型 enumNodeType { HEAD, VALUE, SUB, }; //表各结点的成员 structGeneralizedNode { NodeType_type;//结点类型 GeneralizedNode*_next;..
分类:其他好文   时间:2016-03-14 02:01:25    阅读次数:236
顺序表
SeqList.h文件:#pragmaonce#include<string.h>#include<assert.h>#defineMAX_SIZE5typedefintDataType;typedefstructSeqList{ DataTypearray[MAX_SIZE]; size_tsize;}SeqList;//打印单链表voidPrintSeqList(SeqList*pSeq);//初始化voidInitSeqList(SeqList*pSeq);..
分类:其他好文   时间:2016-03-12 23:10:32    阅读次数:262
用C++实现顺序表
typedefintDataType;#defineDEFAULT_CAPACITY7#defineDEFAULT_INC9#include<iostream>#include<assert.h>usingnamespacestd;classSeqlist{friendostream&operator<<(ostream&os,constSeqlist&s);public: //构造函数 Seqlist(intcapacity=DEFAULT..
分类:编程语言   时间:2016-03-12 14:53:34    阅读次数:195
c语言常见50题 及答案(递归 循环 以及常见题目)
#define_CRT_SECURE_NO_WARNINGS #include<iostream> usingnamespacestd; #include<assert.h> #include<stdio.h> #include<string.h> 15.一小球从100米高度自由落下,每次落地后反跳回 原高度的一半,再落下,求它在第10次落地时,共经过多少米? 第10..
分类:编程语言   时间:2016-03-12 14:52:56    阅读次数:309
简单模拟STL库中string的实现
#include<iostream> #include<assert.h> #include<malloc.h> #defineCAPACITY3 usingnamespacestd; classString { public: String(char*str="") :_str((char*)malloc(strlen(str)+1)), _size(strlen(str)) { strcpy(_str,str); _capacity=_size+1;..
分类:其他好文   时间:2016-03-11 22:32:35    阅读次数:183
c++的c风格字符串函数的实现
要注意使用断言判断传入的字符串非空。 1 #include <cassert> 2 3 //字符串复制 4 char* StrCpy(char *dest, const char *src) 5 { 6 assert(dest != nullptr && src != nullptr); 7 cha
分类:编程语言   时间:2016-03-11 22:03:04    阅读次数:155
本站点 头文件 本人代码由centos6.5虚拟机运行
wz.h ////////////////////////// #define_CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #include<assert.h> #include<errno.h> #include<string.h> #include<time.h> #include<time.h> #include<stdarg.h> ..
分类:其他好文   时间:2016-03-11 06:43:29    阅读次数:185
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!