36 Star 56 Fork 392

OpenHarmony / arkcompiler_runtime_core

 / 详情

[Bug]: Incorrect section description "7.24.3 Boolean Comparison Operator"

待办的
创建于  
2024-05-06 18:19

发生了什么问题?

The specification for the ArkTS language runtime core/static core/plugins/ets/doc/build/arktsspecification.pdf compiled from the master branch contains inaccuracies and an incorrect description for the <= and >= operators:

The operator ‘<=’ delivers true if the left-hand operand is false and the right-hand operand is true or false, or false otherwise.
or false otherwise.
The operator ‘>=’ delivers true if the left-hand operand is true and the right-hand operand is false or true, or false otherwise.

Therefore:

true <= true == false
false >= false == false

期望行为是什么?

Expected behavior as in TypeScript:

true <= true == true
false >= false == true

如何复现该缺陷

Build specification from sources.

其他补充信息

Due to an incorrect description, erroneous tests were written, which were corrected in the PR:
!1645:Implemented section "Boolean Comparison Opertors"

版本或分支信息

  • master
  • Release 4.1
  • Release 4.0
  • Release 3.2

评论 (1)

Maxim Logaev 创建了任务
Maxim Logaev 添加了
 
bug
标签
展开全部操作日志

感谢提交Issue!关于Issue的交互操作,请访问OpenHarmony社区支持命令清单。如果有问题,请联系 @godmiaozi @peijiajun @Ishin Pavel @Vyacheslav Cherkashin 。如果需要调整订阅PR、Issue的变更状态,请访问链接

Thanks for submitting the issue. For more commands, please visit OpenHarmony Command List. If you have any questions, please refer to committer @godmiaozi @peijiajun @Ishin Pavel @Vyacheslav Cherkashin for help. If you need to change the subscription of a Pull Request or Issue, please visit the link.

openharmony_ci 添加了
 
waiting_for_assign
标签
Maxim Logaev 修改了描述
Maxim Logaev 修改了描述
Maxim Logaev 修改了描述

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
7387629 openharmony ci 1656582662 14356516 mxlgv 1714137268
1
https://gitee.com/openharmony/arkcompiler_runtime_core.git
git@gitee.com:openharmony/arkcompiler_runtime_core.git
openharmony
arkcompiler_runtime_core
arkcompiler_runtime_core

搜索帮助

53164aa7 5694891 3bd8fe86 5694891