assert.notDeepEqual(actual, expected[, message]) 深度地不相等比较测试,与 assert.deepEqual() 相反。 如果这两个值深度相等,将会抛出一个带有 message 属性(等于该 message 参数的值)的 AssertionError。 ...
分类:
其他好文 时间:
2018-11-05 12:22:21
阅读次数:
174
assert.notDeepStrictEqual(actual, expected[, message]) 深度地严格不相等比较测试,与 assert.deepStrictEqual() 相反。 如果这两个值深度严格相等,将会抛出一个带有 message 属性(等于该 message 参数的值)的 ...
分类:
其他好文 时间:
2018-11-05 12:19:48
阅读次数:
205
assert.deepEqual(actual, expected[, message]) 深度比较 actual 和 expected 参数,使用比较运算符(==)比较原始值。 只考虑可枚举的“自身”属性。deepEqual() 的实现不测试对象的原型,连接符号,或不可枚举的属性。这会导致一些潜在 ...
分类:
其他好文 时间:
2018-11-05 12:19:25
阅读次数:
208
启动Ubuntu后无法正常进入,停留在GUN GRUB界面
分类:
系统相关 时间:
2018-11-04 19:18:58
阅读次数:
3442
我从github下载了一个开源项目后,导入到自己Eclipse之后,遇到了这个烦人的错误消息: The declared package "com.sap.smartService" does not match the expected package "main.java.com.sap.sma ...
分类:
系统相关 时间:
2018-11-04 14:17:13
阅读次数:
445
最近因项目需要,在使用任务队列Celery的时候,出现如题错误,最终在github上里找到解决办法,记录一下。 运行环境环境:win10 + python3 + redis 2.10.6 + celery 4.2.1 win10上运行celery4.x会出现这个问题,开启任务队列一切正常(显示rea ...
分类:
其他好文 时间:
2018-11-02 10:19:50
阅读次数:
476
原因: 因为安装numpy用的是 pip来安装的 pypi官方对于numpy的库已经升级了,但是升级后的版本与其他的库不匹配 所以报错 解决: 先把已经安装的numpy卸载: pip uninstall numpy 再安装低版本的numpy: pip install -U numpy==1.14.5 ...
分类:
编程语言 时间:
2018-10-31 20:01:53
阅读次数:
755
今天把Xcode升级了,模拟器 用的12.1的系统,运行时发现项目总是崩溃,采用9.3系统的测试机发现错误日志如下: Application windows are expected to have a root view controller at the end of application l ...
分类:
移动开发 时间:
2018-10-31 15:48:52
阅读次数:
198
方式1 原因:namenode元数据被破坏,需要修复解决:恢复一下namenode 一路选择Y,一般就OK了 方式2 Need to copy the edits file to the journal node (I have 3 journal node s101 s102 s103) http ...
分类:
移动开发 时间:
2018-10-31 10:39:20
阅读次数:
519
Hyperhuffman You might have heard about Huffman encoding - that is the coding system that minimizes the expected length of the text if the codes for c ...
分类:
其他好文 时间:
2018-10-31 01:15:05
阅读次数:
172