Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Unity
提交
2c7629a0
T
Third Party Unity
项目概览
OpenHarmony
/
Third Party Unity
1 年多 前同步成功
通知
36
Star
144
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Unity
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
2c7629a0
编写于
4月 07, 2017
作者:
M
Mark VanderVoord
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Documentation Updates
上级
b8bfb01e
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
27 addition
and
11 deletion
+27
-11
docs/ThrowTheSwitchCodingStandard.md
docs/ThrowTheSwitchCodingStandard.md
+6
-2
docs/UnityAssertionsReference.md
docs/UnityAssertionsReference.md
+11
-8
docs/UnityConfigurationGuide.md
docs/UnityConfigurationGuide.md
+4
-1
docs/UnityGettingStartedGuide.md
docs/UnityGettingStartedGuide.md
+3
-0
docs/UnityHelperScriptsGuide.md
docs/UnityHelperScriptsGuide.md
+3
-0
未找到文件。
docs/ThrowTheSwitchCodingStandard.md
浏览文件 @
2c7629a0
...
...
@@ -3,8 +3,9 @@
Hi. Welcome to the coding standard for ThrowTheSwitch.org. For the most part,
we try to follow these standards to unify our contributors' code into a cohesive
unit (puns intended). You might find places where these standards aren't
followed. We're not perfect. Please be polite where
you notice these discrepancies and we'll try to be polite when we notice yours.
followed. We're not perfect. Please be polite where you notice these discrepancies
and we'll try to be polite when we notice yours.
;)
...
...
@@ -201,3 +202,6 @@ that happens, we like to indent further to line things up in nice tidy columns.
Egad. Really? We use markdown and we like pdf files because they can be made to
look nice while still being portable. Good enough?
*Find The Latest of This And More at [ThrowTheSwitch.org](https://throwtheswitch.org)*
docs/UnityAssertionsReference.md
浏览文件 @
2c7629a0
...
...
@@ -129,9 +129,9 @@ and double assertions (see immediately following section).
### TEST_ASSERT_EACH_EQUAL_X Variants
Unity provides a collection of assertions for arrays containing a variety of
types which can be compared to a single value as well. These are documented in
the Each Equal section below. these are almost on par with the
`_MESSAGE`
Unity provides a collection of assertions for arrays containing a variety of
types which can be compared to a single value as well. These are documented in
the Each Equal section below. these are almost on par with the
`_MESSAGE`
variants of Unity's Asserts in that for pretty much any Unity type assertion you
can inject _EACH_EQUAL and run assertions on an entire block of memory.
...
...
@@ -139,12 +139,12 @@ can inject _EACH_EQUAL and run assertions on an entire block of memory.
"Expected" is a single value to compare to.
"Actual" is an array where each element will be compared to the expected value.
"Size/count" is one of two parameters necessary to establish the number of array
"Size/count" is one of two parameters necessary to establish the number of array
elements and perhaps the length of elements within the array.
Notes:
-
The
`_MESSAGE`
variant convention still applies here to Each Equal assertions.
-
Assertions for handling Each Equal of floating point values are grouped with
-
Assertions for handling Each Equal of floating point values are grouped with
float and double assertions (see immediately following section).
...
...
@@ -409,10 +409,10 @@ match. Failure messages specify the array index of the failed comparison.
`expected`
are single values and
`actual`
are arrays.
`num_elements`
specifies
the number of elements in the arrays to compare.
`_HEX`
assertions produce failure messages with expected and actual array
`_HEX`
assertions produce failure messages with expected and actual array
contents formatted in hexadecimal.
Assertions fail upon the first element in the compared arrays found not to
Assertions fail upon the first element in the compared arrays found not to
match. Failure messages specify the array index of the failed comparison.
#### `TEST_ASSERT_EACH_EQUAL_INT (expected, actual, num_elements)`
...
...
@@ -710,4 +710,7 @@ with zeros.
2.
You're going to have to be careful of assertions that perform signed
operations, particularly
`TEST_ASSERT_INT_WITHIN`
.Such assertions might wrap
your
`int`
in the wrong place, and you could experience false failures. You can
always back down to a simple
`TEST_ASSERT`
and do the operations yourself.
\ No newline at end of file
always back down to a simple
`TEST_ASSERT`
and do the operations yourself.
*Find The Latest of This And More at [ThrowTheSwitch.org](https://throwtheswitch.org)*
docs/UnityConfigurationGuide.md
浏览文件 @
2c7629a0
...
...
@@ -392,4 +392,7 @@ every single test case throughout your entire suite of tests.
The defines and macros in this guide should help you port Unity to just about
any C target we can imagine. If you run into a snag or two, don't be afraid of
asking for help on the forums. We love a good challenge!
\ No newline at end of file
asking for help on the forums. We love a good challenge!
*Find The Latest of This And More at [ThrowTheSwitch.org](https://throwtheswitch.org)*
docs/UnityGettingStartedGuide.md
浏览文件 @
2c7629a0
...
...
@@ -186,3 +186,6 @@ test set for that module. Then, this process is repeated for the next test file.
This flexibility of separating tests into individual executables allows us to
much more thoroughly unit test our system and it keeps all the test code out of
our final release!
*Find The Latest of This And More at [ThrowTheSwitch.org](https://throwtheswitch.org)*
docs/UnityHelperScriptsGuide.md
浏览文件 @
2c7629a0
...
...
@@ -237,3 +237,6 @@ OVERALL UNITY TEST SUMMARY
```
How convenient is that?
*Find The Latest of This And More at [ThrowTheSwitch.org](https://throwtheswitch.org)*
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录