julia - julia 1.0 安装测试 - nix-pkgs - ubuntu
问题描述
我的笔记本电脑:
Linux g-TP 4.13.0-26-generic #29~16.04.2-Ubuntu SMP Tue Jan 9 22:00:44 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
我通过 nix-env 安装了 julia 并得到了以下测试结果
Test Summary: | Pass Broken Total
Overall | 37420635 327815 37748450
SUCCESS
我可以/应该做些什么来解决 327815 损坏的测试?
解决方案
标记为损坏(带有@test_broke
)的测试不会导致测试失败,所有测试都已通过,如SUCCESS
输出中的 所示。
来自以下文档@test_broken
:
help?> @test_broken
@test_broken ex
Indicates a test that should pass but currently consistently fails.
Tests that the expression ex evaluates to false or causes an exception.
Returns a Broken Result if it does, or an Error Result if the expression evaluates to true.
例子:
julia> using Test
julia> @testset begin
@test 1 == 1 # results in a Pass
@test 1 == 2 # results in a Fail
@test_broken 1 == 2 # results in a Broken
end
Test Summary: | Pass Fail Broken Total
test set | 1 1 1 3
ERROR: Some tests did not pass: 1 passed, 1 failed, 0 errored, 1 broken.
推荐阅读
- shell - 如何从 Ubuntu 命令行中删除 Maven Wrapper?
- python-2.7 - Rock, Paper, Scissors:不确定如何随机化选择然后添加 if-then 语句
- python - 如果元素不存在,硒中的条件语句
- javascript - 如何使嵌套菜单的最后一个元素可点击?
- excel - 类似名称的数组变体
- matlab - 不同边缘检测器的阈值是否具有可比性?
- ios - 如何在 UIAlertAction 之后调用函数 [做某事]?
- oauth-2.0 - 如果范围发生变化,如何在不影响生产的情况下重新提交 google oauth 验证
- glut - 当窗口不可见时,GLUT 动画导致 1 个核心的 100% 利用率
- jquery - 如何将“多级菜单添加到汉堡菜单”